|
I have recently upgraded my Product from Hibernate 2 to Hibernate 3 and testing for Backward compatibility of the application. There will be two applications in my Product. I have setup one application in Hbm 2 and the other in Hbm 3. Communication Hbm 3 app to Hbm 2 app is fine. But, Hbm 2 to Hbm 3 communication is not happening properly. Exception trace says:
"
12:49:07,882 WARN [root] Clone and Redelivery property not set as expected.
12:49:08,890 ERROR [root] java.lang.RuntimeException: No ClassLoaders found for: net.sf.hibernate.collection.Set
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
at org.jboss.messaging.util.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:78)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)
at com.jda.portfolio.transaction.base.bean.TransBean.readObject(TransBean.java:2243)
at sun.reflect.GeneratedMethodAccessor376.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at org.jboss.messaging.util.StreamUtils.readObject(StreamUtils.java:154)
at org.jboss.messaging.core.impl.message.MessageSupport.readPayload(MessageSupport.java:392)
at org.jboss.jms.message.JBossObjectMessage.getObject(JBossObjectMessage.java:126)
at org.jboss.jms.message.ObjectMessageProxy.getObject(ObjectMessageProxy.java:68)
at com.jda.portfolio.pos.hostexport.server.StoreExportMessageProcessor.processTransactionMessage(StoreExportMessageProcessor.java:411)
at com.jda.portfolio.pos.hostexport.server.StoreExportMessageProcessor.processMessage(StoreExportMessageProcessor.java:85)
at com.jda.portfolio.pos.server.startup.mbeans.CentralExportDLQMsgListener.onMessage(CentralExportDLQMsgListener.java:161)
at org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:229)
at org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:1043)
at org.jboss.messaging.util.OrderedExecutorFactory$ChildExecutor.run(OrderedExecutorFactory.java:120)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
"
StoreExportMessageProcessor is the class related to my application. In a short form, message gets serialized from the source, travels to the destination, gets de-serialized and processed further. Here is where I am getting the above mentioned exception.
My guess is that, message is getting serialized with Hibernate 2 distribution and while getting de-serialized, the Hibernate 2 distribution was not found resulting in the above exception. I tried by changing the jars with a lot many ways but I was unable to find a solution for the same.
Please help.
Thanks,
Viswanath Thulluru
|