CMP2-example UserTest fails
leila May 23, 2002 4:41 PMHi,
I'm trying to get a working CMP2 example for JBoss 3.0RC2. I've been following the documentation, fixing things like old DTD references, renamed data fields in the ejb-jar.xml queries (orderStatus and ordernumber). I'm down to only one remaining failed JUnit test.
Is there something else I need to set up from the default configuration in order for this test to work?
Any help would be greatly appreciated.
Thanks!
leila@ieee.org
The error is:
test:
[junit] java.lang.NullPointerException
[junit] at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:104)
[junit] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
[junit] at $Proxy3.isIdentical(Unknown Source)
[junit] at org.jboss.docs.cmp2.commerce.UserTest.testAddCd(UserTest.java:76)
[junit] at java.lang.reflect.Method.invoke(Native Method)
[junit] at junit.framework.TestCase.runTest(TestCase.java:166)
[junit] at junit.framework.TestCase.runBare(TestCase.java:140)
[junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[junit] at junit.framework.TestResult.run(TestResult.java:109)
[junit] at junit.framework.TestCase.run(TestCase.java:131)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at junit.framework.TestSuite.runTest(TestSuite.java:173)
[junit] at junit.framework.TestSuite.run(TestSuite.java:168)
[junit] at junit.textui.TestRunner.doRun(TestRunner.java:74)
[junit] at junit.textui.TestRunner.start(TestRunner.java:234)
[junit] at junit.textui.TestRunner.main(TestRunner.java:112)
[junit] ......F.........
[junit] Time: 12.147
[junit] There was 1 failure:
[junit] 1) testAddCd(org.jboss.docs.cmp2.commerce.UserTest)junit.framework.AssertionFailedError: Error in big old me
thod:
[junit] at org.jboss.docs.cmp2.commerce.UserTest.testAddCd(UserTest.java:106)
[junit]
[junit] FAILURES!!!
[junit] Tests run: 15, Failures: 1, Errors: 0
[junit]