ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@apache.org>
Subject Re: Error Retrieving data from IgniteCache
Date Wed, 25 Jan 2017 23:04:07 GMT
You’re trying to deserialize some object on that machine and it misses object’s class.
Try to find out what the object is and either add its class to the classpath of the machine
or (preferably) try to use binary marshaller for this class avoiding deserialization.
https://apacheignite.readme.io/docs/binary-marshaller <https://apacheignite.readme.io/docs/binary-marshaller>
https://apacheignite.readme.io/docs/binary-marshaller#modifying-binary-objects-using-binaryobjectbuilder

—
Denis

> On Jan 25, 2017, at 10:44 AM, hemanta <satyajeet1234@gmail.com> wrote:
> 
> We are using Ignite version 1.6 and everything is looking good except one new
> machine which has all same configurations. However we are seeing below error
> in log file.
> 
> 
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.lang.Thread.run(Thread.java:745)
> INFO | jvm 1 | 2017/01/25 11:09:04 | Caused by: class
> org.apache.ignite.IgniteCheckedException: Failed to find class with given
> class loader for unmarshalling (make sure same versions of all classes are
> available on all nodes or enable peer-class-loading): WebappClassLoader
> INFO | jvm 1 | 2017/01/25 11:09:04 | context: 
> INFO | jvm 1 | 2017/01/25 11:09:04 | delegate: false
> INFO | jvm 1 | 2017/01/25 11:09:04 | repositories:
> INFO | jvm 1 | 2017/01/25 11:09:04 | /WEB-INF/classes/
> INFO | jvm 1 | 2017/01/25 11:09:04 | ----------> Parent Classloader:
> INFO | jvm 1 | 2017/01/25 11:09:04 | java.net.URLClassLoader@4eca7064
> INFO | jvm 1 | 2017/01/25 11:09:04 | 
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:224)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryUtils.doReadOptimized(BinaryUtils.java:1572)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1663)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryUtils.doReadObject(BinaryUtils.java:1588)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryUtils.deserializeOrUnmarshal(BinaryUtils.java:1935)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryUtils.doReadCollection(BinaryUtils.java:1866)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1623)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.readField(BinaryReaderExImpl.java:1683)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryFieldAccessor$DefaultFinalClassAccessor.read(BinaryFieldAccessor.java:639)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:776)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1481)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue(BinaryObjectImpl.java:572)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.binary.BinaryObjectImpl.value(BinaryObjectImpl.java:131)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinary(CacheObjectContext.java:257)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:148)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.CacheObjectContext.unwrapBinaryIfNeeded(CacheObjectContext.java:135)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.GridCacheContext.unwrapBinaryIfNeeded(GridCacheContext.java:1732)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedSingleGetFuture.setResult(GridPartitionedSingleGetFuture.java:632)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedSingleGetFuture.localGet(GridPartitionedSingleGetFuture.java:424)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedSingleGetFuture.mapKeyToNode(GridPartitionedSingleGetFuture.java:337)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedSingleGetFuture.map(GridPartitionedSingleGetFuture.java:204)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.GridPartitionedSingleGetFuture.init(GridPartitionedSingleGetFuture.java:196)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.getAsync0(GridDhtAtomicCache.java:1294)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.get(GridDhtAtomicCache.java:339)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:4650)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.get(GridCacheAdapter.java:1391)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.get(IgniteCacheProxy.java:907)
> INFO | jvm 1 | 2017/01/25 11:09:04 | ... 57 more
> INFO | jvm 1 | 2017/01/25 11:09:04 | Caused by:
> java.lang.ClassNotFoundException: sun.reflect.GeneratedMethodAccessor127
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at java.lang.Class.forName0(Native
> Method)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.lang.Class.forName(Class.java:274)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:266)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:318)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readHashMap(OptimizedObjectInputStream.java:634)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:283)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readArrayList(OptimizedObjectInputStream.java:611)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:280)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
> INFO | jvm 1 | 2017/01/25 11:09:04 | at
> org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:218)
> INFO | jvm 1 | 2017/01/25 11:09:04 | ... 111 more
> 
> 
> 
> --
> View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Error-Retrieving-data-from-IgniteCache-tp14024.html
> Sent from the Apache Ignite Developers mailing list archive at Nabble.com.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message