[jboss-user] [JCA] - Failed to enlist resource with Generic JCA-Adapter

Thomas Wiesner do-not-reply at jboss.com
Tue Jun 15 02:25:48 EDT 2010


Thomas Wiesner [http://community.jboss.org/people/Arakasi69] created the discussion

"Failed to enlist resource with Generic JCA-Adapter"

To view the discussion, visit: http://community.jboss.org/message/547974#547974

--------------------------------------------------------------
Hello,

I've written an generic jca-adapter, while testing getting a connection for this adapter from a stateless session bean the following exception occurs.

The environment:

Linux openSuSE 11.2
jboss-5.1.0-GA
Sun JDK 1.6.0_20

The adapter has a GenericManagedConnection implements ManagedConnection, LocalTransaction, and a GenericManagedConnectionFactory implements MangedConnectionFactory. The GenericManagedConnection creates a custom connection and the factory creates a custom datasource and also the GenericManagedConnection.

ra.xml:

<?xml version="1.0" encoding="UTF-8"?>
<connector id="Connector_ID" version="1.5" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"> 
    <description></description>
    <display-name>algernon-connector</display-name>
     <vendor-name>Ebcot Business Solutions GmbH</vendor-name>
      <eis-type>Algernon-Connector</eis-type>
      <resourceadapter-version>1.0</resourceadapter-version>                                  
      <resourceadapter>
       <outbound-resourceadapter>
           <connection-definition>
               <managedconnectionfactory-class>de.ebcot.jca.connector.algernon.impl.GenericManagedConnectionFactory</managedconnectionfactory-class>
               <config-property>
                   <config-property-name>ProtegeProjectFile</config-property-name>
                   <config-property-type>java.lang.String</config-property-type>
               </config-property>
               <connectionfactory-interface>de.ebcot.jca.connector.algernon.DataSource</connectionfactory-interface>
               <connectionfactory-impl-class>de.ebcot.jca.connector.algernon.impl.AlgernonDataSource</connectionfactory-impl-class>
               <connection-interface>de.ebcot.jca.connector.algernon.Connection</connection-interface>
               <connection-impl-class>de.ebcot.jca.connector.algernon.impl.AlgernonConnection</connection-impl-class>
           </connection-definition>
           <transaction-support>LocalTransaction</transaction-support>
           <authentication-mechanism>
               <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
               <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
           </authentication-mechanism>
           <reauthentication-support>false</reauthentication-support>
       </outbound-resourceadapter>
      </resourceadapter>
</connector>

The -ds.xml:

<?xml version="1.0" encoding="UTF-8"?>
<connection-factories xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee jboss-ds_5_0.xsd ">
    <tx-connection-factory>
        <jndi-name>algernon.DataSource</jndi-name>
        <local-transaction/>
        <rar-name>algernon-connector.rar</rar-name>
        <connection-definition>de.ebcot.jca.connector.algernon.DataSource</connection-definition>
        <config-property name="ProtegeProjectFile" type="java.lang.String">/srv/appserver/jboss-5.1.0.GA/server/default/etc/ontology/prowimcore.pprj</config-property>
    </tx-connection-factory>
</connection-factories>

I've read  http://community.jboss.org/wiki/Couldnotenlistintransaction http://community.jboss.org/wiki/Couldnotenlistintransaction and  http://community.jboss.org/wiki/Multiple1PC http://community.jboss.org/wiki/Multiple1PC , but in my test the transaction was not rolled back and in my point of view i've no multiple resources. I just inject one data source and try to get a connection.

@Stateless
public class AlgernonService implements AlgernonServiceRemote
{
    @Resource(mappedName="java:/algernon.DataSource")
    private DataSource dataSource;
    
    /**
     * 
     * Description.
     * @return
     */
    public Connection getConnection(){
        
        return dataSource.getConnection();
    }
}


So, i can't figure out why the following exception occurs, any help and hints will be appreciated.

Thanks in advance, Thomas

The exception:

2010-06-14 18:38:00,324 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) getManagedConnection interleaving=false tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING >
 2010-06-14 18:38:00,336 TRACE [org.jboss.resource.connectionmanager.IdleRemover] (WorkerThread#0[127.0.0.1:45941]) internalRegisterPool: registering pool with interval 1800000 old interval: 9223372036854775807
 2010-06-14 18:38:00,337 TRACE [org.jboss.resource.connectionmanager.IdleRemover] (WorkerThread#0[127.0.0.1:45941]) internalRegisterPool: about to notify thread: old next: 1276534380337, new next: 1276534380337
 2010-06-14 18:38:00,346 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (WorkerThread#0[127.0.0.1:45941]) supplying new ManagedConnection: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 2010-06-14 18:38:00,346 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (WorkerThread#0[127.0.0.1:45941]) Got connection from pool tracked by transaction org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING > [InUse/Available/Max]: [1/9/10]
 2010-06-14 18:38:00,346 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (WorkerThread#0[127.0.0.1:45941]) Using connection from pool tracked by transaction org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING > [InUse/Available/Max]: [1/9/10]
 2010-06-14 18:38:00,347 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Pre-enlist: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] threadTx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING >
 2010-06-14 18:38:00,347 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Get synchronizer org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] threadTx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING >
 2010-06-14 18:38:00,347 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Enlisting resource org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=TxSync17568381{tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.RUNNING > wasTrackByTx=true enlisted=false}]
 2010-06-14 18:38:00,347 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) start, xid: < 131075, 27, 25, 494555102484848484850589849575758529949545397981005854515510248484848485058984957575852994954539798100585453 >, flags: 0
 2010-06-14 18:38:00,348 DEBUG [de.ebcot.jca.connector.algernon.impl.GenericManagedConnection] (WorkerThread#0[127.0.0.1:45941]) Begin transaction
 2010-06-14 18:38:00,352 WARN [com.arjuna.ats.jta.logging.loggerI18N] (WorkerThread#0[127.0.0.1:45941]) [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 at 1044bcb
 2010-06-14 18:38:00,353 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Failed to enlist resource org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=TxSync17568381{tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY > wasTrackByTx=true enlisted=false}]
 java.lang.Throwable: Unabled to enlist resource, see the previous warnings.
     at org.jboss.resource.connectionmanager.TxConnectionManager.<clinit>(TxConnectionManager.java:131)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1242)
     at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
     at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
     at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:211)
     at org.jboss.system.ServiceCreator.install(ServiceCreator.java:130)
     at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
     at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:37)
     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
     at org.jboss.system.ServiceController.install(ServiceController.java:274)
     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
     at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
     at org.jboss.Main.boot(Main.java:221)
     at org.jboss.Main$1.run(Main.java:556)
     at java.lang.Thread.run(Thread.java:619)
 2010-06-14 18:38:00,355 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Check enlisted org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] threadTx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY >
 2010-06-14 18:38:00,355 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Error enlisting resource in transaction=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY > org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 2010-06-14 18:38:00,356 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Could not enlist in transaction on entering meta-aware object! org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY >
     at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)
     at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)
     at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
     at de.ebcot.jca.connector.algernon.impl.AlgernonDataSource.getConnection(AlgernonDataSource.java:61)
     at de.ebcot.prowim.services.algernon.AlgernonService.getConnection(AlgernonService.java:46)
     at de.ebcot.prowim.services.algernon.AlgernonService.getVersionNumber(AlgernonService.java:55)
     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.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
     at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
     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.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_24441976.invoke(InvocationContextInterceptor_z_fillMethod_24441976.java)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_24441976.invoke(InvocationContextInterceptor_z_setup_24441976.java)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
     at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
     at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
     at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
     at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
     at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
     at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
     at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
     at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
 2010-06-14 18:38:00,360 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) delisting org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 2010-06-14 18:38:00,360 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Disconnected isManagedConnectionFree=true cl=org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 2010-06-14 18:38:00,360 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (WorkerThread#0[127.0.0.1:45941]) putting ManagedConnection back into pool kill=false cl=org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480346 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null]
 2010-06-14 18:38:00,360 DEBUG [de.ebcot.jca.connector.algernon.impl.GenericManagedConnection] (WorkerThread#0[127.0.0.1:45941]) Cleanup: nothing todo !?
 2010-06-14 18:38:00,360 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (WorkerThread#0[127.0.0.1:45941]) Returning connection to pool org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener at 82c72f[state=NORMAL mc=de.ebcot.jca.connector.algernon.impl.GenericManagedConnection at 1e2ee4f handles=0 lastUse=1276533480360 permit=false trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool at 18b92d6 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool at 554866 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource at 1044bcb txSync=null] [InUse/Available/Max]: [0/10/10]
 2010-06-14 18:38:00,376 DEBUG [org.jboss.util.NestedThrowable] (WorkerThread#0[127.0.0.1:45941]) org.jboss.util.NestedThrowable.parentTraceEnabled=true
 2010-06-14 18:38:00,376 DEBUG [org.jboss.util.NestedThrowable] (WorkerThread#0[127.0.0.1:45941]) org.jboss.util.NestedThrowable.nestedTraceEnabled=false
 2010-06-14 18:38:00,376 DEBUG [org.jboss.util.NestedThrowable] (WorkerThread#0[127.0.0.1:45941]) org.jboss.util.NestedThrowable.detectDuplicateNesting=true
 2010-06-14 18:38:00,361 ERROR [de.ebcot.jca.connector.algernon.impl.AlgernonDataSource] (WorkerThread#0[127.0.0.1:45941]) Could not get Connection from ConnectionManager: 
 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: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY >)
     at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:409)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
     at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
     at de.ebcot.jca.connector.algernon.impl.AlgernonDataSource.getConnection(AlgernonDataSource.java:61)
     at de.ebcot.prowim.services.algernon.AlgernonService.getConnection(AlgernonService.java:46)
     at de.ebcot.prowim.services.algernon.AlgernonService.getVersionNumber(AlgernonService.java:55)
     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.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
     at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
     at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
     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.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_24441976.invoke(InvocationContextInterceptor_z_fillMethod_24441976.java)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
     at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_24441976.invoke(InvocationContextInterceptor_z_setup_24441976.java)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
     at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
     at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
     at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
     at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
     at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
     at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
     at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
     at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
     at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
 Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 7f000002:b199:4c165abd:63 status: ActionStatus.ABORT_ONLY >
     at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)
     at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)
     at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
     ... 61 more
 2010-06-14 18:38:00,383 TRACE [org.jboss.resource.connectionmanager.CachedConnectionManager] (WorkerThread#0[127.0.0.1:45941]) popped object: org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation at a79f01
 2010-06-14 18:38:00,524 DEBUG [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#0[127.0.0.1:45941]) WorkerThread#0[127.0.0.1:45941] closed socketWrapper: ServerSocketWrapper[Socket[addr=/127.0.0.1,port=45941,localport=3873].62d341]

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/547974#547974]

Start a new discussion in JCA at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100615/f658cd73/attachment-0001.html 


More information about the jboss-user mailing list