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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.8
    • 1.4.9, 1.5-M1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: