0 Replies Latest reply on Mar 14, 2002 3:08 PM by billhuangyu

    Transaction exception when deploying a jar

    billhuangyu Newbie

      I use Jboss beta at the monment. I use a session bean to call a entity bean "A" which is local entity bean. The entity bean has a relation with another local entity bean "B", one to many relationship. When I create the new entity bean B and add it into the collection of A using remote method in session bean, it generate the exception as below, but the data did insert into the table, is it a bug???? If it is not, just ignore the message. One more thing forget to mention is that the bean B's Primary key is Automatic generated by UIDDispensor class(ejbutils-1.2beta).

      javax.resource.ResourceException: Unable to rollback DB connection: java.sql.SQL
      Exception: General error: Warning: Some non-transactional changed tables couldn
      't be rolled back
      at org.jboss.resource.adapter.jdbc.local.JDBCManagedConnection.cleanup(J
      DBCManagedConnection.java:216)
      at org.jboss.resource.connectionmanager.ManagedConnectionPoolFactory.ret
      urnObject(ManagedConnectionPoolFactory.java:145)
      at org.jboss.pool.ObjectPool.releaseObject(ObjectPool.java:820)
      at org.jboss.resource.connectionmanager.BaseConnectionManager$NoTransact
      ionListener.closeConnection(BaseConnectionManager.java:449)
      at org.jboss.resource.connectionmanager.BaseConnectionManager$NoTransact
      ionListener.connectionClosed(BaseConnectionManager.java:409)
      at org.jboss.resource.adapter.jdbc.BaseManagedConnection.fireConnectionE
      vent(BaseManagedConnection.java:152)
      at org.jboss.resource.adapter.jdbc.local.JDBCManagedConnection.fireConne
      ctionEvent(JDBCManagedConnection.java:227)
      at org.jboss.resource.adapter.jdbc.local.JDBCManagedConnection$1.objectC
      losed(JDBCManagedConnection.java:80)
      at org.jboss.resource.adapter.jdbc.local.ConnectionInPool.firePoolEvent(
      ConnectionInPool.java:899)
      at org.jboss.resource.adapter.jdbc.local.ConnectionInPool.close(Connecti
      onInPool.java:788)
      at org.ejbutils.uid.UIDHighKeyGeneratorBean.getNextHighKey(UIDHighKeyGen
      eratorBean.java)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
      tatelessSessionContainer.java:642)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxI
      nterceptorBMT.java:144)
      at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:6
      2)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
      elessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
      ner.java:308)
      at org.jboss.ejb.Container.invoke(Container.java:630)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      55)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:92)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
      kerProxy.java:150)
      at org.jboss.proxy.ejb.GenericProxy.invoke(GenericProxy.java:182)
      at org.jboss.proxy.ejb.StatelessSessionProxy.invoke(StatelessSessionProx
      y.java:111)
      at $Proxy75.getNextHighKey(Unknown Source)
      at org.ejbutils.uid.UIDDispenser.findNewHighKey(UIDDispenser.java:141)
      at org.ejbutils.uid.UIDDispenser.getNextId(UIDDispenser.java:87)
      at syit.TelephoneBean.ejbCreate(TelephoneBean.java:14)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersisten
      ceManager.java:201)
      at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:56
      1)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC
      ontainer.java:1051)
      at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep
      tor.java:73)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent
      itySynchronizationInterceptor.java:222)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst
      anceInterceptor.java:136)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte
      rceptor.java:80)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:98)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja
      va:52)
      at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep
      tor.java:102)
      at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1
      09)
      at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:469)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(Base
      LocalContainerInvoker.java:244)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$HomeProxy.invok
      e(BaseLocalContainerInvoker.java:369)
      at $Proxy60.create(Unknown Source)
      at syit.UserBean.addTelephone(UserBean.java:111)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityConta
      iner.java:1127)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRel
      ationInterceptor.java:184)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntityS
      ynchronizationInterceptor.java:296)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstance
      Interceptor.java:189)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockIntercep
      tor.java:108)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:475)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLoca
      lContainerInvoker.java:308)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$EntityProxy.inv
      oke(BaseLocalContainerInvoker.java:412)
      at $Proxy71.addTelephone(Unknown Source)
      at syit.UserProxyBean.addPhoneNumber(UserProxyBean.java:130)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(St
      atefulSessionContainer.java:797)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
      java:127)
      at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(State
      fulSessionInstanceInterceptor.java:266)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
      rceptor.java:96)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
      torCMT.java:167)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:6
      1)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContaine
      r.java:373)
      at org.jboss.ejb.Container.invoke(Container.java:630)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      55)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
      364)
      at java.lang.reflect.Method.invoke(Native Method)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      at sun.rmi.transport.Transport$1.run(Transport.java:152)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      65)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:706)
      at java.lang.Thread.run(Thread.java:484)