1 2 3 Previous Next 32 Replies Latest reply on Nov 19, 2007 1:15 PM by youngm Go to original post
      • 30. Re: Integration Testing with TestNG and embeddedEjb
        dheerajsega

        I have been facing with the similar kind of error in testing as shown below.


        javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user'
        at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
        at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
        at org.jboss.seam.mock.SeamTest$Request.getValue(SeamTest.java:366)
        at AuthenticatorActionTest$2.renderResponse(AuthenticatorActionTest.java:48)
        at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:521)
        at AuthenticatorActionTest.testLogin(AuthenticatorActionTest.java:28)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
        at org.testng.TestRunner.privateRun(TestRunner.java:614)
        at org.testng.TestRunner.run(TestRunner.java:505)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
        at org.testng.SuiteRunner.run(SuiteRunner.java:147)
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
        at org.testng.TestNG.run(TestNG.java:316)
        at org.testng.TestNG.privateMain(TestNG.java:666)
        at org.testng.TestNG.main(TestNG.java:608)


        • 31. Re: Integration Testing with TestNG and embeddedEjb
          youngm

          the jboss-seam-ioc.jar is included with the seam distribution and it should be placed in the classpath of your project. To make sure it works when running tests you need to be sure it is included in the runtime classpath of your test running tool.

          • 32. Re: Integration Testing with TestNG and embeddedEjb
            youngm

            Is "user" a spring bean? If you aren't using Spring then the ioc.jar won't help you.

            1 2 3 Previous Next