You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by wt <wa...@gmail.com> on 2018/08/31 15:31:40 UTC

How can i make my custom plugin serializable - Failed to serialize object: plugins.CustomSecurityProcessor

How can i make my custom plugin serializable?


Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to
authenticate local node (will shutdown local node).
	at
org.apache.ignite.spi.discovery.tcp.ServerImpl.localAuthentication(ServerImpl.java:1008)
	at
org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:879)
	at
org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:373)
	at
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1948)
	at
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
	... 10 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
serialize object: plugins.CustomSecurityProcessor$1@350b3a17
	at
org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:103)
	at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:70)
	at
org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:117)
	at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:58)
	at
org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:10044)
	at
org.apache.ignite.spi.discovery.tcp.ServerImpl.localAuthentication(ServerImpl.java:1002)
	... 14 more
Caused by: java.io.NotSerializableException:
plugins.CustomSecurityProcessor$1
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
	at
org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:98)
	... 19 more



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: How can i make my custom plugin serializable - Failed to serialize object: plugins.CustomSecurityProcessor

Posted by wt <wa...@gmail.com>.
thanks, found the anonymous class and created new ones with serializable



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: How can i make my custom plugin serializable - Failed to serialize object: plugins.CustomSecurityProcessor

Posted by Valentin Kulichenko <va...@gmail.com>.
There is a non-serializable anonymous class that you have declared within
the plugin. You should check what is actually serialized there and whether
it's supposed to be serialized or not.

-Val

On Fri, Aug 31, 2018 at 10:27 AM wt <wa...@gmail.com> wrote:

> How can i make my custom plugin serializable?
>
>
> Caused by: class org.apache.ignite.spi.IgniteSpiException: Failed to
> authenticate local node (will shutdown local node).
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl.localAuthentication(ServerImpl.java:1008)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:879)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:373)
>         at
>
> org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:1948)
>         at
>
> org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:297)
>         ... 10 more
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
> serialize object: plugins.CustomSecurityProcessor$1@350b3a17
>         at
>
> org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:103)
>         at
>
> org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:70)
>         at
>
> org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:117)
>         at
>
> org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.marshal(AbstractNodeNameAwareMarshaller.java:58)
>         at
> org.apache.ignite.internal.util.IgniteUtils.marshal(IgniteUtils.java:10044)
>         at
>
> org.apache.ignite.spi.discovery.tcp.ServerImpl.localAuthentication(ServerImpl.java:1002)
>         ... 14 more
> Caused by: java.io.NotSerializableException:
> plugins.CustomSecurityProcessor$1
>         at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
>         at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
>         at
>
> org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal0(JdkMarshaller.java:98)
>         ... 19 more
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
>