ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasilisa Sidorova (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-1700) IgniteQueueExample fails with "org.apache.ignite.internal.portable.PortableObjectImpl incompatible with org.apache.ignite.internal.processors.datastructures.GridCacheQueueHeader" exception when it's running with portableMarshaller
Date Wed, 11 Nov 2015 14:58:11 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-1700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vasilisa  Sidorova reassigned IGNITE-1700:
------------------------------------------

    Assignee: Vasilisa  Sidorova  (was: Alexey Goncharuk)

Ok. I'll verify

> IgniteQueueExample fails with "org.apache.ignite.internal.portable.PortableObjectImpl
incompatible with org.apache.ignite.internal.processors.datastructures.GridCacheQueueHeader"
exception when it's running with portableMarshaller
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-1700
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1700
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 1.5
>         Environment: Ubuntu 14.04, community 1.5.0 build #319
>            Reporter: Vasilisa  Sidorova
>            Assignee: Vasilisa  Sidorova
>             Fix For: 1.5
>
>
> ---------------------------------------------
> DESCRIPTION
> ---------------------------------------------
> When default optimizedMarshaller is changed into portableMarshaller in example-ignite.xml
then IgniteQueueExample is failed with this config 
> ---------------------------------------------
> STEPS FOR REPRODUCE
> ---------------------------------------------
> 1. Build examples project in IDE
> 2.In the example-ignite.xml change property from:
> <property name="marshaller">
>             <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller">
-->
>                 <!-- Set to false to allow non-serializable objects in examples, default
is true. -->
>                 <!-- <property name="requireSerializable" value="false"/>
>             </bean>
>         </property>
> to
> <property name="marshaller">
>             <bean class=" org.apache.ignite.internal.portable.api.PortableMarshaller"/>
>         </property>
> 3. Run ExampleNodeStartup
> 4. Run IgniteQueueExample
> ---------------------------------------------
> ACTUAL RESULT
> ---------------------------------------------
> Example is failed with exception:
> {noformat}
> Exception in thread "main" javax.cache.processor.EntryProcessorException: java.lang.ClassCastException:
org.apache.ignite.internal.portable.PortableObjectImpl incompatible with org.apache.ignite.internal.processors.datastructures.GridCacheQueueHeader
> 	at org.apache.ignite.internal.processors.cache.CacheInvokeResult.get(CacheInvokeResult.java:88)
> 	at org.apache.ignite.internal.processors.datastructures.GridAtomicCacheQueueImpl.transformHeader(GridAtomicCacheQueueImpl.java:246)
> 	at org.apache.ignite.internal.processors.datastructures.GridAtomicCacheQueueImpl.offer(GridAtomicCacheQueueImpl.java:52)
> 	at org.apache.ignite.internal.processors.datastructures.GridCacheQueueAdapter.put(GridCacheQueueAdapter.java:226)
> 	at org.apache.ignite.internal.processors.datastructures.GridCacheQueueProxy.put(GridCacheQueueProxy.java:598)
> 	at org.apache.ignite.examples.datastructures.IgniteQueueExample.initializeQueue(IgniteQueueExample.java:93)
> 	at org.apache.ignite.examples.datastructures.IgniteQueueExample.main(IgniteQueueExample.java:62)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
> 	at java.lang.reflect.Method.invoke(Method.java:620)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
> Caused by: java.lang.ClassCastException: org.apache.ignite.internal.portable.PortableObjectImpl
incompatible with org.apache.ignite.internal.processors.datastructures.GridCacheQueueHeader
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:86)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:58)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:542)
> 	at org.apache.ignite.internal.portable.PortableClassDescriptor.newInstance(PortableClassDescriptor.java:686)
> 	at org.apache.ignite.internal.portable.PortableClassDescriptor.read(PortableClassDescriptor.java:609)
> 	at org.apache.ignite.internal.portable.PortableReaderExImpl.deserialize(PortableReaderExImpl.java:2160)
> 	at org.apache.ignite.internal.portable.GridPortableMarshaller.deserialize(GridPortableMarshaller.java:274)
> 	at org.apache.ignite.internal.portable.api.PortableMarshaller.unmarshal(PortableMarshaller.java:328)
> 	at org.apache.ignite.internal.processors.cache.CacheInvokeDirectResult.finishUnmarshal(CacheInvokeDirectResult.java:123)
> 	at org.apache.ignite.internal.processors.cache.GridCacheReturn.finishUnmarshal(GridCacheReturn.java:321)
> 	at org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateResponse.finishUnmarshal(GridNearAtomicUpdateResponse.java:427)
> 	at org.apache.ignite.internal.processors.cache.GridCacheIoManager.unmarshall(GridCacheIoManager.java:961)
> 	at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:264)
> 	at org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:193)
> 	at org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$000(GridCacheIoManager.java:75)
> 	at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:155)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:811)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:106)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:774)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627)
> 	at java.lang.Thread.run(Thread.java:809)
> {noformat}
> ---------------------------------------------
> EXPECTED RESULT
> ---------------------------------------------
> Example is passed without any exceptions
> --------------------------------------------
> ADDITIONAL INFO
> --------------------------------------------
> Reproducible for IgniteSetExample



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

Mime
View raw message