Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-98

NullPointerException when using JSF

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If an exception occurs in the first state of a webflow which is an action state, then the JsfFlowPhaseListener throws a null pointer exception because it sees null flow execution key. However, if the first state is a view state, and exception occurs during a transition from the first state, there is no error - the phase listener sees a non-null flow execution key.

      The exception occurs on the following line:
      else {
      // remove the conversation from the repository
      Serializable conversationId = holder.getFlowExecutionKey().getConversationId();
      if (logger.isDebugEnabled())

      { logger.debug("Removing conversation in repository with id '" + conversationId + "'"); }

      repository.invalidateConversation(conversationId);
      }

      Please more details, see the following thread:
      http://forum.springframework.org/showthread.php?p=55864

        Attachments

          Activity

            People

            • Assignee:
              kdonald Keith Donald
              Reporter:
              vineet Vineet Manohar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: