Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.0.final
-
None
-
Ubuntu 14.04, 1.5.0 build #319
Description
---------------------------------------------
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:
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)
---------------------------------------------
EXPECTED RESULT
---------------------------------------------
Example is passed without any exceptions
--------------------------------------------
ADDITIONAL INFO
--------------------------------------------
Reproducible for IgniteSetExample
Attachments
Issue Links
- Is contained by
-
IGNITE-950 OptimizedMarshaller: add ability to unmarshal a particular field
- Closed
- is related to
-
IGNITE-1721 Check all examples running with all types of marshallers
- Closed