aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes javax.transaction.TransactionRolledbackException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.transaction.TransactionRolledbackException" Watch "javax.transaction.TransactionRolledbackException" New topic
Author

javax.transaction.TransactionRolledbackException

all money go my home
Greenhorn

Joined: Jun 18, 2009
Posts: 2
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.
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
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.


SCBCD - SCWCD - SCJD - SCJP - OCA
all money go my home
Greenhorn

Joined: Jun 18, 2009
Posts: 2
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()
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.transaction.TransactionRolledbackException