Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-795

NullPointerException in org.jboss.weld.context.beanstore.http.AbstractSessionBeanStore.setAttribute

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.CR2
    • 1.1.0.Beta2
    • None
    • None
    • Hide

      attempt use a CDI session scoped bean without a http session

      Show
      attempt use a CDI session scoped bean without a http session
    • Low

      The setAttribute method in the AbstractSessionBeanStore class logs an error if the session couldn't be obtained, unfortunately in generating the error it attempts to get the session ID, this results in a NullPointerException as the session is null.
      This should be fixed by simply removing the call to getSession(false).getId() in the trace message.

            pmuiratbleepbleep Pete Muir (Inactive)
            jsl123_jira John Lister (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: