Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5295

JBWEB-188: After removing the ROOT.war, NPE occurs and 200 OK is returned when browsing to a non existing path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 4
    • 4.2.0.GA_CP09, 4.3.0.GA_CP08
    • Web
    • None
    • Hide

      1. Remove ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer
      2. Then use curl to browse to a non existing path like:
      $ curl -v http://localhost:8080/XXXX
      3. Then the console and server.log shows the NPE and empty page with http status code 200 OK is returned

      Show
      1. Remove ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer 2. Then use curl to browse to a non existing path like: $ curl -v http://localhost:8080/XXXX 3. Then the console and server.log shows the NPE and empty page with http status code 200 OK is returned
    • Release Notes
    • Workaround Exists
    • Hide

      Create an empty ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/

      Show
      Create an empty ROOT.war in $JBOSS_HOME/server/$PROFILE/deploy/jboss-web.deployer/
    • Not Required

    Description

      After removing the ROOT.war, the server behaves as if it exists (200 OK is returned and page is loaded empty) and the console shows the following NPE when browsing to a non existing path.

      ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.NullPointerException
      at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:507)
      at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:449)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:239)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:636)

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            rhn-support-mmiura Masafumi Miura
            Jared Morgan Jared Morgan (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: