Hi Folks,

I'm getting the exception below when I try to invoke an Entity Bean's
finder method from inside a Stateless Session Bean.  The finder method
is:

public abstract findByName(String name1, String name2) throws
FinderException, RemoteException;

This looked like a serialization problem while sending args through RMI,
so I added some debug statements to the HomeProxy code to check that the
HomeProxy.invoke() method is receiving Serializable classes.  It is...
it gets an Object[] containing the two String arguments, as expected.
I have NO IDEA where else to look for this error, since most of this
trace is in Sun's code.  HELP!!

Here's how the Entity Bean's finder looks in the Jaws.xml:
  <finder>
    <name>findByName</name>
    <query>name1 = {0} AND name2 = {1}</query>
    <order></order>
  </finder>

The exception is:

[MyStatelessSessionBean] java.rmi.ServerException: Exception occurred;
nested exception is:
[MyStatelessSessionBean]
java.lang.reflect.UndeclaredThrowableException
[MyStatelessSessionBean] java.lang.reflect.UndeclaredThrowableException:
java.io.NotSerializableException: org.jboss.tm.TxManager
[MyStatelessSessionBean]         at
java.io.IOException.<init>(IOException.java:49)
[MyStatelessSessionBean]         at
java.io.ObjectStreamException.<init>(ObjectStreamException.java:31)
[MyStatelessSessionBean]         at
java.io.NotSerializableException.<init>(NotSerializableException.java:35)

[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1154)
[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Compiled
Code))
[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1847)

[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:486)

[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1220)
[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Compiled
Code))
[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1847)

[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:486)

[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1220)
[MyStatelessSessionBean]         at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Compiled
Code))
[MyStatelessSessionBean]         at
java.rmi.MarshalledObject.<init>(MarshalledObject.java(Compiled Code))
[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:88)

[MyStatelessSessionBean]         at $Proxy36.findByName(Unknown Source)
[MyStatelessSessionBean]         at
com.dmod.ejb.MyStatelessSessionBeanBean.retrieveIdentity(MyStatelessSessionBeanBean.java:41)

[MyStatelessSessionBean]         at
java.lang.reflect.Method.invoke(Native Method)
[MyStatelessSessionBean]         at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:443)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:83)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.TxInterceptor$RunInvoke.run(TxInterceptor.java:342)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.TxInterceptor.runWithTransactions(TxInterceptor.java:173)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:98)
[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:93)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:154)
[MyStatelessSessionBean]         at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:262)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:172)

[MyStatelessSessionBean]         at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:156)

[MyStatelessSessionBean]         at
java.lang.reflect.Method.invoke(Native Method)
[MyStatelessSessionBean]         at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
[MyStatelessSessionBean]         at
sun.rmi.transport.Transport$1.run(Transport.java:155)
[MyStatelessSessionBean]         at
java.security.AccessController.doPrivileged(Native Method)
[MyStatelessSessionBean]         at
sun.rmi.transport.Transport.serviceCall(Transport.java:152)
[MyStatelessSessionBean]         at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)

[MyStatelessSessionBean]         at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:662)

[MyStatelessSessionBean]         at
java.lang.Thread.run(Thread.java(Compiled Code))


--
Daniel G. Koulomzin
Digital Media On Demand
244 Brighton Ave. 3rd Floor
Allston MA 02134





--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to