Subject Re: [Firebird-Java] XA driver pooling issue
Author Roman Rokytskyy
> I tried a simple XA test with the 2.0.0rc3a driver under weblogic and
> I cannot make it work properly.

Which version of WebLogic do you use?

> <22-oct.-2005 12 h 25 min 16 s CEST> <Error> <JDBC> <BEA-001035> <The
> following error has occurred: XA operation failed :
> org.firebirdsql.jca.FBXAException: You are trying to resume a
> transaction that has is new

This error is really strange, it says that WebLogic asks to resume a
distributed transaction passing an unknown Xid to it. As far as I
understand, that is against JTA specification. But I need to check.

> <22-oct.-2005 12 h 25 min 16 s CEST> <Error> <JDBC> <BEA-001035> <The
> following error has occurred: XA operation failed :
> java.lang.NullPointerException
> at
> org.firebirdsql.jca.FBManagedConnection.internalRollback(FBManagedConnecti
> on.java:911)

Not good. I will check and fix it.

> Driver classname:
> org.firebirdsql.pool.sun.AppServerXADataSource

Why do you use pool for Sun App Server, not the FBConnectionPoolDataSource?

> When I set the pooling property to true, the test works fine. I've
> tried to disable it because I think it would be redundant with the
> weblogic one.

I suspect that something is wrong there. When you return connection back to
pool, it still remembers the Xid. When you switch pooling off, closing a
connection causes to forget the Xid.

> Any cluse why disabling driver pooling confuses weblogic or why
> weblogic confuses jaybird ?

Both is possible. I need to check it.

Roman