ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaliy Shopov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-1001) OptimizedObjectInputStream can not deserialize Typesafe's Config object
Date Fri, 17 Jul 2015 16:37:05 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631550#comment-14631550
] 

Vitaliy Shopov commented on IGNITE-1001:
----------------------------------------

Confirm this issue.

1. Create simple cache <String, Props>
2. Try to put Props object
3. Got similar exception.
4. Attempt to read beyond the end of the stream - is a key...

> 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
>         Attachments: Main.java
>
>
> 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:
> 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



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

Mime
View raw message