Hi,
I just did an small bugfix to the jbosstest CTS
test that exposes <subject>.
Citing EJB 2.0 spec:
"5.3.2 Removing a session object"
"Because session objects do not have primary
keys that are accessible to clients, invoking
the javax.ejb.EJBHome.remove(Object primaryKey)
method on a session results in the
javax.ejb.RemoveException."
The testRemoveSession CTS test checks this,
and fails.
On the server, it gives exception:
[StatefulSessionBean] TRANSACTION ROLLBACK EXCEPTION:Could not activate; nested
exception is:
java.io.FileNotFoundException:
[EMAIL PROTECTED]
(No such file or directory); nested exception is:
java.rmi.NoSuchObjectException: Could not activate; nested exception is:
java.io.FileNotFoundException:
[EMAIL PROTECTED]
(No such
file or directory)
[StatefulSessionBean] java.rmi.NoSuchObjectException: Could not activate; nested
exception is:
[StatefulSessionBean] java.io.FileNotFoundException:
[EMAIL PROTECTED]
(No such file or directory)
[StatefulSessionBean] at
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:173)
[StatefulSessionBean] at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:154)
[StatefulSessionBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[StatefulSessionBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
[StatefulSessionBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[StatefulSessionBean] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[StatefulSessionBean] at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:326)
[StatefulSessionBean] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:384)
[StatefulSessionBean] at java.lang.reflect.Method.invoke(Native Method)
[StatefulSessionBean] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
....
On the client it gives exception:
**************************************************************
testRemoveSessionObject()
Obtain home interface
java.rmi.ServerException: RemoteException occurred in server thread; nested exception
is:
....
So it looks like a ServerException is thrown,
where EJB spec says a RemoveException must
be thrown.
I'm currently busy finishing some TM changes,
and since bugzilla still seems to be down
(www.telkel.com refusing HTTP connection), I
thought I might just as well report here.
Best Regards,
Ole Husgaard.