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

Recent EL changes seems to break SeamTest

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Seam from CVS, Facelets, Jboss 4.2.0CR2

      Description

      I'm seeing the following:

      java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at org.jboss.seam.jsf.SeamApplication.getExpressionFactory(SeamApplication.java:104)
      at org.jboss.seam.core.Expressions.getExpressionFactory(Expressions.java:41)
      at org.jboss.seam.core.Expressions$1.createExpression(Expressions.java:67)
      at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:71)
      at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1688)
      at org.jboss.seam.Component.getInstance(Component.java:1637)
      at org.jboss.seam.Component.getInstance(Component.java:1614)
      at org.jboss.seam.Component.getInstance(Component.java:1608)
      at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
      at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
      at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
      at org.jboss.el.parser.AstValue.setValue(AstValue.java:83)
      at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
      at org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
      at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:373)
      at com.fb.core.test.catalog.RegisterAndLoginTest$LoginFacesRequest.updateModelValues(RegisterAndLoginTest.java:386)
      at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:475)
      at com.fb.core.test.catalog.RegisterAndLoginTest.registerTest(RegisterAndLoginTest.java:68)
      at org.jboss.seam.jsf.SeamApplication.getExpressionFactory(SeamApplication.java:100)
      ... 39 more
      Caused by: java.lang.UnsupportedOperationException
      at javax.faces.application.Application.getExpressionFactory(Application.java:766)
      ... 44 more
      ... Removed 26 stack frames

      which seems to be because the RI ExpressionFactory isn't being set when using SeamTest. I pulled in a bunch of updates from CVS just prior to this showing up, and many of them were related to MessageBinding/Expression. Wonder if that is related.

      The expression it's throwing on is:

      setValue("#

      {identity.username}

      ", userName);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                stu2 Stuart Robertson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: