You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Bengt Rodehav (JIRA)" <ji...@apache.org> on 2010/11/12 14:23:16 UTC

[jira] Created: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

java.lang.NullPointerException: Inflater has been closed
--------------------------------------------------------

                 Key: KARAF-273
                 URL: https://issues.apache.org/jira/browse/KARAF-273
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 2.1.0
         Environment: Windows XP SP3 and JDK 1.6.0_22.
            Reporter: Bengt Rodehav


When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
\\
\\
It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
\\
\\
{code}
java.lang.NullPointerException: Inflater has been closed
	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
{code}

Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] [Closed] (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Jamie goodyear (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jamie goodyear closed KARAF-273.
--------------------------------

    
> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>            Assignee: Guillaume Nodet
>             Fix For: 2.1.2, 2.2.0
>
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Bengt Rodehav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931434#action_12931434 ] 

Bengt Rodehav commented on KARAF-273:
-------------------------------------

I think it's very hard to nail this down.

In combination with pax-web 0.7.2 even Jetty 6.1.22 seems to work. Seems like any later pax-web version than 0.7.2 won't work with Jetty 6.1.22. Maybe someone should test if pax-web 0.7.3 works with Jetty 6.1.19?

Might not just be Jetty's fault then...

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932718#action_12932718 ] 

Guillaume Nodet commented on KARAF-273:
---------------------------------------

See http://issues.ops4j.org/browse/PAXWEB-213
I think i nailed down the problem.

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>            Assignee: Guillaume Nodet
>             Fix For: 2.1.2, 2.2.0
>
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated KARAF-273:
----------------------------------

    Fix Version/s: 2.2.0
                   2.1.2
         Assignee: Guillaume Nodet

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>            Assignee: Guillaume Nodet
>             Fix For: 2.1.2, 2.2.0
>
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved KARAF-273.
-----------------------------------

    Resolution: Fixed

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>            Assignee: Guillaume Nodet
>             Fix For: 2.1.2, 2.2.0
>
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Bengt Rodehav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932851#action_12932851 ] 

Bengt Rodehav commented on KARAF-273:
-------------------------------------

Excellent work Guillaume!

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>            Assignee: Guillaume Nodet
>             Fix For: 2.1.2, 2.2.0
>
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931421#action_12931421 ] 

Andreas Pieber commented on KARAF-273:
--------------------------------------

We've already encountered the same issue in the openengsb project. IMHO the problem was introduced by upgrading from jetty 6.1.19 to 6.1.22. Anywhere between those versions the jetty guys had introduced that error. IMHO they are the only ones how can provide a workaround for this issue. But I will be VERY happy to be proven wrong!

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (KARAF-273) java.lang.NullPointerException: Inflater has been closed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931424#action_12931424 ] 

Guillaume Nodet commented on KARAF-273:
---------------------------------------

So the problem does not appear with pax-web 0.7.3 and jetty 6.1.19  or  pax-web 0.7.2 and jetty 6.1.22 ?

> java.lang.NullPointerException: Inflater has been closed
> --------------------------------------------------------
>
>                 Key: KARAF-273
>                 URL: https://issues.apache.org/jira/browse/KARAF-273
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>         Environment: Windows XP SP3 and JDK 1.6.0_22.
>            Reporter: Bengt Rodehav
>
> When using pax-web version 0.7.3 (and also 0.8.0) you sometimes get a very strange exception. Richard S Hall investigated this in FELIX-1032 and came to the conclusion that this is not a Felix bug but acutally a JRE bug.
> \\
> \\
> It can be reproduced as follows: Install a vanilla Karaf 2.1.0. Then install the webconsole (features:install webconsole). Click on the Configuration tab in the Webconsole that lists the configurations, then click on the file install configuration and close it. At this point I normally get the following stacktrace in the log:
> \\
> \\
> {code}
> java.lang.NullPointerException: Inflater has been closed
> 	at java.util.zip.Inflater.ensureOpen(Inflater.java:364)[:1.6.0_22]
> 	at java.util.zip.Inflater.getBytesWritten(Inflater.java:317)[:1.6.0_22]
> 	at java.util.zip.ZipFile$1.available(ZipFile.java:243)[:1.6.0_22]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:126)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:135)[org.apache.felix.framework-3.0.2.jar:]
> 	at org.mortbay.resource.URLResource.exists(URLResource.java:101)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.ResourceServlet.doGet(ResourceServlet.java:82)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)[37:org.ops4j.pax.web.pax-web-jetty:0.7.3]
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.Server.handle(Server.java:326)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[33:org.apache.servicemix.bundles.jetty-bundle:6.1.22.2]
> {code}
> Strangely enough (since it's a JRE bug), it disappears if I go back to pax-web 0.7.2. Also, if I configure Karaf 2.1.0 to use Equinox instead of Felix, the problem disappears.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.