File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes weblogic 9.2 entity bean problem(Exception occurred during commit of transaction) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "weblogic 9.2 entity bean problem(Exception occurred during commit of transaction)" Watch "weblogic 9.2 entity bean problem(Exception occurred during commit of transaction)" New topic
Author

weblogic 9.2 entity bean problem(Exception occurred during commit of transaction)

Buchiveeram
Greenhorn

Joined: Nov 14, 2005
Posts: 2
Hi,
when iam trying to run the enity bean on welogic 9.2 mp3 iam getting this run time exception......
same bean working fine on weblogic 8.1 sp3.
please help me this is urgent need.

<Sep 10, 2008 4:42:24 PM IST> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Name=[EJB com.ejb.tr.TrBean.setTradeReason(java.lang.String)],Xid=BEA1-0014841378FEE0332975(17928034),Status=Rolled back. [Reason=weblogic.utils.NestedRuntimeException: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=30,XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@120c1b6,re-Registered = false),SCInfo[citiLoanProdnDomain+AdminServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.po2ejb.trading.TradingBean.setTradeReason(java.lang.String)], weblogic.jdbc=t3://192.168.1.19:1234, LOCAL_ENTITY_TX=true}),local properties=({modifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@9a9d14]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+192.168.1.19:1234+citiLoanProdnDomain+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl},NonXAResources={})],CoordinatorURL=AdminServer+192.168.1.19:1234+citiLoanProdnDomain+t3+): weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.internal.TxManager$TxListener@9a9d14
Error in beforeCompletion
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1809)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:331)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:546)
at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:381)

[ September 24, 2008: Message edited by: Buchiveeram ]

[ September 24, 2008: Message edited by: Buchiveeram ]
[ September 24, 2008: Message edited by: Buchiveeram ]
Aido Fitz
Greenhorn

Joined: Aug 25, 2009
Posts: 2
Hi,

Did you ever figure out what the issue was here - we are seeing the same problem I believe.

Regards,

Adrian
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

This message was posted a year back. Can you post your stack trace and some code ? That will help you get better answers


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Aido Fitz
Greenhorn

Joined: Aug 25, 2009
Posts: 2
Hi,

We actually just solved the problem, thanks. It was a misconfiguration in our environment - we had used a read-only database user for our entity bean, but were trying to do updates. Strange error given by weblogic in this case, our application code seemed to complete successfully, and then a transaction commit error similar to the above occured in the server logs. Example below. Note - our example invovles an MDB and an Entity bean working together in an XA transaction - i.e. MDB reads message from queue and invokes Entity bean to do DB save.

Regards,

Adrian

####<25-Aug-2009 18:00:00 o'clock IST> <Error> <EJB> <wlhost> <ITS10_30001_MS01> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tunin
g)'> <jms_consumer> <> <> <1251219600708> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-004ACC1ABB2295351C6B(11228381),Status=Rolled
back. [Reason=weblogic.utils.NestedRuntimeException: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=1,seconds left
=60,XAServerResourceInfo[WLStore_ITS10_30001_domain_ITS10_30001_JMS01_FILESTORE]=(ServerResourceInfo[WLStore_ITS10_30001_domain_ITS10_30001_JMS01_FILESTORE]=
(state=rolledback,assigned=ITS10_30001_MS01),xar=WLStore_ITS10_30001_domain_ITS10_30001_JMS01_FILESTORE21294909,re-Registered = false),XAServerResourceInfo[w
eblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=ITS10_30001_MS01),xar=weblogi
c.jdbc.wrapper.JTSXAResourceImpl@50add3,re-Registered = false),SCInfo[ITS10_30001_domain+ITS10_30001_MS01]=(state=rolledback),properties=({weblogic.jdbc=t3:/
/WLHOST:30011}),local properties=({modifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@d35215]}),OwnerTransactionManager=ServerTM[ServerC
oordinatorDescriptor=(CoordinatorURL=ITS10_30001_MS01+WLHOST:30011+ITS10_30001_domain+t3+, XAResources={eis/jms/WLSConnectionFactoryJNDIXA, weblogic.jdbc.wra
pper.JTSXAResourceImpl, WLStore_ITS10_30001_domain_ITS10_30001_JMS01_FILESTORE},NonXAResources={})],CoordinatorURL=ITS10_30001_MS01+WLHOST:30011+ITS10_30001_
domain+t3+): weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.internal.TxManager$TxListener@d352
15
Error in beforeCompletion
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1809)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:331)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:463)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
.>
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Thank you for sharing the solution
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weblogic 9.2 entity bean problem(Exception occurred during commit of transaction)