1 Reply Latest reply on May 17, 2002 11:53 PM by David Jencks

    Why am I getting this Exception ???

    Gautam Mehta Newbie


      Can anyone please help !!!

      I am using Cloudscape with JBoss-2.4.0_Tomcat-3.2.3

      I have created a Stateful session bean and am calling some methods to insert data into the database.

      As you can see I am able to obtain a DataSource and insert data...

      [PowerdbDS] Pool PowerdbDS [1/1/10] gave out pooled object: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@27508a
      [PowerdbDS] Pool PowerdbDS [0/1/10] returned object org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@27508a to the pool.

      However, I am getting this exception below....

      [Container factory] java.rmi.ServerException: Could not passivate; nested exception is:
      [Container factory] java.io.NotSerializableException: org.jboss.pool.jdbc.xa.XAPoolDataSource
      [Container factory] java.io.NotSerializableException: org.jboss.pool.jdbc.xa.XAPoolDataSource
      [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:1827)
      [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:285)
      [Container factory] at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:67)
      [Container factory] at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:688)
      [Container factory] at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:199)
      [Container factory] at java.lang.Thread.run(Thread.java:484)