Pax Web

NPE after a web app (bundle) is stopped

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.3.1
  • Fix Version/s: 0.4.0
  • Component/s: Http Service
  • Labels:
    None
  • Environment:
    felix 1.0.3

Description

install war:http://repo1.maven.org/maven2/org/apache/wicket/wicket-examples/1.3.0/wicket-examples-1.3.0.war
start id

Access the web app - http://localhost:8080/http___repo1.maven.org_maven2_org_apache_wicket_wicket-examples_1.3.0_wicket-examples-1.3.0.war/ -> works fine

stop id

Access the web app - http://localhost:8080/http___repo1.maven.org_maven2_org_apache_wicket_wicket-examples_1.3.0_wicket-examples-1.3.0.war/ -> throws exception:

java.lang.NullPointerException
at org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Blank page is displayed in the browser.

Activity

Hide
Alin Dreghiciu added a comment -

The NPE was due to the fact that registered filters url patters were not unregistered from the request url -> context matcher.

Show
Alin Dreghiciu added a comment - The NPE was due to the fact that registered filters url patters were not unregistered from the request url -> context matcher.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: