NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Ethan, I haven't found out exactly how to duplicate the bug. It suddenly appears, and then disappears as suddenly. In case of failure, the access-log doesn't print the size of the returned message. There is no response header, and firefox wants to save a file containing "0\r\n\r\n", and it takes a while before I get a response. Tomcat version is apache-tomcat-6.0.20, java-version is: java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) Running on virtual machine (XEN) with Ubunut 8.04 amd64. This morning, the error even propagated to other web-applications on the same tomcat. The root-webapp is simply a static html-pages served by tomcat, and the complete response it returned now: 131 <html> <head> <title>Thredds@xxxxxx</title> <meta http-equiv="refresh" content="2;url=/thredds/catalog.html"> </head> <body> <h1>Thredds at met.no</h1> You will be redirected to the catalog-pages in 2s. If your browser doesn't support this, press <a href="/thredds/catalog.html">here</a>. </body> </html> 0 and the same error message in logs. These problems first appeared after using ncWMS. It might be a hardware or tomcat problem, since ncWMS is much more demanding, and load sometimes goes up to '20'. I will check this further. If somebody else will try with the same file, it can be downloaded at: http://pastebin.met.no/pastebin/cgi-bin/file?id=013b56d31d0773643db159512845c2a870238477/ice_conc_nh_200911291200_CF.nc Best regards, Heiko On 2010-02-18 04:19, Ethan Davis wrote: > 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/ > > _______________________________________________ > thredds mailing list > thredds@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ -- Dr. Heiko Klein Tel. + 47 22 96 30 00 Development Section / IT Department Fax. + 47 22 69 63 55 Norwegian Meteorological Institute http://www.met.no P.O. Box 43 Blindern 0313 Oslo NORWAY
thredds
archives: