Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1341

IllegalStateException in seamspace example

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: Examples
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      "Already a member?" link in register.xhtml page propagates conversation (s:link), so after clicking this link and after that again "SIGN UP!" button a factory method RegisterAction.start() is trying to start another long running conversation although the 1st one is still running.

      This results in an exception: java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true) on method: start

      Possible solutions:
      instead
      <s:button value="Cancel" action="#

      {register.cancel}" styleClass="registerButton"/>
      use
      1) <s:link view="/home.seam" value="Click here to log in 2" propagation="none" />
      2) But in order to explicitly end current converstaion it would be better to implement RegisterAction.cancel() method with the @End annotation and use the following link:
      <s:link view="/home.seam" action="#{register.cancel}

      " value="Click here to log in"/>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shane.bryzak Shane Bryzak
                Reporter:
                nhpvti Valerij Timofeev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified