Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5264

NPE when debug level logging enabled.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.20.00
    • Fix Version/s: 2.20.04, Unreleased - EOL
    • Component/s: None
    • Labels:
      None
    • Environment:
      *
    • Similar issues:

      Description

      When log level is set to debug level for "org.hippoecm.frontend", the following NPE occurred:

      09.05.2011 15:32:50 ERROR [org.apache.wicket.RequestCycle.detach():1126] there was an error cleaning up target [BookmarkablePageRequestTarget@773648156 pageClass=org.hippoecm.frontend.PageExpiredErrorPage].
      java.lang.NullPointerException
      at org.hippoecm.frontend.ResourceRewriteFilter$FilteredRequest.getPathTranslated(ResourceRewriteFilter.java:63)
      at org.apache.wicket.protocol.http.servlet.ServletWebRequest.toString(ServletWebRequest.java:556)
      at java.lang.String.valueOf(String.java:2826)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at org.apache.wicket.Page.onDetach(Page.java:1568)
      at org.hippoecm.frontend.Home.onDetach(Home.java:224)
      at org.apache.wicket.Component.detach(Component.java:1225)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.detach(BookmarkablePageRequestTarget.java:142)
      at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1122)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1462)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      ...

      #61: String stripped = stripPrefix(superPath);
      #62: if (log.isDebugEnabled()) {
      #63: if (!stripped.equals(superPath)) {

      stipped variable can be null, so you should check null in #63.

        Attachments

          Activity

            People

            • Assignee:
              jsheriff Junaidh Kadhar Sheriff
              Reporter:
              wko Woonsan Ko
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: