At passivation time all attributes of bean (instead of transient
attributes)
are serializabled. set XAConnection to null in ejbPassivate() method.
Have a look at : ejb1.1 6.4.1
mino
Gareth Cantrell wrote:
>
> Hi:
>
> I'm getting the following exception every time jBoss tries to
> passivate my Stateful Session Bean. This exception continues to
> happen repeatedly, ie. it never stops throwing, and eventually
> puts the server into an unusable state, with a reboot being necessary.
> I've been through the bean's code with a fine-toothed comb, and
> am now desparate to get this working.
>
> [Container factory] java.rmi.ServerException: Could not passivate;
> nested exception is:
> [Container factory] java.io.NotSerializableException:
> org.jboss.minerva.xa.XAClientConnection
> [Container factory] java.io.NotSerializableException:
> org.jboss.minerva.xa.XAClientConnection
> [Container factory] at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
> [Container factory] at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
> [Container factory] at
> java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
> [Container factory] at
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
> [Container factory] at
> java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
> [Container factory] at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
> [Container factory] at
>
>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:271)
> [Container factory] at
>
>org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:54)
> [Container factory] at
>
>org.jboss.ejb.plugins.EnterpriseInstanceCache$1.execute(EnterpriseInstanceCache.java:341)
> [Container factory] at
> org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:199)
> [Container factory] at java.lang.Thread.run(Thread.java:484)
>
> TIA
> Gareth
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]