Wicket
  1. Wicket
  2. WICKET-3859

WicketFilterTest.testIgnorePaths java.lang.IllegalStateException: Request#getLocale cannot return null, request has to have a locale set on it

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      all

      Description

      The test WicketFilterTest method testIgnorePaths generates a stacktrace:
      RequestCycle.processRequest: e=java.lang.IllegalStateException: Request#getLocale() cannot return null, request has to have a locale set on it
      java.lang.IllegalStateException: Request#getLocale() cannot return null, request has to have a locale set on it
      at org.apache.wicket.Session.<init>(Session.java:218)
      at org.apache.wicket.protocol.http.WebSession.<init>(WebSession.java:96)
      at org.apache.wicket.protocol.http.WebApplication.newSession(WebApplication.java:436)
      at org.apache.wicket.Session.get(Session.java:159)
      at org.apache.wicket.request.mapper.BufferedResponseMapper.getSessionId(BufferedResponseMapper.java:48)
      at org.apache.wicket.request.mapper.BufferedResponseMapper.hasBufferedResponse(BufferedResponseMapper.java:54)
      at org.apache.wicket.request.mapper.BufferedResponseMapper.getCompatibilityScore(BufferedResponseMapper.java:112)
      at org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:121)
      at org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:187)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:217)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:270)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
      at org.apache.wicket.protocol.http.WicketFilterTest.testIgnorePaths(WicketFilterTest.java:370)

        Activity

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Richard Emberson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development