[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[THREDDS #MRF-863926]: ClassCastException



Hi Anton:

Ive passed the problem on to ferret support, you should hear from them soon.

John.

> Dear Thredds Support,
> 
> 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. Your kind help is
> greatly appreciated.
> 
> --
> Regards,
> Anton Yoel Buenavista
> 
> 


Ticket Details
===================
Ticket ID: MRF-863926
Department: Support THREDDS
Priority: Critical
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.