[jboss-user] [JBossCache] - JBossCache - RpcDispatcher:257 - exception marshalling objec

sebas23 do-not-reply at jboss.com
Thu Aug 23 23:08:38 EDT 2007


Good evening,
I am trying to configure JBossCache for Hibernate in Weblogic 9.2. I am using hibernate-3.2.5, jbosscache-1.4.1sp4 and jgroups-2.4.1-sp4. I can see the two nodes from the cluster establish their communication when everything gets initialized, i.e. stuff like:
22:58:07,257 DEBUG GMS:435 - [local_addr=10.222.64.80:57141] view is [10.222.64.91:57141|1] [10.222.64.91:57141, 10.222.64.80:
57141]
(I basically use the treecache.xml provided on the wiki)

Now, when hibernate loads objects and tries to replicate them accross, I get a load of exceptions like the one below. I can't figure out what setting I am missing/what could be the problem at this point. All the jar files are in in the APP-INF/lib folder in my application ear file so it should be a problem to load. I would definitely appreciate any help!

Thanks in advance,
Seb

22:58:24,280 ERROR RpcDispatcher:257 - exception marshalling object
java.io.IOException: org.hibernate.cache.CacheKey
        at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:332)
        at org.jboss.serial.classmetamodel.StreamingClass.readStream(StreamingClass.java:72)
        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory
.java:381)
        at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
        at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
        at org.jboss.serial.io.JBossObjectInputStreamSharedTree.readObjectOverride(JBossObjectInputStreamSharedTree.java:61)
        at org.jboss.cache.marshall.JBossObjectStreamFactory$JBossObjectInputStreamOverride.readObjectOverride(JBossObjectStre
amFactory.java:33)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:342)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:432)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallFqn(TreeCacheMarshaller140.java:520)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:440)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallMethodCall(TreeCacheMarshaller140.java:493)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:436)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallArrayList(TreeCacheMarshaller140.java:544)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:452)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallMethodCall(TreeCacheMarshaller140.java:493)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:436)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallMethodCall(TreeCacheMarshaller140.java:493)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.unmarshallObject(TreeCacheMarshaller140.java:436)
        at org.jboss.cache.marshall.TreeCacheMarshaller140.objectFromStream(TreeCacheMarshaller140.java:126)
        at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:167)
        at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:254)
        at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
        at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
        at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
        at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
        at org.jgroups.JChannel.up(JChannel.java:1091)
        at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:382)
        at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:398)
        at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
        at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
        at org.jgroups.stack.UpHandler.run(Protocol.java:60)
Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheKey
        at java.lang.ClassLoader.findClass(ClassLoader.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.jboss.serial.classmetamodel.ClassMetamodelFactory.resolveClassByName(ClassMetamodelFactory.java:269)
        at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:289)
        ... 31 more



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077604#4077604

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077604



More information about the jboss-user mailing list