Hi John,
I'm getting this error when trying to use the NetCDF Subset Service in
the TDS 4.2. I'm not sure if this error exists in older versions. I've
been unable to reproduce using CDM grid access with ToolsUI or with
custom code.
I don't see any 'null' attributes when doing ncdumps or grid views in
ToolsUI. There is no time dimension, but we are using NcML Aggregation
with dateFormatMark to add it later. We are getting the same error with
the NcML aggregation as well. Unfortunately, the error doesn't show
which attribute is 'null'. I was going to look in the source, but
figured I'd ask first.
Sample file is here:
http://www1.ncdc.noaa.gov/pub/download/sansari/patmosx_sw_n19_asc_2009_365_v05r02.nc
Thanks!
Steve
Error:
2010-11-30T11:43:45.995 -0500 [ 2913177][ 129] ERROR -
thredds.server.ncSubset.GridServlet - GridServlet.showForm
org.jdom.IllegalDataException: The data "null" is not legal for a JDOM
attribute: A null is not a legal XML value.
at org.jdom.Attribute.setValue(Attribute.java:491)
at org.jdom.Attribute.<init>(Attribute.java:228)
at org.jdom.Attribute.<init>(Attribute.java:251)
at org.jdom.Element.setAttribute(Element.java:1128)
at ucar.nc2.ncml.NcMLWriter.writeAttribute(NcMLWriter.java:254)
at
ucar.nc2.dt.grid.GridDatasetInfo.writeGrid(GridDatasetInfo.java:511)
at
ucar.nc2.dt.grid.GridDatasetInfo.makeGridForm(GridDatasetInfo.java:236)
at
thredds.server.ncSubset.GridServlet.showForm(GridServlet.java:495)
at thredds.server.ncSubset.GridServlet.doGet(GridServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
thredds.servlet.filter.RequestQueryFilter.doFilter(RequestQueryFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:191)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
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:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
2010-11-30T11:43:45.996 -0500 [ 2913178][ 129] INFO -
thredds.server.ncSubset.GridServlet - Request Completed - 500 - 0 - 77