Dear Thredds community,
I recently upgraded my Tomcat from 6 to 7, Java from 1.6 to 1.88, Ferret
from 6.72 to 6.9, and Thredds from 4.2 to 4.3.
I get an error when trying to create a virtual variable. I use this URL
to create the variable:
http://localhost/thredds/dodsC/proj/forecast.nc_expr_{}{letdeq1%20speed=%28U^2%2BV^2%29^.5}.asc?speed
When I try to create virtual variable, I get the following error in the
logs:
java.lang.ClassCastException: [D cannot be cast to [F
at
opendap.dap.Float32PrimitiveVector.setInternalStorage(Float32PrimitiveVector.java:237)
at thredds.server.opendap.NcSDArray.setData(NcSDArray.java:199)
at thredds.server.opendap.NcSDArray.read(NcSDArray.java:139)
at thredds.server.opendap.NcSDGrid.read(NcSDGrid.java:71)
at opendap.servers.SDGrid.serialize(SDGrid.java:415)
at opendap.servers.CEEvaluator.send(CEEvaluator.java:315)
at
thredds.server.opendap.OpendapServlet.doGetDAP2Data(OpendapServlet.java:532)
at
thredds.server.opendap.OpendapServlet.doGet(OpendapServlet.java:220)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
thredds.servlet.filter.CookieFilter.doFilter(CookieFilter.java:54)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
thredds.servlet.filter.RequestQueryFilter.doFilter(RequestQueryFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
thredds.servlet.filter.RequestPathFilter.doFilter(RequestPathFilter.java:102)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
thredds.server.RequestBracketingLogMessageFilter.doFilter(RequestBracketingLogMessageFilter.java:48)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
This feature used to work in my old installation. I have already tried
emailing the support-thredds email, but with no reply yet. I was
wondering if anyone has already encountered this error and how to remedy
it. Your kind help is greatly appreciated.
--
Regards,
Anton