Serialization exception when migrating from 1.3 to 1.5

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Serialization exception when migrating from 1.3 to 1.5

endianignite
This post was updated on .
I am attempting to migrate from 1.3.0-incubating to 1.5.0.final. However, when I start my cache I get the following exception
Exception in thread "main" java.lang.IllegalArgumentException: This method should be accessed under org.apache.ignite.thread.IgniteThread
	at org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1252)
	at org.apache.ignite.internal.IgniteKernal.readResolve(IgniteKernal.java:3234)
	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:497)
	at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1104)
I can see that this is related to a change by Semen Boikov on Dec 9 2015 (change id 0adee3a). I have tried to understand what this change means, and how I might need to change my code, but without success.
Reply | Threaded
Open this post in threaded view
|

Re: Serialization exception when migrating from 1.3 to 1.5

Denis Magda
Please provide us with a full log. From this log snippet it's not clear
which part of the code triggered the exception.

--
Denis

On 3/24/2016 1:03 PM, endianignite wrote:

> I am attempting to migrate from 1.3.0-incubating to 1.5.0.final.  However,
> when I start my cache I get the following exception
> Exception in thread "main" java.lang.IllegalArgumentException: This method
> should be accessed under org.apache.ignite.thread.IgniteThread at
> org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1252) at
> org.apache.ignite.internal.IgniteKernal.readResolve(IgniteKernal.java:3234)
> 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:497) at
> java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1104)
> I can see that this is related to a change by Semen Boikov on Dec 9 2015
> (change id 0adee3a).  I have tried to understand what this change means, and
> how I might need to change my code, but without success.
>
>
>
> --
> View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Serialization-exception-when-migrating-from-1-3-to-1-5-tp8049.html
> Sent from the Apache Ignite Developers mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Serialization exception when migrating from 1.3 to 1.5

endianignite
There turned out to be a stray Ignite instance referenced in a field in the CacheStore implementation.  I've refactored to remove that and now 1.5 is working fine.