Hi
I am going through the Professional EJB.I am implementing the examples of this book. In chapter 4 one example is given for BMP bean. I have implemented that one. Deployment of BMP is successfull. And while runnign the client "TaxClient" the following exception is thrown.
This was throen at the statement
tax = home.create("IL", 5.00f);
The ejbCreate() method in the TaxEJB got executed completly, I put the debug statements. So the error is at client side only.
Why it is trowing this exception while returning teh stateCode.
Please help me...
The exception is as follows...
Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: Transaction aborted (possibly due to transacti
on time out).; nested exception is: javax.transaction.RollbackException: Transac
tion marked for rollback; nested exception is:
javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegat e.mapSystemExceptio
n(ShutdownUtilDelegate.java:64)
at javax.rmi.CORBA.Util.mapSystemException(Util.java: 65)
at bmp._TaxHome_Stub.create(Unknown Source)
at TaxClient.main(TaxClient.java:15)
Caused by: java.rmi.RemoteException: Transaction aborted (possibly due to transa
ction time out).; nested exception is: javax.transaction.RollbackException: Tran
saction marked for rollback; nested exception is:
javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.enterprise.iiop.POAProtocolMgr.mapExceptio n(POAProtocolMgr.ja
va:389)
at com.sun.ejb.containers.BaseContainer.postInvoke(Ba seContainer.java:43
1)
at bmp.TaxEJB_RemoteHomeImpl.create(TaxEJB_RemoteHome Impl.java:38)
at bmp._TaxEJB_RemoteHomeImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.d ispatchToServant(Ge
nericPOAServerSC.java:520)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.i nternalDispatch(Gen
ericPOAServerSC.java:210)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.d ispatch(GenericPOAS
erverSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.jav a:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.
pr ocess(RequestProces
sor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$Poole dThread.run(ThreadP
ool.java:99)
Caused by: javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.enterprise.distributedtx.J2EETransaction.c ommit(J2EETransacti
on.java:161)
at com.sun.enterprise.distributedtx.J2EETransactionMa nagerOpt.commit(J2E
ETransactionManagerOpt.java:243)
at com.sun.ejb.containers.BaseContainer.completeNewTx (BaseContainer.java
:1485)
at com.sun.ejb.containers.BaseContainer.postInvokeTx( BaseContainer.java:
1289)
at com.sun.ejb.containers.BaseContainer.postInvoke(Ba seContainer.java:40
3)
... 8 more
Thanks & Regards
Ramko