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

Exception thrown from method expression causing re-evaluation as value expression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR2
    • Fix Version/s: 2.0.1.CR2
    • Component/s: BPM, EL
    • Labels:
      None
    • Workaround Description:
      Hide

      Add parenthesis at the end of the method name (so <action expression="#

      {bean.method()}

      " /> )

      Show
      Add parenthesis at the end of the method name (so <action expression="# {bean.method()} " /> )

      Description

      To reproduce:

      In a Seam component called "bean":
      public void method() {
      throw new RuntimeException("my error");
      }

      In a jPDL pageflow, inside a transition element:
      <action expression="#

      {bean.method}

      " />

      When the action is executed, an exception about "method" not being a property of the "bean" class is thrown (the real exception is never shown). See the forum thread for analysis of the underlying cause.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  IGx89 Matthew Lieder (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: