ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago Souza (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-1001) OptimizedObjectInputStream can not deserialize Typesafe's Config object
Date Mon, 08 Jun 2015 15:02:01 GMT
Thiago Souza created IGNITE-1001:
------------------------------------

             Summary: OptimizedObjectInputStream can not deserialize Typesafe's Config object
                 Key: IGNITE-1001
                 URL: https://issues.apache.org/jira/browse/IGNITE-1001
             Project: Ignite
          Issue Type: Bug
          Components: general
         Environment: Mac OS X 10.10.3 x86_64

Java(TM) SE Runtime Environment 1.8.0_20-b26 Oracle Corporation Java HotSpot(TM) 64-Bit Server
VM 25.20-b23
            Reporter: Thiago Souza


It seems that OptimizedObjectInputStream is incompatible with Typesafe's Config serialization.

I got the following exception trying to create an Ignite Service with a reference to akka's
Props object:

{{code}}
SEVERE: Error when executing service: null
class org.apache.ignite.IgniteException: Failed to unmarshall object.
	at org.apache.ignite.internal.processors.cache.CacheObjectImpl.value(CacheObjectImpl.java:78)
	at org.apache.ignite.internal.processors.cache.GridCacheUtils.value(GridCacheUtils.java:1753)
	at org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryEvent.getValue(CacheContinuousQueryEvent.java:68)
	at org.apache.ignite.internal.processors.service.GridServiceProcessor$DeploymentListener$1.run0(GridServiceProcessor.java:918)
	at org.apache.ignite.internal.processors.service.GridServiceProcessor$BusyRunnable.run(GridServiceProcessor.java:1248)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to deserialize object with
given class loader: null
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:239)
	at org.apache.ignite.internal.processors.cacheobject.IgniteCacheObjectProcessorImpl.unmarshal(IgniteCacheObjectProcessorImpl.java:89)
	at org.apache.ignite.internal.processors.cache.CacheObjectImpl.value(CacheObjectImpl.java:70)
	... 9 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:503)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:236)
	... 11 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:500)
	... 35 more
Caused by: java.io.EOFException: Attempt to read beyond the end of the stream [pos=1136, more=1024,
max=299]
	at org.apache.ignite.internal.util.io.GridUnsafeDataInput.offset(GridUnsafeDataInput.java:184)
	at org.apache.ignite.internal.util.io.GridUnsafeDataInput.readFully(GridUnsafeDataInput.java:327)
	at org.apache.ignite.internal.util.io.GridUnsafeDataInput.readUTFBody(GridUnsafeDataInput.java:505)
	at org.apache.ignite.internal.util.io.GridUnsafeDataInput.readUTF(GridUnsafeDataInput.java:475)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readUTF(OptimizedObjectInputStream.java:896)
	at com.typesafe.config.impl.SerializedConfigValue.readOrigin(SerializedConfigValue.java:236)
	at com.typesafe.config.impl.SerializedConfigValue.readValue(SerializedConfigValue.java:409)
	at com.typesafe.config.impl.SerializedConfigValue.readExternal(SerializedConfigValue.java:470)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:451)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:746)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:419)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:507)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:751)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:252)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
	at scala.collection.immutable.List$SerializationProxy.readObject(List.scala:477)
	... 40 more
{{code}}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message