Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion

 
raj kothari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on web application. I'm trying to save data entered on UI page. It consists of various ejb calls. Some ejb are part of our application. Some ejb are part of other modules deployed in same domain. The operation writes to multiple databases.

bmiasia.ebos.businessmanager.exception.BusinessOperationException: Exception occurs while committing transaction
at bmiasia.ebos.businessmanager.ba.context.OpExecuteContext.commitTransaction(OpExecuteContext.java:169)
at bmiasia.ebos.webflow.context.WebFlowContext.commitTransaction(WebFlowContext.java:304)
at bmiasia.ebos.businessmanager.ba.type.OpCommitTransactionType.execute(OpCommitTransactionType.java:125)
at bmiasia.ebos.webflow.util.WebFlowUtil.executeOperation(WebFlowUtil.java:99)
at bmiasia.ebos.webflow.type.LogicNodeType.execute(LogicNodeType.java:517)
at bmiasia.ebos.webflow.engine.WebFlowServlet._process(WebFlowServlet.java:726)
at bmiasia.ebos.webflow.engine.WebFlowServlet.process(WebFlowServlet.java:429)
at bmiasia.ebos.webflow.engine.WebFlowServlet.doPost(WebFlowServlet.java:269)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at bmiasia.app.common.webutil.GZIPFilter.doFilter(GZIPFilter.java:54)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.sun.identity.agents.filter.AmAgentBaseFilter.allowRequestToContinue(AmAgentBaseFilter.java:126)
at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:75)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=Session:7814401(thread:Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads],transaction:Xid=BEA1-08C76F822F67B15308C0(23889014),Status=Active (PrePreparing),numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=4,seconds left=2996,activeThread=Thread[[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads],XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=ended,assigned=none),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@16c8cd7,re-Registered = false),XAServerResourceInfo[WLStore_Infinys__WLS_server]=(ServerResourceInfo[WLStore_Infinys__WLS_server]=(state=suspended,assigned=none),xar=WLStore_Infinys__WLS_server20988097,re-Registered = false),SCInfo[Infinys+server]=(state=pre-preparing),properties=({weblogic.jdbc=t3://10.12.11.21:9901}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=server+10.12.11.21:9901+Infinys+t3+, XAResources={weblogic.jdbc.wrapper.JTSXAResourceImpl, WLStore_Infinys__WLS_server},NonXAResources={})],CoordinatorURL=server+10.12.11.21:9901+Infinys+t3+),status:2,inGlobalTransaction:true)
Error executing or preparing sql:INSERT INTO csm_admin.CSM_PARTY(BOID, INDUSTRY, ID, CARRIER_ID, STATUS, CREATE_USER, CREATE_TIME, REMOVE_USER, REMOVE_TIME, NAME, VERSION, START_TIME_STAMP, END_TIME_STAMP, LIVING_ADDRESS_ID, COUNTRY) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) with param list:[108000000030384, -1, 214, 1, 1, 301293, Wed Dec 30 09:25:46 EST 2009, null, Sat Dec 04 00:47:04 EST 6145, rajesh, 0, 1262183146014, 9223372036854775807, null, 19]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1818)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:333)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:281)
at weblogic.transaction.internal.TransactionManagerImpl.commit(TransactionManagerImpl.java:275)
at bmiasia.ebos.businessmanager.ba.context.OpExecuteContext.commitTransaction(OpExecuteContext.java:165)
... 27 more
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at your database server logs and check for deadlocks or other errors. A transaction started by your java client was probably rolled back or let go because of an error in the DB server. Check this link for some info

http://www.connx.com/products/connx/Connx%208.5%20UserGuide/db2_dist.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic