Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-841

"Could NOT lazily initialize session context because of null RequestContext" always occur on session expire

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.7
    • Fix Version/s: 1.1.9
    • Component/s: Context and Scopes, Core
    • Labels:
      None
    • Environment:
      OWB 1.1.7, CODI, jetty-naven-plugin 9.0.0.M5, MyFaces 2.1.10, BVal 0.5

      Description

      WARNING: Could NOT lazily initialize session context because of null RequestContext

      occurs on every session timeout.

      I think the logic in WebContextsService#lazyStartSessionContext is wrong as it will never set the #sessionContexts, as there is not request.
      -> The SessionContext never gets a real cleanup as #getSessionContext will always return null in this case.

      I will also check it but other commiters has more knowhow about this context stuff, so any help is appreciated.

        Attachments

        1. OWB-841.patch
          11 kB
          Thomas Andraschko
        2. OWB-841.patch
          2 kB
          Thomas Andraschko

          Issue Links

            Activity

              People

              • Assignee:
                tandraschko Thomas Andraschko
                Reporter:
                tandraschko Thomas Andraschko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: