5 Replies Latest reply on Feb 12, 2013 4:37 PM by sammie88

    JBoss Migration from 4.2.3 to 7 - JCA

    sammie88 Newbie

      Hi,

       

      I am trying to migrate from Jboss 4 to 7. Im using the ff resource adapter from 4: In my ra.xml I am still using:

       

      <resourceadapter-class>org.jboss.resource.deployment.DummyResourceAdapter</resourceadapter-class>

       

      DummyResourceAdapter -I dont think -exists anymore in JBoss7 . In order to deploy in Jboss 7, I have to use and include jboss-jca.jar from JBoss4.  It deploys ok but when I am trying to make a connection it fails. Could it be because Im still using the old resource adapter?

       

      13:09:16,344 DEBUG [org.jboss.jca.core.connectionmanager.pool.idle.IdleRemover] (EJB default - 1) Register pool: SemaphoreArrayListManagedConnectionPool@14c1c7c4[pool=xxx] (interval=900000)

      13:09:16,346 DEBUG [org.jboss.jca.core.connectionmanager.pool.idle.IdleRemover] (EJB default - 1) About to notify thread: old next: 1357334206346, new next: 1357334206346

      13:09:16,347 DEBUG [org.jboss.jca.core.connectionmanager.pool.idle.IdleRemover] (IdleRemover) Notifying pools, interval: 450000

      13:09:16,348 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.ReauthPool] (EJB default - 1) TestRegion: getConnection(null, null) [0/50]

      13:09:16,349 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.ReauthPool] (EJB default - 1) IJ000604: Throwable while attempting to get a new connection: null: java.lang.NullPointerException

                at com.test.TestManagedConnectionFactory.createManagedConnection(TestManagedConnectionFactory.java:53) [sample.jar:]

                at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:761) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:343) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                at com.test.TestFactoryImpl.getConnection(TestFactoryImpl.java:34) [sample.jar:]