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

npe in StoredResponsesMap

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC4
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      linux 2.6.32
      tomcat 7.12
      jdk 1.6.0.22

      Description

      While doing some load testing with with a small prog using Apache httpclient (45 threads, only the get requests were done)

      I got this error

      17:59:22.086 ERROR ["http-bio-8080"-exec-1] DefaultExceptionMapper - 108 - Unexpected error occurred
      java.lang.NullPointerException: null
      at org.apache.wicket.protocol.http.StoredResponsesMap$Value.access$000(StoredResponsesMap.java:37) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.protocol.http.StoredResponsesMap.removeEldestEntry(StoredResponsesMap.java:73) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410) ~[na:1.6.0_22]
      at java.util.HashMap.put(HashMap.java:385) ~[na:1.6.0_22]
      at org.apache.wicket.protocol.http.StoredResponsesMap.put(StoredResponsesMap.java:95) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.protocol.http.WebApplication.storeBufferedResponse(WebApplication.java:723) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.handler.render.WebPageRenderer.storeBufferedResponse(WebPageRenderer.java:73) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:258) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718) ~[wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63) ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:96) ~[wicket-request-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253) [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138) [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) [wicket-core-1.5-RC4.2.jar:1.5-RC4.2]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.12]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.12]

      via jmx I could see that only 45 sessions were there
      and that the PeakNumberOfActiveRequests was also 45.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              francois Francois
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: