2012-05-02 121 views
0

您好我經常在glassfish中遇到以下異常,任何人都可以幫助我解決這個問題。 日誌消息爲空。Glassfish Jdbc-connectioPool問題

The log message is null. 
    java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: Wrong XAState: 0 
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115) 
at com.sify.beaserv.bean.PollBoxBean.getNode(PollBoxBean.java:754) 
at com.sify.beaserv.bean.PollBoxBean.buildAlarm(PollBoxBean.java:317) 
at com.sify.beaserv.bean.PollBoxBean.processNode(PollBoxBean.java:652) 
at com.sify.beaserv.bean.PollBoxBean.onMessage(PollBoxBean.java:60) 
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011) 
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175) 
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2929) 
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4020) 
at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1111) 
at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:74) 
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:179) 
at $Proxy76.onMessage(Unknown Source) 
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:258) 
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76) 
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555) 
+0

http://www.java.net/node/684862 and http://www.java.net/node/684788 – rkosegi

回答

0

異常消息Wrong XAState: 0建議您嘗試使用XA驅動程序,用於兩階段提交這是正確的。真的嗎?你知道你正在使用哪個JDBC驅動程序和哪個數據庫供應商?你在開始時是否正確地得到了這個信息,或者你是否已經成功運行了一段時間?