0 Replies Latest reply on Nov 25, 2002 7:14 AM by Narendra Shikaripur

    java.lang.reflect.UndeclaredThrowableException when calling

    Narendra Shikaripur Newbie

      I am getting this Exception when the findByPrimaryKey() method of a CMP2.0 bean is called.But this fails only after a series of successful retrievals from findByPrimaryKey() method. Have u guys faced this problem before. Is this a connectionpool problem in jboss?
      Please advice
      Thank you
      Narendra Shikaripur



      java.lang.reflect.UndeclaredThrowableException
      at $Proxy66.findByPrimaryKey(Unknown Source)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeM

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Del
      ava:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ejb.MessageDrivenContainer$ContainerInter
      Container.java:391)
      at org.jboss.resource.connectionmanager.CachedConnecti
      ConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeN
      ava:96)
      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invo
      rBMT.java:144)
      at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
      rceptorBMT.java:36)
      at org.jboss.ejb.plugins.MessageDrivenInstanceIntercep
      tanceInterceptor.java:88)
      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invo
      .java:100)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInte

      at org.jboss.ejb.MessageDrivenContainer.invoke(Message

      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invok
      625)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$Messa
      SContainerInvoker.java:973)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdSer

      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProc
      er.java:561)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessa

      at org.jboss.mq.SpySession.run(SpySession.java:252)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSes

      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wor
      :642)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.rmi.ServerException: xaRes not enlisted; n

      gumentException: xaRes not enlisted
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeN
      ava:119)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTrans
      va:242)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(T

      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHom
      104)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(Log

      at org.jboss.ejb.EntityContainer.invokeHome(EntityCont

      at org.jboss.ejb.plugins.local.BaseLocalContainerInvok
      ainerInvoker.java:227)
      at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(L

      ... 26 more
      Caused by: java.lang.IllegalArgumentException: xaRes not e

      at org.jboss.tm.TxCapsule.delistResource(TxCapsule.jav

      at org.jboss.tm.TransactionImpl.delistResource(Transac

      at org.jboss.resource.connectionmanager.LocalTxConnect
      ventListener.delist(LocalTxConnectionManager.java:347)
      at org.jboss.resource.connectionmanager.LocalTxConnect
      nDisconnected(LocalTxConnectionManager.java:272)
      at org.jboss.resource.connectionmanager.BaseConnection
      nectionManager2.java:627)
      at org.jboss.resource.connectionmanager.CachedConnecti
      ConnectionManager.java:358)
      at org.jboss.resource.connectionmanager.CachedConnecti
      ct(CachedConnectionManager.java:126)
      at org.jboss.resource.connectionmanager.CachedConnecti
      chedConnectionInterceptor.java:212)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.inv
      ceptor.java:134)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeH
      ava:79)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.inv
      ceptor.java:44)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeN