Forums Register Login

Problem in calling an EJB method from a delegate class

+Pie Number of slices to send: Send
In Our application we encountered with the following exception while a Delegate class calls a EJB Bean class to update a record in DB.

While calling the delegate we are passing 3 parameters namely H2HProperties object, a String object and a Connection object and among three parameters the H2HProperties is a value object class which already implements Serializable interface. But still face the issue.

So please someone help me who has already faced this kind of problem in your application.

2010-02-08 18:43:24,160 ERROR com.crimsonlogic.trade.tdec.sau.business.TDECDelegate - initH2HMessageProcess(H2HProperties h2hProp)
javax.transaction.TransactionRolledbackException: EJB Exception: : java.io.NotSerializableException: weblogic.transaction.internal.ServerTransactionImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:78)
at weblogic.rmi.internal.CBVWrapper.copy(CBVWrapper.java:47)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl_CBV.updateTransStatus(Unknown Source)
at com.crimsonlogic.trade.tdec.sau.business.TDECDelegate.updateTransStatus(TDECDelegate.java:250)
at com.crimsonlogic.trade.tdec.sau.business.H2HTDecSubManager.processH2HTDecSub(H2HTDecSubManager.java:293)
at com.crimsonlogic.trade.tdec.sau.business.H2HTDecSubManager.processH2HMsg(H2HTDecSubManager.java:52)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean.processH2HMsg(TDECMsgSvcBean.java:969)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean.initH2HMessageProcess(TDECMsgSvcBean.java:881)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl.initH2HMessageProcess(TDECMsgSvcBean_6t19qe_EOImpl.java:208)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl_CBV.initH2HMessageProcess(Unknown Source)
at com.crimsonlogic.trade.tdec.sau.business.TDECDelegate.initH2HMessageProcess(TDECDelegate.java:222)
at com.crimsonlogic.trade.sau.msg.ejb.MsgSvcBean.processH2HMsg(MsgSvcBean.java:622)
at com.crimsonlogic.trade.sau.msg.ejb.MsgSvcBean_5z2zq6_EOImpl.processH2HMsg(MsgSvcBean_5z2zq6_EOImpl.java:694)
at com.crimsonlogic.trade.sau.msg.ejb.H2HMBean.onMessage(H2HMBean.java:83)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:706)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:362)
at java.lang.Thread.run(Thread.java:536)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.io.NotSerializableException: weblogic.transaction.internal.ServerTransactionImpl]
at weblogic.rmi.internal.CBVWrapper.copy(CBVWrapper.java:55)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl_CBV.updateTransStatus(Unknown Source)
at com.crimsonlogic.trade.tdec.sau.business.TDECDelegate.updateTransStatus(TDECDelegate.java:250)
at com.crimsonlogic.trade.tdec.sau.business.H2HTDecSubManager.processH2HTDecSub(H2HTDecSubManager.java:293)
at com.crimsonlogic.trade.tdec.sau.business.H2HTDecSubManager.processH2HMsg(H2HTDecSubManager.java:52)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean.processH2HMsg(TDECMsgSvcBean.java:969)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean.initH2HMessageProcess(TDECMsgSvcBean.java:881)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl.initH2HMessageProcess(TDECMsgSvcBean_6t19qe_EOImpl.java:208)
at com.crimsonlogic.trade.tdec.sau.ejb.TDECMsgSvcBean_6t19qe_EOImpl_CBV.initH2HMessageProcess(Unknown Source)
at com.crimsonlogic.trade.tdec.sau.business.TDECDelegate.initH2HMessageProcess(TDECDelegate.java:222)
at com.crimsonlogic.trade.sau.msg.ejb.MsgSvcBean.processH2HMsg(MsgSvcBean.java:622)
at com.crimsonlogic.trade.sau.msg.ejb.MsgSvcBean_5z2zq6_EOImpl.processH2HMsg(MsgSvcBean_5z2zq6_EOImpl.java:694)
at com.crimsonlogic.trade.sau.msg.ejb.H2HMBean.onMessage(H2HMBean.java:83)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:706)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:362)
at java.lang.Thread.run(Thread.java:536)
; nested exception is:



Regards,
Dinesh.
+Pie Number of slices to send: Send
Hi DinesKumar,

unfortunately I'm not familiar with Weblogic but as the stacktrace says there's obviously still a problem when serializing H2HProperties. Are you sure that the whole object graph of H2HProperties is Serializable? I guess it won't be sufficient if only H2HProperties implements Serializable and some child or composite classes do not.
Or did you provide your own application logic for the writeObject() method which could be causing the problem?

Marco
+Pie Number of slices to send: Send
Hi Thanks a lot for the reply.

Yes the whole H2HProperties class is serialized and it has no sub classes. Also I didn't write any own application logic for writeObject() method.

Regards,
Dinesh.

+Pie Number of slices to send: Send
Are you using the values() or keySet() method to pass or return data? This thread - https://coderanch.com/t/479702/EJB-Other-Java-EE-Technologies/java/do-figure-out-what-not will help.

ram.
You can thank my dental hygienist for my untimely aliveness. So tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2411 times.
Similar Threads
javax . mail . MessagingException: 552 Error: message too large
WLI 8.1.6 & Oracle 10g
Error while exporting to PDF/Excel
Accessing Entity from MDB
Clustering an application by jboss produced this:
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:19:04.