You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by endianignite <en...@gmail.com> on 2016/03/24 11:03:32 UTC
Serialization exception when migrating from 1.3 to 1.5
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.
Re: Serialization exception when migrating from 1.3 to 1.5
Posted by endianignite <en...@gmail.com>.
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.
--
View this message in context: http://apache-ignite-developers.2346864.n4.nabble.com/Serialization-exception-when-migrating-from-1-3-to-1-5-tp8049p8074.html
Sent from the Apache Ignite Developers mailing list archive at Nabble.com.
Re: Serialization exception when migrating from 1.3 to 1.5
Posted by Denis Magda <dm...@gridgain.com>.
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.