2 Replies Latest reply on Apr 24, 2002 11:02 AM by Blair Jennings

    NotSerializableException

    Blair Jennings Newbie

      Sorry if this is the wrong forum. But I am getting this stack trace all of the time:

      [ERROR,Default] java.rmi.ServerException: Could not passivate; nested exception
      is:
      java.io.NotSerializableException: org.jboss.resource.JBossConnectionListenerImpl
      [ERROR,Default] java.io.NotSerializableException:org.jboss.resource.JBossConnectionListenerImpl at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1143)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at java.util.ArrayList.writeObject(ArrayList.java:508)
      [ERROR,Default] at java.lang.reflect.Method.invoke(Native Method)
      [ERROR,Default] at java.io.ObjectOutputStream.invokeObjectWriter(ObjectO
      utputStream.java:1859)
      [ERROR,Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1205)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at java.io.ObjectOutputStream.outputClassFields(ObjectOu
      tputStream.java:1822)
      [ERROR,Default] at java.io.ObjectOutputStream.defaultWriteObject(ObjectO
      utputStream.java:475)
      [ERROR,Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1209)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at java.io.ObjectOutputStream.outputClassFields(ObjectOu
      tputStream.java:1822)
      [ERROR,Default] at java.io.ObjectOutputStream.defaultWriteObject(ObjectO
      utputStream.java:475)
      [ERROR,Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1209)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at java.io.ObjectOutputStream.outputClassFields(ObjectOu
      tputStream.java:1822)
      [ERROR,Default] at java.io.ObjectOutputStream.defaultWriteObject(ObjectO
      utputStream.java:475)
      [ERROR,Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1209)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at java.io.ObjectOutputStream.outputClassFields(ObjectOu
      tputStream.java:1822)
      [ERROR,Default] at java.io.ObjectOutputStream.defaultWriteObject(ObjectO
      utputStream.java:475)
      [ERROR,Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputS
      tream.java:1209)
      [ERROR,Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputSt
      ream.java:361)
      [ERROR,Default] at org.jboss.ejb.plugins.StatefulSessionFilePersistenceM
      anager.passivateSession(StatefulSessionFilePersistenceManager.java:283)
      [ERROR,Default] at org.jboss.ejb.plugins.StatefulSessionInstanceCache.pa
      ssivate(StatefulSessionInstanceCache.java:67)
      [ERROR,Default] at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute
      (AbstractInstanceCache.java:736)
      [ERROR,Default] at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.
      java:206)
      [ERROR,Default] at java.lang.Thread.run(Thread.java:479)

      It occurs almost every time one of my Stateful Session Beans tries to be Passivated. Why is the system trying to serialize a listener? Has anyone seen this behavior before?

      Thanks
      Blair