CMRs can only be used directly locally. If you're running a separate Tomcat
instance (remote, different VM) you need to convert your CMRs in collections
of value objects and return those.

Bernhard

-----Ursprüngliche Nachricht-----
Von: Klaas van der Ploeg [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 20. Januar 2003 14:48
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] cmp.jdbc.RelationSet not serialized?


Hi All,

I have successfully deployed some entitybeans on my jboss 3.0.4 server. I'm 
using CMP with MySQL.
I have ejb-relation between 'subscriber' and 'service'

If I do a getSubscribers() on the local interface of a service entity bean 
in the same jvm (ie from a session bean or so) I am getting the results 
correctly.

But, when i try to do the same on the remote interface from my tomcat 
instance, i'm getting the exception below. Anyone any idea what can be 
wrong? Or am I misusing the container managed relationship mechanism?

Thanks.

Klaas

---------------------------

java.lang.reflect.UndeclaredThrowableException
        at $Proxy1.getSubscribers(Unknown Source)
        at
mystruts.action.ServiceDetailAction.perform(ServiceDetailAction.java:58)
        ...
        ...
        at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.NotSerializableException: 
org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet
        at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at java.rmi.MarshalledObject.(MarshalledObject.java:92)
        at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:387)
        at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
01)
        at java.lang.Thread.run(Thread.java:536)
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:247)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
        at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
        at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx
y.java:138)
        at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
        at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
        at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
        at
org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
        ... 36 more






_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to