• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Transaction marked for rollback on ejbCreate()? Servlet->CMP EJB1.0->Mysql DB

Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i deploeyed a test .ear (Servlet->CMP EJB1.0->Mysql DB), method transaction is Required.
What do in the servlet:
// Found sucessfully!

home.create("Wang Wang", "Laurency");
//no external transaction here.
//RollbackException thown.
Please help a ideal, thanks a lot.
Caused by: java.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback; nested exce
ption is:
javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:389)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:431)
at PetBean_PM_RemoteHomeImpl.create(PetBean_PM_RemoteHomeImpl.java:32)
at _PetHome_Stub.create(Unknown Source)
... 37 more
Caused by: javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:161)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:243)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1485)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1303)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:403)
    Bookmark Topic Watch Topic
  • New Topic