Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 5th, 2003, 05:27 AM
Registered User
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception while running BMP

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
        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
        at com.sun.ejb.containers.BaseContainer.postInvoke(Ba seContainer.java:43
        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
        at com.sun.corba.ee.internal.POA.GenericPOAServerSC.i nternalDispatch(Gen
        at com.sun.corba.ee.internal.POA.GenericPOAServerSC.d ispatch(GenericPOAS
        at com.sun.corba.ee.internal.iiop.ORB.process(ORB.jav a:255)
        at com.sun.corba.ee.internal.iiop.RequestProcessor.pr ocess(RequestProces
        at com.sun.corba.ee.internal.orbutil.ThreadPool$Poole dThread.run(ThreadP
Caused by: javax.transaction.RollbackException: Transaction marked for rollback
        at com.sun.enterprise.distributedtx.J2EETransaction.c ommit(J2EETransacti
        at com.sun.enterprise.distributedtx.J2EETransactionMa nagerOpt.commit(J2E
        at com.sun.ejb.containers.BaseContainer.completeNewTx (BaseContainer.java
        at com.sun.ejb.containers.BaseContainer.postInvokeTx( BaseContainer.java:
        at com.sun.ejb.containers.BaseContainer.postInvoke(Ba seContainer.java:40
        ... 8 more

Thanks & Regards

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert .bmp to .jpg DearNeel Beginning VB 6 3 October 17th, 2014 07:17 AM
textureing by a bmp file. jopeter C# 0 December 23rd, 2007 07:08 PM
Exception in running a program furqanms Java Basics 2 June 21st, 2006 10:39 PM
Exception Error While Running XSL.Files RICHBIRD XSLT 1 June 15th, 2006 02:58 AM
BMP Iamges shs BOOK: Beginning ASP.NET 1.0 1 August 31st, 2004 05:34 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.