Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3039

WicketServlet failes to initialise with NullPointerException in WebXmlFile.getFilterPath()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5-M1
    • 1.5-M2.1
    • None
    • None

    Description

      java.lang.NullPointerException: null
      at org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:148) ~[wicket-util-1.5-SNAPSHOT.jar:1.5-SNAPSHOT]
      at org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:77) ~[wicket-util-1.5-SNAPSHOT.jar:1.5-SNAPSHOT]
      at org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:60) ~[wicket-util-1.5-SNAPSHOT.jar:1.5-SNAPSHOT]
      at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:264) ~[wicket-1.5-SNAPSHOT.jar:1.5-SNAPSHOT]
      at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:254) ~[wicket-1.5-SNAPSHOT.jar:1.5-SNAPSHOT]
      at javax.servlet.GenericServlet.init(GenericServlet.java:241) ~[servlet-api-2.5.jar:2.5]

      WebXmlFile.getFilterPath tries to retrieve the url-pattern of filter-mapping/filter-name... but in the case of a servlet, filter-mapping does not exists... it should be serlvet-mapping/servlet-name.

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            gabriel.bucher Gabriel Bucher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: