• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

javax.transaction.TransactionRolledbackException

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
There are 2 session beans within my project, 1st is a session bean which will get records from 1 table, and it will then create many threads calling 2nd session bean to get records from 2 table then publish messages to MQ.

Now i got this exceptions:javax.transaction.TransactionRolledbackException
06/17/2009 11:37:09 AM EDT Fatal Error encountered when calling Publisher application. Exception=javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK:

Trace from server: 1198777258 at host bimini.bocaraton.ibm.com >>
org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbackException: vmcid: 0x0 minor code: 0 completed: No
at com.ibm.ejs.csi.OrbUtilsImpl.mapException(OrbUtilsImpl.java:76)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapCSIException(RemoteExceptionMappingStrategy.java:337)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapCSITransactionRolledBackException(RemoteExceptionMappingStrategy.java:356)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:2946)


THANKS in advance.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The first problem that I can spot is that you are creating threads from a session bean, you can't create threads from a session bean.
 
all money go my home
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually the 1st session bean will create a asynch bean, not sure whether it's a session bean.
here is the code:
private void startWork(final RecordInfo recordInfo)
throws
CreateException,
WorkException,
IllegalArgumentException,
CCMSPublisherException
{

final PublisherWorkerLocal threadRemote = pWorkerThreadHome.create();
Work w = new Work()
{
public void run()
{
try
{
threadRemote.publishMessage(recordInfo);
}
catch (Throwable t)
{
t.printStackTrace();
logMesg = null;
logMesg =
new LogMessage(
MessageUtil.getMessage("311", t.toString()),
CCMSLogConstants.PUBSUB,
CCMSLogConstants.MESSAGE_SEVERITY_FATAL_ERROR,
CCMSLogConstants.PRIORITY_ONE,
"PublisherMessageBean");
logMesg.setTrace(true);
CCMSLog.log(logMesg);

return;
}

}
public void release()
{
}
};
WorkItem witm = wm.startWork(w);
} // end InvokeThread()
 
brevity is the soul of wit - shakepeare. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic