求助:(javax.transaction.xa.XAException: 关闭的连接))

04-10-17 miludeer2008

MmsLoginLogBe是一个自己写的BEAN。

前天部署成功了一个EAR包,

从http://localhost:7001/asset/login可以成功登陆。我把WEBLOGIC一直开着,今天再来登陆就出现了“关闭的连接”这个错误。但是重新启动WEBLOGIC或者重新部署这个应用,就又正常了。

请教高手,这是什么问题啊?

谢谢!

<2004-10-17 下午01时52分28秒 CST> <Error> <JTA> <BEA-110412> <Name=[EJB com.paic.as.set.persistence.mmsloginlog.MmsLoginLogBe

an.create(java.lang.String,java.util.Date)],Xid=BEA1-001EDF6CB9AB7F28EDB9(17241004),Status=Rolled back. [Reason=Unknown],Heur

isticErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=1,seconds left=499,activeThread=Threa

d[ExecuteThread: '11' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResou

rceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledba

ck,assigned=myserver),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@19caedd,re-Registered = false),SCInfo[mydomain+myserver]=(s

tate=rolledback),properties=({weblogic.transaction.name=[EJB com.paic.as.set.persistence.mmsloginlog.MmsLoginLogBean.create(j

ava.lang.String,java.util.Date)], weblogic.jdbc=t3://10.13.32.138:7001, LOCAL_ENTITY_TX=true}),OwnerTransactionManager=Server

TM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+10.13.32.138:7001+mydomain+t3+, XAResources={},NonXAResources={})],Co

ordinatorURL=myserver+10.13.32.138:7001+mydomain+t3+) completed heuristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, Heur

isticHazard, (javax.transaction.xa.XAException: 关闭的连接)) >

<2004-10-17 下午01时52分28秒 CST> <Notice> <EJB> <BEA-010014> <Error occurred while attempting to rollback transaction: javax

.transaction.SystemException: Heuristic hazard: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction

.xa.XAException: 关闭的连接))

javax.transaction.SystemException: Heuristic hazard: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transa

ction.xa.XAException: 关闭的连接))

at weblogic.transaction.internal.ServerTransactionImpl.internalRollback(ServerTransactionImpl.java:396)

at weblogic.transaction.internal.ServerTransactionImpl.rollback(ServerTransactionImpl.java:362)

at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:226)

at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:181)

at com.paic.as.set.persistence.mmsloginlog.MmsLoginLog_mthno0_LocalHomeImpl.create(MmsLoginLog_mthno0_LocalHomeImpl.j

ava:97)

at com.paic.as.set.business.facade.loginmanager.LoginManagerBean.setLoginLog(LoginManagerBean.java:78)

at com.paic.as.set.business.facade.loginmanager.LoginManager_rh2j1k_EOImpl.setLoginLog(LoginManager_rh2j1k_EOImpl.jav

a:46)

at com.paic.as.set.delegate.CommonDelegate.roleSelect(CommonDelegate.java:297)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.paic.pafa.framework.delegate.URLMappingProcessor.processRequest(URLMappingProcessor.java:109)

at com.paic.pafa.framework.frontcontrol.FrontController.doProcess(FrontController.java:206)

at com.paic.pafa.framework.frontcontrol.FrontController.doPost(FrontController.java:178)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

>

SetLoginLog Error!

sodarfish
2009-11-17 09:58

同样的问题,请求解决方案。。

xmuzyu
2009-11-17 11:35

估计是事务超时了吧,或者你再登录完成以后没有提交事务。