0 Replies Latest reply on Feb 18, 2006 9:30 AM by Annegret Sternagel

    StackOverflowError on passivation

    Annegret Sternagel Newbie

      Hi,

      when a Stateful SessionBean (EJB3) is passivated after reading data from a hibernate session a StackOverflowError occurs in the server.log.

      Any idea ?

      JBoss 4.0.3SP1 with EJB3 installer on WindowsXP

      Annegret

      DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** flushing.....
      DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
      DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Attempting to passivate; id=3z104v-kxa3u3-eju099rb-1-eju0airg-2m
      DEBUG [org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager] Saving session state to: D:\Programme\Tenovis\PUMA\jboss\server\wbm\tmp\sessions\com.tenovis.oam.acmr03x.as.sb.SubscriberDbSBBean-eju09v39-2h\3z104v-kxa3u3-eju099rb-1-eju0airg-2m.ser
      ERROR [STDERR] Exception in thread "Timer-7"
      ERROR [STDERR] java.lang.StackOverflowError
      ERROR [STDERR] at sun.misc.SoftCache.get(SoftCache.java:269)
      ERROR [STDERR] at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:244)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1029)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:380)
      ERROR [STDERR] at java.util.Calendar.writeObject(Calendar.java:2388)
      ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
      ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      ERROR [STDERR] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:153)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:153)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:153)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
      ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      ERROR [STDERR] at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:211)
      ...