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

WicketSessionFilter: java.lang.IllegalArgumentException: Argument application can not be null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.8
    • Fix Version/s: 1.4.9, 1.5-M1
    • Component/s: None
    • Labels:
      None

      Description

      Due to WICKET-2778 application is now attached to ThreadLocal but application is only fetched via Application.get(filterName) if:

      if (httpSession != null)
      {
      if (sessionKey == null)
      {
      application = (WebApplication) Application.get(filterName);

      This will create problems at line 197:

      Application.set(application);

      and might cause java.lang.IllegalArgumentException: Argument application can not be null to be thrown

      I guess application should be instance variable or line 197 should be something like this:

      Application.set(Application.get(filterName));

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              teemun Teemu Nykänen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: