Title:

I have an entity bean named 'User' (associate with value object UserData)
and a session bean named 'UserCollection' that contains the function 'findById( int id )'.
Whenever I call this function with a valid id, i receive the following exception:

     [test] java.rmi.ServerException: RemoteException occurred in server thread;
 nested exception is:
     [test]     java.rmi.ServerException: Load failed; nested exception is:
     [test]     java.lang.NullPointerException
     [test] java.rmi.ServerException: Load failed; nested exception is:
     [test]     java.lang.NullPointerException
     [test] java.lang.NullPointerException
     [test]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(Unknown Source)
     [test]     at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source
)
     [test]     at sun.rmi.server.UnicastRef.invoke(Unknown Source)
     [test]     at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.i
nvoke(Unknown Source)
     [test]     at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeCont
ainer(GenericProxy.java:357)
     [test]     at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.i
nvoke(StatelessSessionProxy.java:123)
     [test]     at $Proxy2.findById(Unknown Source)
     [test]     at test.UserCollectionBeanTest.testFindById(UserCollectionBeanTe
st.java:123)
     [test]     at java.lang.reflect.Method.invoke(Native Method)
     [test]     at junit.framework.TestCase.runTest(TestCase.java:156)
     [test]     at junit.framework.TestCase.runBare(TestCase.java:130)
     [test]     at junit.framework.TestResult$1.protect(TestResult.java:100)
     [test]     at junit.framework.TestResult.runProtected(TestResult.java:118)
     [test]     at junit.framework.TestResult.run(TestResult.java:103)
     [test]     at junit.framework.TestCase.run(TestCase.java:121)
     [test]     at junit.framework.TestSuite.runTest(TestSuite.java:149)
     [test]     at junit.framework.TestSuite.run(TestSuite.java:144)
     [test]     at junit.framework.TestSuite.runTest(TestSuite.java:149)
     [test]     at junit.framework.TestSuite.run(TestSuite.java:144)
     [test] F
       [test] Time: 19.007
   [test]       at junit.textui.TestRunner.doRun(TestRunner.java:63)
         [test]
    [test]      at junit.textui.TestRunner.start(TestRunner.java:217)

BTW: in 'log/server.log', the error is not reported, every thing seems fine.
Im using JBoss v2.4 with Tomcat 2.3.2
<<ejb-jar.xml>> <<jaws.xml>> <<jboss.xml>>

ejb-jar.xml

jaws.xml

jboss.xml

Reply via email to