|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
About MDB Exception |
« View previous topic :: View next topic » |
Author |
Message
|
jeffcf |
Posted: Thu Feb 15, 2007 10:50 pm Post subject: About MDB Exception |
|
|
Newbie
Joined: 15 Feb 2007 Posts: 1
|
Hi all,
I need someone help me. ^_^
I write a MDB to receive MQ Message then insert into DB2 database.
1. AP server : websphere 5
2. Message Serve : IBM MQ Server
3. MDB transaction type is bean. I control transaction by myself at onMessage to call module(jdbc db).
4. The transaciton are all in onMessage to call db module , I don't call any EJB.
4. The message generate from CICS call MQ API.
5. Peak time : 3-5 message / per sec.
6. I catch Exception and throwable at onMessage method and catch is fail.
the exception also throw.
The program run normally. ( insert db success)
But sometime systemOut log has some error message as following :
[5/28/06 18:49:21:770 CST] 269e94f7 LocalTranCoor E WLTC0033E: Resource linxDataSource rolled back in cleanup of unresolved LocalTransactionContainment.
[5/28/06 18:49:21:786 CST] 269e94f7 LocalTranCoor E WLTC0032E: One or more resources rolled back. An unresolved LocalTransactionContainment had an unresolved action of rollback.
[5/28/06 18:49:22:084 CST] 269e94f7 ServerSession W WMSG0031E: Exception processing JMS Message for MDB SendMessagMDB, JMSDestination SendMessageQueue : javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.ibm.ws.exception.WsEJBException
com.ibm.ws.exception.WsEJBException
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:159)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSITransactionRolledBackException(LocalExceptionMappingStrategy.java:293)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java(Compiled Code))
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.ibm.ws.exception.WsEJBException
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSIException(LocalExceptionMappingStrategy.java:96)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:165)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapCSITransactionRolledBackException(LocalExceptionMappingStrategy.java:293)
at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java(Compiled Code))
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java(Compiled Code))
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Transaction type is bean : why EJB container throw TransactionRolledbackLocalException ?
How to solve it?
Thanks
Best Regards,
Jeff Tseng |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 17, 2007 6:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like you have an exception in the onMessage method that forced a rollback.
The exception got raised when executing:
LocalExceptionMappingStrategy.java: @ line # 293
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Jeff CF |
Posted: Sat Feb 17, 2007 9:24 pm Post subject: |
|
|
Newbie
Joined: 07 Sep 2006 Posts: 2
|
Hi,
Could you tell me more information how exception happened?
Are there any solution to solve it?
I use the following code to catch exception :
public void onMessage(javax.jms.Message aMsg) {
try{
call db module
}catch(Exception){
}catch(throwable te){
}
}
But the exception also throw.
Thanks,
Jeff
fjb_saper wrote: |
Looks like you have an exception in the onMessage method that forced a rollback.
The exception got raised when executing:
LocalExceptionMappingStrategy.java: @ line # 293
Enjoy  |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|