gpt4 book ai didi

java - 帮助处理异常

转载 作者:行者123 更新时间:2023-12-02 08:38:25 24 4
gpt4 key购买 nike

遇到以下异常。有人知道如何解决这个问题吗?或者到底是什么问题。

[#|2009-03-03T10:41:18.079+0800|SEVERE|sun-appserver-pe8.2|ilog.rules.teamserver.model.IlrGlobalCache|_ThreadID=12;|java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:        java.rmi.RemoteException: nested exception is: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:; nested exception is:        java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:        java.rmi.RemoteException: nested exception is: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:; nested exception is:        java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:        at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Unknown Source)        at javax.rmi.CORBA.Util.wrapException(Util.java:279)        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)        at ilog.rules.teamserver.ejb.service._IlrSessionFacadeEJB_DynamicStub.getElementsFromAssociation(_IlrSessionFacadeEJB_DynamicStub.java)        at ilog.rules.teamserver.model.impl.IlrAbstractEJBSession.getElementsFromReference(Unknown Source)        at ilog.rules.teamserver.model.impl.IlrAbstractEJBSession.getElementsFromReference(Unknown Source)        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:585)        at ilog.rules.teamserver.model.impl.IlrAbstractEJBSession.invoke(Unknown Source)        at ilog.rules.teamserver.client.platform.IlrCommonAppServerSettings.invokeWithGivenPrivileges(Unknown Source)        at ilog.rules.teamserver.client.IlrSessionProxy.invoke(Unknown Source)        at $Proxy35.getElementsFromReference(Unknown Source)        at ilog.rules.teamserver.brm.impl.IlrProjectInfoImpl.getMessageMap(Unknown Source)        at ilog.rules.teamserver.model.IlrGlobalCache.getBundle(Unknown Source)        at ilog.rules.teamserver.model.IlrMessages.getString(Unknown Source)        at ilog.rules.teamserver.model.IlrMessages.getMessage(Unknown Source)        at ilog.rules.teamserver.model.IlrMessageHelper.getDisplayNameForType(Unknown Source)        at ilog.rules.teamserver.model.IlrMessageHelper.getLCDisplayNameForType(Unknown Source)        at ilog.rules.teamserver.externalejb.IlrExternalInterfaceFacadeLocalSessionBean.commitRuleDataSeparately(Unknown Source)        at ilog.rules.teamserver.externalejb.IlrExternalInterfaceFacadeLocalSessionBean.commitRuleData(Unknown Source)        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:585)        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:983)        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:147)        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:128)        at $Proxy18.commitRuleData(Unknown Source)        at ilog.rules.teamserver.web.servlets.IlrSynchronizationEntryPointServlet.handlecommitRuleData(Unknown Source)        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:585)        at ilog.rules.teamserver.web.servlets.IlrSynchronizationEntryPointServlet.handleMethod(Unknown Source)        at ilog.rules.teamserver.web.servlets.IlrSynchronizationEntryPointServlet.doPost(Unknown Source)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)        at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:585)        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)        at java.security.AccessController.doPrivileged(Native Method)        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)        at java.security.AccessController.doPrivileged(Native Method)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)        at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)        at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)        at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)Caused by: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:; nested exception is:        java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:        at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:199)        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)        at $Proxy22.getElementsFromAssociation(Unknown Source)        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:585)        ... 68 moreCaused by: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.RuntimeException: Got exception during XAResource.start:        at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:74)        at ilog.rules.teamserver.ejb.service.dao.IlrElementDAOJDBC.getConnection(Unknown Source)        at ilog.rules.teamserver.ejb.service.IlrTransactionContext.getConnectionFromAppServer(Unknown Source)        at ilog.rules.teamserver.ejb.service.IlrTransactionContext.(Unknown Source)        at ilog.rules.teamserver.ejb.service.IlrTransactionContext.(Unknown Source)        at ilog.rules.teamserver.ejb.service.IlrSessionFacadeImpl.getElementsFromAssociation(Unknown Source)        at ilog.rules.teamserver.ejb.service.IlrSessionFacadeBean.getElementsFromAssociation(Unknown Source)        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:585)        at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)        at java.security.AccessController.doPrivileged(Native Method)        at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:957)        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:151)        ... 73 more|#]

最佳答案

为了解决这个问题,我们需要更多地了解您的环境。例如,什么 JVM 版本和供应商?

根本原因埋藏在某个地方

java.sql.SQLException: Error in allocating a connection.
Cause: java.lang.RuntimeException: Got exception during XAResource.start:
at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:74)

您收到RuntimeException。这似乎是导致所有麻烦的异常。如果您能找出这个异常是什么,您可能会知道如何修复它。

关于java - 帮助处理异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/622967/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com