users@glassfish.java.net

Re: Transaction limit?

From: sankara rao bhogi <Sankara.Rao_at_Sun.COM>
Date: Wed, 06 Jun 2007 12:11:37 +0530

Some bugs ( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6551007)
related to transactional state transition after Beta2. Could you please
test promoted build 49.

regards
sankar

glassfish_at_javadesktop.org wrote:
> Does glassfish have a limit to the number of concurrent transactions?
>
> I'm using beta2 (build d), jdk 1.5 and postgres (which shouldn't matter)
>
> I have an ejb module with a number of remote EJBs and an MDB . All server settings are set to their defaults.
>
> I also have an standalone app with 50 threads each calling the same EJB. Concurrently i start up the message queue and place a few thousand messages onto it to be processed in the background. Both the EJB and MDB access the database via a connection pool.
>
> When the MDB is processing i get loads of transaction errors through corba (ejb) and the JMS service which include:
>
> Unexpected Broker Internal Error : [Transaction Xid mismatch. START_TRANSACTION(44) Packet has tuid=7094316188686040064 xid=6170707365727665722C7365727665722C50333730302C00DC190000B3FE73FC6170707365727665722C7365727665722C5033373030, transaction table has tuid=7094316188686040064 xid=6170707365727665722C7365727665722C50333730302C003B1A0000B3FE73FC6170707365727665722C7365727665722C5033373030. Using values from table.]
>
> ERROR com.sun.messaging.jmq.jmsserver.util.BrokerException: Bad transaction state transition. Cannot perform operation PREPARE_TRANSACTION(56) (XAFlag=null) on a transaction in state STARTED(1).: TUID=7094316188685897473 Xid=6170707365727665722C7365727665722C50333730302C02D7190000B3FE73FC6170707365727665722C7365727665722C5033373030:
> com.sun.messaging.jmq.jmsserver.util.BrokerException: Bad transaction state transition. Cannot perform operation PREPARE_TRANSACTION(56) (XAFlag=null) on a transaction in state STARTED(1).
>
> javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation. vmcid: 0x0 minor code: 0 completed: No
> javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation. vmcid: 0x0 minor code: 0 completed: No
>
> MQRA:XARFMC:rollback:XAException-Exception=[ROLLBACK_REPLY(49)] [C4036]: A broker error occurred. :[500] Bad transaction state transition. Cannot perform operation ROLLBACK_TRANSACTION(48) (XAFlag=null) on a transaction in state STARTED(1). user=guest, broker=localhost:7676(46133)|#]
>
> java.lang.RuntimeException: javax.transaction.xa.XAException;prepare;_RequestID=30fa5376-5e0b-4df1-b2b1-426a39339d31;|JTS5031: Exception [java.lang.RuntimeException: javax.transaction.xa.XAException] on Resource [prepare] operation.|
>
> etc, etc
>
>
> Once the MDB has got through its queue, the errors stop.
>
> I note some are warnings, I'm guessing i shouldn't ignore them and that they are related to the errors?
>
> Any suggestions
> [Message sent by forum member 'jsl123' (jsl123)]
>
> http://forums.java.net/jive/thread.jspa?messageID=220599
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>