0 Replies Latest reply on May 16, 2002 6:50 AM by rabbitxu

    About "Commit Option" and ejbLoad() problem.

    rabbitxu Newbie

      Hello all:
      I deploy Sun's j2eetutorial/examples/src/ejb/savingsaccount to JBOSS2.44,if Commit Option is A in standardjboss.xml then the BMP can run ,but never call ejbLoad().if I change Commit Option to "B" or "C" then it appear the following error.Why?How to solve? Thank you.

      In client:
      [java] Caught an exception.
      [java] java.rmi.ServerException: RemoteException occurred in server thread;
      nested exception is:
      [java] javax.transaction.TransactionRolledbackException: null
      [java] Embedded Exception
      [java] null; nested exception is:
      [java] javax.ejb.EJBException: null
      [java] Embedded Exception
      [java] null
      [java] javax.transaction.TransactionRolledbackException: null
      [java] Embedded Exception
      [java] null; nested exception is:
      [java] javax.ejb.EJBException: null
      [java] Embedded Exception
      [java] null
      [java] javax.ejb.EJBException: null

      In JBoss server:
      18:51:42,545,Default] In ejbLoad ...............
      [18:51:42,545,EntitySynchronizationInterceptor] loadEntity Exception, clear tx for ctx=org.jboss.ejb.EntityEnterpriseContext@158291, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=GEORGEX//1, BranchQual=]
      [18:51:42,545,EntityInstanceInterceptor] Ending invoke, exceptionThrown, ctx=org.jboss.ejb.EntityEnterpriseContext@158291
      [18:51:42,545,EntityInstanceInterceptor] End invoke, key=130, ctx=org.jboss.ejb.EntityEnterpriseContext@158291
      [18:51:42,545,EntityLockInterceptor] End invoke, key=130
      [18:51:42,545,TxInterceptorCMT] in finally
      [18:51:42,545,TxInterceptorCMT] newTransaction is not null
      [18:51:42,545,TxInterceptorCMT] rolling back newTransaction
      [18:51:42,545,TxInterceptorCMT] TX_REQUIRED end
      [18:51:42,561,SavingsAccountEJB] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at org.jboss.ejb.plugins.BMPPersistenceManager.loadEntity(BMPPersistenceManager.java:350)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:287)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:197)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:125)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:428)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      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:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)
      java.lang.AbstractMethodError
      at org.jboss.pool.jdbc.ResultSetInPool.getBigDecimal(Unknown Source)
      at SavingsAccountBean.loadRow(Unknown Source)
      at SavingsAccountBean.ejbLoad(Unknown Source)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.ejb.plugins.BMPPersistenceManager.loadEntity(BMPPersistenceManager.java:324)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:287)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:197)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:125)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:428)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
      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:465)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      at java.lang.Thread.run(Thread.java:484)