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

Conversation timeout results in a NullPointerException

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.0.0.GA
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Oracle Glassfish Server 3.0.0

    • Steps to Reproduce:
      Hide

      Attached is some code showing the behavior

      2 Classes:

      1. Model.java - a single Integer value property.
      2. WebBean.java - a conversation scoped managed bean, with a Model property.

      2 JSF pages:

      1. index.xhtml - initialize the Model property of WebBean, and go to add.xhtml
      2. add.xhtml - click the increment button to increment the value property of Model

      Run the app, initialize the value property of Model, then click the "increment" button. All is well so long as you click the "increment" button before the conversation timeout. If the conversation time's out first, you get an NPE because the new instance of WebBean does not have a valid Model property.

      Show
      Attached is some code showing the behavior 2 Classes: 1. Model.java - a single Integer value property. 2. WebBean.java - a conversation scoped managed bean, with a Model property. 2 JSF pages: 1. index.xhtml - initialize the Model property of WebBean, and go to add.xhtml 2. add.xhtml - click the increment button to increment the value property of Model Run the app, initialize the value property of Model, then click the "increment" button. All is well so long as you click the "increment" button before the conversation timeout. If the conversation time's out first, you get an NPE because the new instance of WebBean does not have a valid Model property.

      Description

      When a conversation time's out, I get a NPE when I try to access a property of a ConversationScoped bean. This error condition would be easier to trap if something like a ConversationExpired Exception were thrown instead, or if it were possible to configure navigation to a different page when the conversation expired.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bleathem Brian Leathem
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: