java.sql.SQLException: XA error: XAER_RMFAIL

中间件 专栏收录该内容
5 篇文章 0 订阅

晚上访问应用时遇到一个错误,错误如下:

2007-08-07 22:18:37,986 - new97.pub.err.SysException:125  DEBUG - net.sf.hibernate.JDBCException: Cannot open connection
 at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:281)
 at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)
 at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)
 at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65)
 at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
 at net.sf.hibernate.loader.Loader.doList(Loader.java:950)
 at net.sf.hibernate.loader.Loader.list(Loader.java:941)
 at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1483)
 at new97.sm.ejb.dao.SysUserDAO.findSysUsers(SysUserDAO.java:356)
 at new97.sm.ejb.dao.SysUserDAO.findSysUserByNamePwd(SysUserDAO.java:51)
 at new97.sm.ejb.service.SMSysUserSVRBean.login(SMSysUserSVRBean.java:63)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl.login(SMSysUserSVR_svlcb2_EOImpl.java:658)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl_CBV.login(Unknown Source)
 at new97.sm.delegate.SMSysUserDelegate.login(SMSysUserDelegate.java:186)
 at new97.sm.struts.SMLoginAction.login(SMLoginAction.java:79)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
 at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
 at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
 at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 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:1072)
 at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
 at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at new97.wm.struts.WMBatchOpertionFilter.doFilter(WMBatchOpertionFilter.java:76)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))
 at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
 at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAER_RMFAIL : Resource manager is unavailable start() failed on resource 'OracleNew97Pool3': XAER_RMFAIL : Resource manager is unavailable
oracle.jdbc.xa.OracleXAException
 at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java(Compiled Code))
 at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:244)
 at weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)
 at weblogic.jdbc.jta.DataSource.start(DataSource.java:696)
 at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java(Compiled Code))
 at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java(Compiled Code))
 at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java(Compiled Code))
 at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.enlist(DataSource.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:450)
 at weblogic.jdbc.jta.DataSource.connect(DataSource.java:408)
 at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:329)
 at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
 at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
 at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)
 at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)
 at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65)
 at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
 at net.sf.hibernate.loader.Loader.doList(Loader.java:950)
 at net.sf.hibernate.loader.Loader.list(Loader.java:941)
 at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1483)
 at new97.sm.ejb.dao.SysUserDAO.findSysUsers(SysUserDAO.java:356)
 at new97.sm.ejb.dao.SysUserDAO.findSysUserByNamePwd(SysUserDAO.java:51)
 at new97.sm.ejb.service.SMSysUserSVRBean.login(SMSysUserSVRBean.java:63)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl.login(SMSysUserSVR_svlcb2_EOImpl.java:658)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl_CBV.login(Unknown Source)
 at new97.sm.delegate.SMSysUserDelegate.login(SMSysUserDelegate.java:186)
 at new97.sm.struts.SMLoginAction.login(SMLoginAction.java:79)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
 at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
 at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
 at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 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:1072)
 at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
 at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at new97.wm.struts.WMBatchOpertionFilter.doFilter(WMBatchOpertionFilter.java:76)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))
 at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
 at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

 at weblogic.jdbc.jta.DataSource.enlist(DataSource.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:450)
 at weblogic.jdbc.jta.DataSource.connect(DataSource.java:408)
 at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:329)
 at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
 at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
 at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)
 at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)
 at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65)
 at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
 at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
 at net.sf.hibernate.loader.Loader.doList(Loader.java:950)
 at net.sf.hibernate.loader.Loader.list(Loader.java:941)
 at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491)
 at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1483)
 at new97.sm.ejb.dao.SysUserDAO.findSysUsers(SysUserDAO.java:356)
 at new97.sm.ejb.dao.SysUserDAO.findSysUserByNamePwd(SysUserDAO.java:51)
 at new97.sm.ejb.service.SMSysUserSVRBean.login(SMSysUserSVRBean.java:63)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl.login(SMSysUserSVR_svlcb2_EOImpl.java:658)
 at new97.sm.ejb.service.SMSysUserSVR_svlcb2_EOImpl_CBV.login(Unknown Source)
 at new97.sm.delegate.SMSysUserDelegate.login(SMSysUserDelegate.java:186)
 at new97.sm.struts.SMLoginAction.login(SMLoginAction.java:79)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
 at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
 at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
 at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 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:1072)
 at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
 at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at new97.wm.struts.WMBatchOpertionFilter.doFilter(WMBatchOpertionFilter.java:76)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java(Compiled Code))
 at weblogic.security.service.SecurityManager.runAs(SecurityManager.java(Compiled Code))
 at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
 at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

 at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java(Compiled Code))
 at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:450)
 at weblogic.jdbc.jta.DataSource.connect(DataSource.java:408)
 at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:329)
 at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
 at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
 ... 45 more

过了几分钟,我在登陆就OK了。不知道为什么?我怀疑是网络或由于连接不上数据库造成的,请各位大侠请教!!

 

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页

打赏作者

ivan0702

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值