Hei,
I'm currently testing ncWMS. About one year ago (version 4.0.9), this
worked nicely with the following request
http://localhost:8081/thredds/wms/data/met.no/hirlam12/wam_nsea.fc.20090604.nc?REQUEST=GetMap&LAYERS=significant_wave_height&PALETTE=redblue&SERVICE=WMS&FORMAT=image/png&VERSION=1.3.0&CRS=EPSG:4326&BBOX=-30,-60,30,90&WIDTH=400&HEIGHT=400&STYLES=BOXFILL/ncview
When I try upgrading to a recent version of thredds (4.0.24 or 4.1) I
run into severe problems: HTTP Status 500 - Internal Server Error
I had to make some changes in the setup (threddsConfig.xml) to get
around the 'service not enable' message, i.e. the service-name needs to
be wms, not wmsService, and palletes-dir needs to be defined, and for
4.1 ogcMetaXML needs to be defined.
The log gives:
thredds.server.wms.WMSController - Request Completed - 500 - -1 - 2430
java.lang.ArrayIndexOutOfBoundsException: 0
at ucar.ma2.Index.setDim(Index.java:562)
at ucar.ma2.Index.set(Index.java:651)
at uk.ac.rdg.resc.ncwms.datareader.DataChunk.getValue(DataChunk.java:67)
at
uk.ac.rdg.resc.ncwms.datareader.DefaultDataReader.populatePixelArray(DefaultDataReader.java:209)
(see attached file for more info)
The file can be found at
http://pastebin.met.no/pastebin/cgi-bin/file?id=e8a38071ddc1f4c21d0687d09e2cde4428cf13a8/wam_nsea.fc.20090604.nc
For the same request, I get a nice picture if I downgrade to thredds 4.0.9.
Any ideas?
Best regards,
Heiko
2010-01-29T15:18:04.398 +0100 [ 8384][ 11] INFO -
thredds.server.wms.WMSController - Request Completed - 403 - -1 - 2
2010-01-29T15:19:03.383 +0100 [ 5393][ 11] INFO -
thredds.server.wms.WMSController - Remote host: 127.0.0.1 - Request: "GET
/thredds/wms/data/met.no/hirlam12/wam_nsea.fc.20090604.nc?REQUEST=GetMap&LAYERS=significant_wave_height&PALETTE=redblue&SERVICE=WMS&FORMAT=image/png&VERSION=1.3.0&CRS=EPSG:4326&BBOX=-30,-60,30,90&WIDTH=400&HEIGHT=400&STYLES=BOXFILL/ncview
HTTP/1.1"
2010-01-29T15:19:03.384 +0100 [ 5394][ 11] INFO -
thredds.server.wms.WMSController - Request Completed - 403 - -1 - 1
2010-01-29T15:22:49.982 +0100 [ 5648][ 11] INFO -
thredds.server.wms.WMSController - Remote host: 127.0.0.1 - Request: "GET
/thredds/wms/data/met.no/hirlam12/wam_nsea.fc.20090604.nc?REQUEST=GetMap&LAYERS=significant_wave_height&PALETTE=redblue&SERVICE=WMS&FORMAT=image/png&VERSION=1.3.0&CRS=EPSG:4326&BBOX=-30,-60,30,90&WIDTH=400&HEIGHT=400&STYLES=BOXFILL/ncview
HTTP/1.1"
2010-01-29T15:22:52.413 +0100 [ 8079][ 11] INFO -
thredds.server.wms.WMSController - Request Completed - 500 - -1 - 2430
java.lang.ArrayIndexOutOfBoundsException: 0
at ucar.ma2.Index.setDim(Index.java:562)
at ucar.ma2.Index.set(Index.java:651)
at uk.ac.rdg.resc.ncwms.datareader.DataChunk.getValue(DataChunk.java:67)
at
uk.ac.rdg.resc.ncwms.datareader.DefaultDataReader.populatePixelArray(DefaultDataReader.java:209)
at
uk.ac.rdg.resc.ncwms.datareader.DefaultDataReader.read(DefaultDataReader.java:139)
at thredds.server.wms.util.LayerOps.readDataArray(LayerOps.java:205)
at thredds.server.wms.util.LayerOps.readData(LayerOps.java:150)
at
thredds.server.wms.responses.WmsGetMap.processRequest(WmsGetMap.java:134)
at
thredds.server.wms.WMSController.handleRequestInternal(WMSController.java:266)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
thredds.servlet.filter.RequestPathFilter.doFilter(RequestPathFilter.java:105)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)