I am having a lot of transactions roll back on me.  

If I use commit-option A, Everything works fine with one person
hitting the website, but as soon as a second person starts hitting it,
transactions roll back like crazy. With commit-option C, lots of
transactions roll back in a seemingly random fashion with only one
person on the site.  Everything is CMP. Every Entity Bean is wrapped
by session beans.  

When the transactions roll back, I ususally get a bunch of exceptions
at the same time. The exceptions seem to come in two flavors. I get
more of flavor 1 than flavor 2.

flavor 1:

[Cost] XAException: tx=XidImpl [FormatId=257, GlobalId=botia//10748, BranchQual=] 
errorCode=XAER_NOTA
[Cost] javax.transaction.xa.XAException
[Cost] at 
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.start(XAResourceImpl.java:258)
[Cost] at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1087)
[Cost] at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:614)
[Cost] at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:111)
[Cost] at 
org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory.java:269)
[Cost] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:548)
[Cost] at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:521)
[Cost] at 
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
[Cost] at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:680)
[Cost] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:152)
[Cost] at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.java:87)
[Cost] at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:153)
[Cost] at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersistenceManager.java:144)
[Cost] at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:308)
[Cost] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:489)

flavor 2:

[Cost] XAException: tx=XidImpl [FormatId=257, GlobalId=botia//10594, BranchQual=] 
errorCode=XAER_PROTO
[Cost] javax.transaction.xa.XAException
[Cost] at 
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.end(XAResourceImpl.java:124)
[Cost] at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
[Cost] at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:523)
[Cost] at org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:99)
[Cost] at 
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeConnection(XAConnectionFactory.java:97)
[Cost] at 
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connectionClosed(XAConnectionFactory.java:82)
[Cost] at 
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl.clientConnectionClosed(XAConnectionImpl.java:126)
[Cost] at 
org.opentools.minerva.jdbc.xa.wrapper.XAClientConnection.close(XAClientConnection.java:250)
[Cost] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:180)
[Cost] at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.java:87)
[Cost] at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:153)
[Cost] at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersistenceManager.java:144)
[Cost] at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:308)
[Cost] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:489)

We are currently using:

Redhat Linux 7.1
JBoss 2.4 BETA(Rel_2_4_0_6)
Postgres version 7.1.1-4
Postgres JDBC version 7.1.1-4
JDK 1.3

I have tried many versions of jboss from 2.3 on, and many versions of
the postgres jdbc driver, and have still experienced the same exact
problems.  I have also tried with MSSQL using the TDS driver and have
gotten the same exact results

Any help would be GREATLY appriciated.
TIA,

Mike O'Connor
[EMAIL PROTECTED]


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

Reply via email to