Re: [thredds] ncWMS GetCapabilities return sometimes empty document

Hi Heiko,

I'm not having any luck duplicating this problem here.

The IllegalStateException-s appear to be occurring at the same time as
the empty responses. Interesting that it is happening in the JSP engine;
in the full stack trace you can see that the request has already gone
through Spring and the TDS/ncWMS code (I've included a more complete
snip of the stack trace below).

I'm not seeing anything in the TDS/ncWMS code that commits the respones
before it hands the ModelAndView to Spring for the hand off to the JSP
engine.

What version of Tomcat and Java are you running?

I'm not sure if the NullPointerException from geotools during startup is
related. However, it does sound familiar but I couldn't find any thing
TDS/ncWMS related through Google or in our support archives. Does this
sound familiar to anyone?

Ethan

More of the stack trace:
> Feb 15, 2010 4:59:58 PM org.apache.jasper.runtime.JspFactoryImpl 
> internalGetPageContext
> SEVERE: Exception initializing page context
> java.lang.IllegalStateException: Cannot create a session after the response 
> has been committed
>       at org.apache.catalina.connector.Request.doGetSession(Request.java:2313)
>       at org.apache.catalina.connector.Request.getSession(Request.java:2074)
>       at 
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
>       at 
> javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
>       at 
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
>       at 
> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:493)
>       at 
> org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:146)
>       at 
> org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:124)
>       at 
> org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:107)
>       at 
> org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:63)
>       at 
> org.apache.jsp.WEB_002dINF.jsp.wms.capabilities_005fxml_jsp._jspService(capabilities_005fxml_jsp.java:73)
>       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>       at 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>       at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>       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 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
>       at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
>       at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
>       at 
> org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:231)
>       at 
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)
>       at 
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)
>       at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
>       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:617)


On 2/15/2010 10:34 AM, Heiko Klein wrote:
> Hi,
> 
> after running ncWMS on Thredds 4.1.3 (linux) for a while, the
> GetCapabilites document is sometimes empty, i.e.
> 
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>    6065    3509  155870
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>    6065    3509  155870
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>       2       1       5
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>       2       1       5
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>       2       1       5
> $ GET
> 'http://dev-vm188/thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities'|wc
>    6065    3509  155870
> 
> 
> This happened at approx 17:01. The access.log file shows:
> 
> 157.249.26.172 - - [15/Feb/2010:17:01:00 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 - "-" "lwp-request/2.08"
> 157.249.26.172 - - [15/Feb/2010:17:01:01 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 - "-" "lwp-request/2.08"
> 157.249.26.172 - - [15/Feb/2010:17:01:01 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 - "-" "lwp-request/2.08"
> 157.249.26.172 - - [15/Feb/2010:17:01:06 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 155870 "-" "lwp-request/2.08"
> 157.249.26.172 - - [15/Feb/2010:17:01:08 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 155870 "-" "lwp-request/2.08"
> 157.249.26.172 - - [15/Feb/2010:17:01:08 +0000] "GET
> /thredds/wms/osisaf/met.no/ice/ice_conc_nh_200911291200_CF.nc?service=WMS&version=1.3.0&request=GetCapabilities
> HTTP/1.1" 200 - "-" "lwp-request/2.08"
> 
> 
> The catalina.out file says very often:
> Feb 15, 2010 5:00:00 PM org.apache.jasper.runtime.JspFactoryImpl
> internalGetPage
> Context
> SEVERE: Exception initializing page context
> java.lang.IllegalStateException: Cannot create a session after the
> response has
> been committed
>         at
> org.apache.catalina.connector.Request.doGetSession(Request.java:2313)
>         at
> org.apache.catalina.connector.Request.getSession(Request.java:2074)
>         at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.
> java:833)
> ...
> 
> There is another NullPointerException during startup:
> Feb 15, 2010 4:01:32 PM org.geotools.util.WeakCollectionCleaner remove
> WARNING: NullPointerException
> java.lang.NullPointerException
>         at
> org.geotools.referencing.cs.DefaultCoordinateSystemAxis.hashCode(Defa
> ultCoordinateSystemAxis.java:1250)
>         at
> org.geotools.referencing.cs.AbstractCS.hashCode(AbstractCS.java:642)
>         at
> org.geotools.referencing.crs.AbstractCRS.hashCode(AbstractCRS.java:17
> 8)
> 
> which might be due to 'jai' installation, which ncWMS complained about
> previously.
> 
> I'm attaching the log-files.
> 
> 
> 
> Best regards,
> 
> Heiko
> 
> 
> 
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/ 



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: