Hi,

I am getting a NotSerializableException during scheduled EJB passivation
attempt. I have a EJB that does a simple query. I am using Informix-SE and
Informix JDBC 2.20 drivers which implement the JDBCX.

Can anyone give me a direction to go in?

jboss.jcml:

<mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProv
ider">
  <attribute name="Drivers">com.informix.jdbc.IfxDriver</attribute>
</mbean>

<mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADa
taSource,name=InformixDB">
 <attribute name="PoolName">InformixDB</attribute>
 <attribute
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataS
ourceImpl</attribute>
 <attribute
name="URL">jdbc:informix-sqli://10.5.0.5:1525//usr4/ptk:INFORMIXSERV
ER=tipper_se;user=xxxxx;password=xxxxx</attribute>
 <attribute name="JDBCUser">xxxxx</attribute>
 <attribute name="Password">xxxxx</attribute>
 <attribute name="MinSize">5</attribute>
 <attribute name="MaxSize">10</attribute>
</mbean>

EJB code that grabs a connection from the pool:

public void getConnection() throws Exception
  {
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
            "org.jnp.interfaces.NamingContextFactory");
    env.put(Context.PROVIDER_URL, "localhost:1099");
    env.put(Context.URL_PKG_PREFIXES,
            "org.jboss.naming:org.jnp.interfaces");

    dbConnection =
      ((DataSource)new InitialContext(env).lookup("java:/InformixDB"))
        .getConnection();

    }

excerpt from server.log:

[Bean Cache] Resized cache for bean PreferenceBean: old capacity = 1000, new
cap
acity = 50
[Bean Cache] Scheduling for passivation overaged bean PreferenceBean with id
= 9
95986120837 - Cache size = 1
[Bean Cache] Aging out from cache bean PreferenceBeanwith id = 995986120837;
cac
he size = 1
[Container factory] Scheduled passivation of bean PreferenceBean with id =
99598
6120837
[Container factory] java.rmi.ServerException: Could not passivate; nested
except
ion is:
[Container factory]     java.io.NotSerializableException:
org.opentools.minerva.
jdbc.xa.wrapper.XAClientConnection
[Container factory] java.io.NotSerializableException:
org.opentools.minerva.jdbc
.xa.wrapper.XAClientConnection
[Container factory]     at
java.io.ObjectOutputStream.outputObject(ObjectOutputS
tream.java:1148)
[Container factory]     at
java.io.ObjectOutputStream.writeObject(ObjectOutputSt
ream.java:366)
[Container factory]     at
java.io.ObjectOutputStream.outputClassFields(ObjectOu
tputStream.java:1827)
[Container factory]     at
java.io.ObjectOutputStream.defaultWriteObject(ObjectO
utputStream.java:480)
[Container factory]     at
java.io.ObjectOutputStream.outputObject(ObjectOutputS
tream.java:1214)
[Container factory]     at
java.io.ObjectOutputStream.writeObject(ObjectOutputSt
ream.java:366)
[Container factory]     at
org.jboss.ejb.plugins.StatefulSessionFilePersistenceM
anager.passivateSession(StatefulSessionFilePersistenceManager.java:278)
[Container factory]     at
org.jboss.ejb.plugins.StatefulSessionInstanceCache.pa
ssivate(StatefulSessionInstanceCache.java:54)
[Container factory]     at
org.jboss.ejb.plugins.AbstractInstanceCache$1.execute
(AbstractInstanceCache.java:668)
[Container factory]     at
org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.
java:199)
[Container factory]     at java.lang.Thread.run(Thread.java:484)


Thanks


************************
Shawn Chambers
Programmer
Phi Theta Kappa International Honor Society

800.946.9995, Ext. 581
Fax: 601.984.3506
www.ptk.org


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to