Hi, While testing some web applications on Jetty very quickly I ran into the following NPE (while accessing some jsps):
java.lang.NullPointerException at java.util.zip.Inflater.ensureOpen(Inflater.java:336) at java.util.zip.Inflater.getBytesWritten(Inflater.java:296) at java.util.zip.ZipFile$1.available(ZipFile.java:243) at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:125) at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:134) at org.eclipse.jetty.util.resource.URLResource.exists(URLResource.java:102) at org.eclipse.jetty.server.handler.ContextHandler$Context.getResource(ContextHandler.java:1623) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:532) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:454) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:942) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:389) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:876) at org.apache.geronimo.jetty8.handler.GeronimoWebAppContext.doScope(GeronimoWebAppContext.java:115) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.include(Dispatcher.java:172) After googling a bit I found the following bug reports: https://bugs.eclipse.org/bugs/show_bug.cgi?id=193269 and https://issues.apache.org/jira/browse/FELIX-1032. Looks like a JRE bug but maybe we can prevent this problem by patching Jetty (by closing the inputstreams) ? Jarek