-
1. Re: UndeclaredThrowableException: java.io.NotSerializableExc
c-ker... Jan 26, 2002 4:01 PM (in response to dof_mbr390)Are you sure that you are accessing the cmr-accessors from a local client?
-
2. Re: UndeclaredThrowableException: java.io.NotSerializableExc
dof_mbr390 Jan 27, 2002 10:55 AM (in response to dof_mbr390)O.K. I've sorted myself out, it was my fault for not reading the "small print" ...
Why is this restriction in place ? Is it jboss specific or something which affects all ejb containers ? Will jboss eventually support this?
thanks
dof. -
3. Re: UndeclaredThrowableException: java.io.NotSerializableExc
dsundstrom Jan 29, 2002 4:53 PM (in response to dof_mbr390)It is in the EJB 2.0 spec.
-
4. Re: UndeclaredThrowableException: java.io.NotSerializableExc
ppetit Jan 30, 2002 4:01 AM (in response to dof_mbr390)hi,
you can use a session bean as a "front-end" to your entity beans. You make it manage Collections of your entity beans as well as the business methods.
This session bean is then a "local" client for your entity beans.
I think that's the best way to access entity beans involved in CMR.
hope this helps...
Philippe -
5. Re: UndeclaredThrowableException: java.io.NotSerializableExc
dsundstrom Jan 30, 2002 3:58 PM (in response to dof_mbr390)Yes, you can use a session bean frount-end. I usually add these methods directly to my Entity and do local-remote conversions.
-
6. Re: UndeclaredThrowableException: java.io.NotSerializableExc
jay_m Apr 2, 2002 10:18 AM (in response to dof_mbr390)hi,
i am new to thios junit/ jboss testing
i am getting the same problem, how did you fix it?
thanks -
7. Re: UndeclaredThrowableException: java.io.NotSerializableExc
vysh Apr 2, 2002 3:29 PM (in response to dof_mbr390)I have an session bean which wraps around an Object and calls the methods on this objects. The business methods in the bean delegate to the object which the bean wraps.
I am also getting the below exception.
com.nextel.util.dbx.NxtDatabase
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at java.io.ObjectOutputStream.outputArray(ObjectOutputStream.java:1098)
at java.io.ObjectOutputStream.checkSubstitutableSpecialClasses(ObjectOutputStream.java:456)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:361)
at org.jboss.ejb.plugins.jrmp.interfaces.RemoteMethodInvocation.writeExternal(RemoteMethodInvocation.java:248)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1172)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at java.rmi.MarshalledObject.(MarshalledObject.java:95)
at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.createMarshalledObject(GenericProxy.java:396)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:244)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
at com.nextel.core.util.iterator.CachedObjectManagerFactory.getCachedValueManager(CachedObjectManagerFactory.java:43)