I am using JBoss 5 CR2 version with OpenJPA v1.2 for my application. The application has a custom JAAS login module that looks up user service (stateless ejb3) and remotely invokes findUser(userId) method to retrieve user information. JBoss runs into an infinite error loop while serializing user information after completing findUser method in user service.
<br><br>If I lookup user service ejb3 and remotely invoke findUser method from standalone jdk client, the method runs successfully. Problem arises only when the customlogin module tries to invoke the findUser method remotely.
<br><br>
Has anyone experienced similar error with JBoss CR2? Appreciate any help. <br><br>
Following is the stack trace
<br>------------------------------------------------------------------------------------------------------------------------
<br>[org.jboss.serial.persister.RegularObjectPersister] (http-127.0.0.1-8080-4) error
<br>java.lang.reflect.InvocationTargetException
<br>        at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br>        at java.lang.reflect.Method.invoke(Method.java:585)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
<br>        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
<br>        at java.util.ArrayList.writeObject(ArrayList.java:569)
<br>        at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br>        at java.lang.reflect.Method.invoke(Method.java:585)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
<br>        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
<br>        at java.util.ArrayList.writeObject(ArrayList.java:569)
<br>        at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br>        at java.lang.reflect.Method.invoke(Method.java:585)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
<br>        at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
<br>        at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
<br>        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:188)
<br>        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:390)
<br>        at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
<br>        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
<br>        at java.util.ArrayList.writeObject(ArrayList.java:569)
<br>        at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
<br>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
<br>
-----------------------------------------------------------------------------------------------------------------
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/JBoss-5-CR2---Serialization-error-tp20507824p20507824.html">JBoss 5 CR2 - Serialization error</a><br>
Sent from the <a href="http://www.nabble.com/JBoss---Dev-f2633.html">JBoss - Dev mailing list archive</a> at Nabble.com.<br>