Hello, All

I would like to post the following question to the community:

I am writing some custom finder methods for CMP Entity Beans (which have
been tested). Some return single objects, others return Collections. The
finders returning single objects function perfectly.

The problem is, when I try to access the Collections (by wrapping a Vector
around them) I can see each remote object, it returns the correct number of
objects and I can succesfully cast them to the remote interface I'm looking
for.

However, when I try to subsequently access the bean via this interface, it
goes wrong, dumping the following stack trace (in the output pane):

[Player] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
        java.rmi.NoSuchObjectException
[Player] java.rmi.NoSuchObjectException
[Player]        at
org.jboss.ejb.plugins.EnterpriseInstanceCache.get(EnterpriseInstanceCache.ja
va:95)
[Player]        at
org.jboss.ejb.plugins.EntityInstanceCache.get(EntityInstanceCache.java:56)
[Player]        at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:136)
[Player]        at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[Player]        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[Player]        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Player]        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14
4)
[Player]        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[Player]        at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[Player]        at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:163)
[Player]        at java.lang.reflect.Method.invoke(Native Method)
[Player]        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
[Player]        at sun.rmi.transport.Transport$1.run(Unknown Source)
[Player]        at java.security.AccessController.doPrivileged(Native
Method)
[Player]        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
[Player]        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
[Player]        at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[Player]        at java.lang.Thread.run(Unknown Source)

Having read through Java2's documentation, I assume that the Container has
found the correct records in the underlying database, translated the
resulting ResultSet into a Collection (ArrayList?) and then either forgot to
instantiate the EJBs or passivated them.

Has anyone seen this before and -better yet =)- knows a solution?

Thanks in advance,

Sietze Dijkstra
Centaur Media Technology


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to