6 Replies Latest reply on Oct 18, 2011 3:54 AM by tong tong

    after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur

    tong tong Newbie

      2011-10-17 14:37:57,609 DEBUG [td.es.common.utils.DBConnectionFactory] --------->td.es.common.utils.JBossDBConnector

      2011-10-17 14:37:57,609 WARN  [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@450448

      2011-10-17 14:37:57,609 DEBUG [org.jboss.resource.connectionmanager.TxConnectionManager] Unfinished local transaction was rolled back.org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1b993d6[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@81f03 handles=0 lastUse=1318833477593 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@12c20d9 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@20c09b xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@450448 txSync=null]

      2011-10-17 14:37:57,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true

      2011-10-17 14:37:57,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false

      2011-10-17 14:37:57,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true

      2011-10-17 14:37:57,609 ERROR [STDERR] org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff92:4df:4e9bcc07:7a status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff92:4df:4e9bcc07:7a status: ActionStatus.ABORT_ONLY >))

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:96)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at td.es.common.utils.JBossDBConnector.getInstance(JBossDBConnector.java:38)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at td.es.common.utils.DBConnectionFactory.getConnection(DBConnectionFactory.java:50)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at td.es.common.internal.ejb.GenericDepartmentalSessionBean.getConnection(GenericDepartmentalSessionBean.java:191)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at td.es.common.internal.ejb.GenericDepartmentalSessionBean.processOnlineRequest(GenericDepartmentalSessionBean.java:157)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:597)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at org.jboss.ejb.Container.invoke(Container.java:960)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2011-10-17 14:37:57,609 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:597)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at java.lang.reflect.Method.invoke(Method.java:597)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at $Proxy14.invoke(Unknown Source)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:634)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:434)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)

      2011-10-17 14:37:57,624 ERROR [STDERR] Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff92:4df:4e9bcc07:7a status: ActionStatus.ABORT_ONLY >)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:358)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:525)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:406)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:850)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:90)

      2011-10-17 14:37:57,624 ERROR [STDERR]  ... 46 more

      2011-10-17 14:37:57,624 ERROR [STDERR] Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff92:4df:4e9bcc07:7a status: ActionStatus.ABORT_ONLY >

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:801)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:597)

      2011-10-17 14:37:57,624 ERROR [STDERR]  at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:352)

      2011-10-17 14:37:57,624 ERROR [STDERR]  ... 50 more

      2011-10-17 14:37:57,624 DEBUG [org.jboss.resource.connectionmanager.CachedConnectionManager] Unable to synchronize with transaction

      java.lang.IllegalStateException: Transaction not active

      at com.arjuna.ats.jbossatx.TransactionLocalDelegateImpl.lock(TransactionLocalDelegateImpl.java:119)

      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.lock(BaseTransactionManagerDelegate.java:200)

      at org.jboss.tm.TransactionLocal.lock(TransactionLocal.java:120)

      at org.jboss.resource.connectionmanager.TransactionSynchronizer.lock(TransactionSynchronizer.java:222)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.getCloseConnectionSynchronization(CachedConnectionManager.java:549)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:427)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:262)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:162)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      at org.jboss.ejb.Container.invoke(Container.java:960)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)

      at $Proxy14.invoke(Unknown Source)

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:634)

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:434)

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)

      2011-10-17 14:37:57,624 INFO  [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you.  Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@c5564e

      java.lang.Throwable: STACKTRACE

      at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)

      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:424)

      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:850)

      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:90)

      at td.es.common.utils.JBossDBConnector.getInstance(JBossDBConnector.java:38)

      at td.es.common.utils.DBConnectionFactory.getConnection(DBConnectionFactory.java:50)

      at td.es.common.internal.ejb.GenericDepartmentalSessionBean.getConnection(GenericDepartmentalSessionBean.java:191)

      at td.es.app589.internal.ejb.DepositEnquireSessionBean.processRequest(DepositEnquireSessionBean.java:82)

      at td.es.common.internal.ejb.GenericDepartmentalSessionBean.processOnlineRequest(GenericDepartmentalSessionBean.java:130)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      at org.jboss.ejb.Container.invoke(Container.java:960)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)

      at $Proxy14.invoke(Unknown Source)

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:634)

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:434)

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)

      2011-10-17 14:37:57,624 DEBUG [org.jboss.resource.connectionmanager.CachedConnectionManager] Unable to synchronize with transaction

      java.lang.IllegalStateException: Transaction not active

      at com.arjuna.ats.jbossatx.TransactionLocalDelegateImpl.lock(TransactionLocalDelegateImpl.java:119)

      at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.lock(BaseTransactionManagerDelegate.java:200)

      at org.jboss.tm.TransactionLocal.lock(TransactionLocal.java:120)

      at org.jboss.resource.connectionmanager.TransactionSynchronizer.lock(TransactionSynchronizer.java:222)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.getCloseConnectionSynchronization(CachedConnectionManager.java:549)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection(CachedConnectionManager.java:315)

      at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:642)

      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManagedConnection.java:304)

      at org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:157)

      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:597)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.closeConnection(CachedConnectionManager.java:529)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:431)

      at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:262)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:162)

      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)

      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)

      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      at org.jboss.ejb.Container.invoke(Container.java:960)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:231)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)

      at $Proxy14.invoke(Unknown Source)

      at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:862)

      at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:634)

      at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:434)

      at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:176)

       

       

      I search the google and see the thread

       

      http://community.jboss.org/wiki/Multiple1PC

      but I still don't know how to transfer from <local-tx-datasource> to <xa-datasource>, I also wonder if this change can solve my problem.

      anyone can help?

       

      消息编辑者为:tong tong

        • 1. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
          Wolf-Dieter Fink Master

          For the difference of local-tx and xa-datasource see the docs/examples/jca directory, there you will find an example for the most of DSB types.

           

          Do you use the DB for your app only or does it replace the DefaultDS?

          Maybe here is the problem if the JBoss tables are of the previous version or must be created ...

          • 2. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
            tong tong Newbie

            I change

             

              <local-tx-datasource>
                <jndi-name>TDES_INTERNAL_DS</jndi-name>
                <connection-url>jdbc:sqlserver://127.0.0.1:1433;DatabaseName=TDESDEV;selectMethod=cursor</connection-url>
                <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
                <security-domain>tdes-ds-login</security-domain>
                
                <min-pool-size>1</min-pool-size>
                <max-pool-size>20</max-pool-size>
                <track-statements>true</track-statements>  
                <!-- sql to call when connection is created
                <new-connection-sql>some arbitrary sql</new-connection-sql>
                  -->
                <!-- sql to call on an existing pooled connection when it is obtained from pool -->
                
             <check-valid-connection-sql>select 1</check-valid-connection-sql>
             
                <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
               
             <metadata>
                   <type-mapping>MS SQLSERVER2000</type-mapping>
                </metadata>
              </local-tx-datasource>
            
            

            to

             

            <xa-datasource>
                <jndi-name>TDES_INTERNAL_DS</jndi-name>
                <track-connection-by-tx></track-connection-by-tx>
                <isSameRM-override-value>false</isSameRM-override-value>
                <xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
                <xa-datasource-property name="ServerName">127.0.0.1</xa-datasource-property>
             <xa-datasource-property name="PortNumber">1433</xa-datasource-property>
                <xa-datasource-property name="DatabaseName">TDESDEV</xa-datasource-property>
                <xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>    
             <security-domain>tdes-ds-login</security-domain>
             <min-pool-size>1</min-pool-size>
                <max-pool-size>20</max-pool-size>
             <track-statements>true</track-statements>    
             <!-- sql to call on an existing pooled connection when it is obtained from pool -->
             <check-valid-connection-sql>select 1</check-valid-connection-sql>
                  <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
                  <metadata>
                     <type-mapping>MS SQLSERVER2000</type-mapping>
                  </metadata>
              </xa-datasource>
            
            

             

            then I see the following error message in server.log

            2011-10-17 16:58:12,515 ERROR [org.jboss.resource.security.AbstractPasswordCredentialLoginModule] The ConnectionManager mbean: jboss.jca:name=TDES_INTERNAL_DS,service=LocalTxCM specified in a ConfiguredIdentityLoginModule could not be found. ConnectionFactory will be unusable!

            what happens?

             

            For more information, my login-config.xml has this segment

             

            <application-policy name="tdes-ds-login">
                    <authentication>
                        <login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
                            <module-option name="username">ES_Login</module-option>
                            <module-option name="password">64c5fd2979a86168</module-option>
                            <module-option name="managedConnectionFactoryName">jboss.jca:name=TDES_INTERNAL_DS,service=LocalTxCM</module-option>
                        </login-module>
                    </authentication>
                </application-policy>
            
            

             

            Also, I have not change any source, why after migrate from 4.0.3 to 4.2.0, the error in thread 1 occurs?

             

            消息编辑者为:tong tong

            • 3. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
              tong tong Newbie

              Wolf-Dieter Fink 编写:

               

              Do you use the DB for your app only or does it replace the DefaultDS?

              Maybe here is the problem if the JBoss tables are of the previous version or must be created ...

              Sorry, for the last two statement, I cannot catch the idea, what do you mean?

              • 4. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
                Wolf-Dieter Fink Master

                There is a configuration of a HSQL database by default, here EJB timer and JMS tables are stored (the DB should not be used in production)

                 

                Do you change that?

                As I remember there was a problem if the JMS datasource is of XA type (I have such issue with an XA Oracle database).

                After I create the tables by hand everything works fine for me.

                • 5. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
                  Wolf-Dieter Fink Master

                  Mmmh,

                  the error contains 'service=LocalTxCM' it looks like you forgot to remove the local-xa-ds.xml ?

                   

                  I never used the security for a ds file, you might check whether it deploy correct without security and the password given in the xml file.

                  • 6. Re: after migrate from jboss as 4.0.3 to 4.2.0, the folllowing error occur
                    tong tong Newbie

                    Oh, sorry, i found the reason, we have connection opened but not closed in a functiuon.