You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by daniel07 <ra...@gmail.com> on 2016/06/27 11:22:23 UTC

Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Hi,
I saw other questions related org.apache.ignite.IgniteCheckedException:
Failed to find class with given class loader for unmarshalling (make sure
same versions of all classes are available on all nodes or enable
peer-class-loading) exception,but not find my answer.

I have one remote server node,and from local client node I discover that
server node.
Now from client node I want to create cache-
p.s. <property name="peerClassLoadingEnabled" value="true"/> added for 2
configurations
my code is following 

private final CacheConfiguration<EntityIdLoader.EntityIdCacheKey,
List&lt;Integer>> cacheConfiguration =
SpringContextHolder.applicationContext
			.getBean("cacheConfigurationTemplate", CacheConfiguration.class);

ignite.createCache((CacheConfiguration<EntityIdLoader.EntityIdCacheKey,
List&lt;Integer>>)new
CacheConfiguration<>(cacheConfiguration).setName(CACHE_NAME)
						.setReadThrough(true)
						.setCacheLoaderFactory(new EntityIdLoaderFactory())
						.setExpiryPolicyFactory(EternalExpiryPolicy.factoryOf())))



public  class EntityIdLoaderFactory
		implements Factory<EntityIdLoader> {

	private static final long serialVersionUID = 7512841233166239706L;

	@Override
	public EntityIdLoader create() {
		return new EntityIdLoader(
				() ->
SpringContextHolder.applicationContext.getBean("persistenceService",
PersistenceService.class),
				() -> SpringContextHolder.applicationContext.getBean("kbEngine",
KbEngine.class));
	}

}




public class EntityIdLoader implements
CacheLoader<EntityIdLoader.EntityIdCacheKey, List&lt;Integer>> {

    @Nonnull
    private final Supplier<PersistenceService> persistenceService;
    @Nonnull
    private final Supplier<KbEngine> kbEngine;

    public EntityIdLoader(@Nonnull Supplier<PersistenceService>
persistenceService, @Nonnull Supplier<KbEngine> kbEngine) {
        this.kbEngine = Preconditions.checkNotNull(kbEngine);
        this.persistenceService =
Preconditions.checkNotNull(persistenceService);
    }

....................................
}


during  creating cache ,on remote node brings exception

class org.apache.ignite.IgniteCheckedException: Failed to find class with
given class loader for unmarshalling (make sure same versions of all classes
are available on all nodes or enable peer-class-loading):
java.net.URLClassLoader@738defde       at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108)
        at
org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.java:80)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.notifyDiscoveryListener(ServerImpl.java:4894)      
at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4750)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2121)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2208)07)
        at
org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
Caused by: java.lang.ClassNotFoundException:
com.synisys.idm.apollo.internal.service.caching.loaders.EntityIdLoaderFactory     
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425):354)
        at java.lang.Class.forName0(Native Method)ader.java:358)
        at
org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
        at
org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
        at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)12)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1771)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at
java.lang.reflect.Method.invoke(Method.java:606)DelegatingMethodAccessorImpl.java:43)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)7)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
        ... 9 more

Jun 27, 2016 11:18:37 AM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to unmarshal discovery custom message.
class org.apache.ignite.IgniteCheckedException: Failed to find class with
given class loader for unmarshalling (make sure same versions of all classes
are available on all nodes or enable peer-class-loading):
java.net.URLClassLoader@738defde
        at
org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78)
        at
org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.jaat
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4768)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2121)
        at
org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2208)07)
        at
org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
Caused by: java.lang.ClassNotFoundException:
com.synisys.idm.apollo.internal.service.caching.loaders.EntityIdLoaderFactory     
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425):354)
        at java.lang.Class.forName0(Native Method)ader.java:358)
        at
org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
        at
org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
        at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)0)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at
java.lang.reflect.Method.invoke(Method.java:606)DelegatingMethodAccessorImpl.java:43)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)7)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
        ... 8 more



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by daniel07 <ra...@gmail.com>.
Hi @bintisepaha,
Yes the the JDK versions are same.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5946.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by bintisepaha <bi...@tudor.com>.
Are our nodes running the same JDK version?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5938.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by daniel07 <ra...@gmail.com>.
Lot of thank you, dear Magda



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5951.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by Razmik Mkrtchyan <ra...@gmail.com>.
Thank you very mach!Everything works well.
On Jun 29, 2016 5:29 PM, "Denis Magda" <dm...@gridgain.com> wrote:

> Hi,
>
> How do you start a remote node? Do you use ignite.sh or ignite.bat script
> that is delivered in Apache Ignite release bundle?
>
> If so in the release bundle you will see “lib” folder where you can put
> you jars and ignite.sh/bat will add to to the class path automatically.
> Alternatively you can put the jars into a separate folder and point to it
> using USER_LIBS environment variable
>
> export USER_LIBS=/path/to/folder/containing/your/jars
>
> After that use ignite.sh/bat to start the node again.
>
> —
> Denis
>
> > On Jun 28, 2016, at 8:52 PM, daniel07 <ra...@gmail.com> wrote:
> >
> > Hi Magda,
> >
> > I have a question  related to this area.
> > Above I mentioned that when I manually replaced necessary classes on
> remote
> > node it worked fine.
> > Now I want to replace not the classes but the jar(s)(containing that
> > classes).?
> >
> > In documentation  is written the following
> >
> > "To deploy your JAR files into Ignite explicitly, you should copy them
> into
> > the libs folder on every Ignite cluster member. Ignite will automatically
> > load all the JAR files from the libs folder on startup."
> >
> > Now question.
> >
> > Either in local module(directory) or in remote(server) I dont have "libs"
> > folder.
> > Where must I add that folder? Shell I add in all nodes?
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5973.html
> > Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
>

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by Denis Magda <dm...@gridgain.com>.
Hi,

How do you start a remote node? Do you use ignite.sh or ignite.bat script that is delivered in Apache Ignite release bundle?

If so in the release bundle you will see “lib” folder where you can put you jars and ignite.sh/bat will add to to the class path automatically. Alternatively you can put the jars into a separate folder and point to it using USER_LIBS environment variable

export USER_LIBS=/path/to/folder/containing/your/jars

After that use ignite.sh/bat to start the node again.

—
Denis

> On Jun 28, 2016, at 8:52 PM, daniel07 <ra...@gmail.com> wrote:
> 
> Hi Magda,
> 
> I have a question  related to this area.
> Above I mentioned that when I manually replaced necessary classes on remote
> node it worked fine.
> Now I want to replace not the classes but the jar(s)(containing that
> classes).?
> 
> In documentation  is written the following
> 
> "To deploy your JAR files into Ignite explicitly, you should copy them into
> the libs folder on every Ignite cluster member. Ignite will automatically
> load all the JAR files from the libs folder on startup."
> 
> Now question.
> 
> Either in local module(directory) or in remote(server) I dont have "libs"
> folder.
> Where must I add that folder? Shell I add in all nodes? 
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5973.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by daniel07 <ra...@gmail.com>.
Hi Magda,

I have a question  related to this area.
Above I mentioned that when I manually replaced necessary classes on remote
node it worked fine.
Now I want to replace not the classes but the jar(s)(containing that
classes).?

In documentation  is written the following

"To deploy your JAR files into Ignite explicitly, you should copy them into
the libs folder on every Ignite cluster member. Ignite will automatically
load all the JAR files from the libs folder on startup."

Now question.

Either in local module(directory) or in remote(server) I dont have "libs"
folder.
Where must I add that folder? Shell I add in all nodes? 





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5973.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by Denis Magda <dm...@gridgain.com>.
Yes, you have to redeploy this class every time it’s changed.

Peer-class-loading feature is supported for Ignite Compute engine allowing to deploy/re-deploy compute tasks automatically.
https://apacheignite.readme.io/docs/zero-deployment <https://apacheignite.readme.io/docs/zero-deployment>

—
Denis

> On Jun 28, 2016, at 9:49 AM, daniel07 <ra...@gmail.com> wrote:
> 
> Hi dear Magda,
> 
> As far as I understood ,my loaderFactory(and generally  whatever (classes)
> is used in client node)must be  manually set also in the rest nodes?
> 
> I replaced my classes to remote node,and it started working.
> Isn't there another solution? At least to be done automatically.
> Every time after changing my classes I should redeploy on server nodes?
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5949.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by daniel07 <ra...@gmail.com>.
Hi dear Magda,

As far as I understood ,my loaderFactory(and generally  whatever (classes)
is used in client node)must be  manually set also in the rest nodes?

I replaced my classes to remote node,and it started working.
Isn't there another solution? At least to be done automatically.
Every time after changing my classes I should redeploy on server nodes?





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915p5949.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Creating cache with CacheLoaderFactory on client node brings exception org.apache.ignite.IgniteCheckedException: Failed to find class with given class loader for unmarshalling (make sure same versions of all classes are available on all nodes or enable peer-class-loading)

Posted by Denis Magda <dm...@gridgain.com>.
Hi,

You have to place the class of your loader factory in clients’ nodes classpath as well. The main reason for this is because when a transaction is started from a client node (that is quite a usual case) then the client first commits data to a storage and after that to in-memory.

Case with the storage is discussed in this blog post: http://gridgain.blogspot.ru/2014/09/two-phase-commit-for-in-memory-caches.html <http://gridgain.blogspot.ru/2014/09/two-phase-commit-for-in-memory-caches.html>

—
Denis

> On Jun 27, 2016, at 2:22 PM, daniel07 <ra...@gmail.com> wrote:
> 
> Hi,
> I saw other questions related org.apache.ignite.IgniteCheckedException:
> Failed to find class with given class loader for unmarshalling (make sure
> same versions of all classes are available on all nodes or enable
> peer-class-loading) exception,but not find my answer.
> 
> I have one remote server node,and from local client node I discover that
> server node.
> Now from client node I want to create cache-
> p.s. <property name="peerClassLoadingEnabled" value="true"/> added for 2
> configurations
> my code is following 
> 
> private final CacheConfiguration<EntityIdLoader.EntityIdCacheKey,
> List&lt;Integer>> cacheConfiguration =
> SpringContextHolder.applicationContext
> 			.getBean("cacheConfigurationTemplate", CacheConfiguration.class);
> 
> ignite.createCache((CacheConfiguration<EntityIdLoader.EntityIdCacheKey,
> List&lt;Integer>>)new
> CacheConfiguration<>(cacheConfiguration).setName(CACHE_NAME)
> 						.setReadThrough(true)
> 						.setCacheLoaderFactory(new EntityIdLoaderFactory())
> 						.setExpiryPolicyFactory(EternalExpiryPolicy.factoryOf())))
> 
> 
> 
> public  class EntityIdLoaderFactory
> 		implements Factory<EntityIdLoader> {
> 
> 	private static final long serialVersionUID = 7512841233166239706L;
> 
> 	@Override
> 	public EntityIdLoader create() {
> 		return new EntityIdLoader(
> 				() ->
> SpringContextHolder.applicationContext.getBean("persistenceService",
> PersistenceService.class),
> 				() -> SpringContextHolder.applicationContext.getBean("kbEngine",
> KbEngine.class));
> 	}
> 
> }
> 
> 
> 
> 
> public class EntityIdLoader implements
> CacheLoader<EntityIdLoader.EntityIdCacheKey, List&lt;Integer>> {
> 
>    @Nonnull
>    private final Supplier<PersistenceService> persistenceService;
>    @Nonnull
>    private final Supplier<KbEngine> kbEngine;
> 
>    public EntityIdLoader(@Nonnull Supplier<PersistenceService>
> persistenceService, @Nonnull Supplier<KbEngine> kbEngine) {
>        this.kbEngine = Preconditions.checkNotNull(kbEngine);
>        this.persistenceService =
> Preconditions.checkNotNull(persistenceService);
>    }
> 
> ....................................
> }
> 
> 
> during  creating cache ,on remote node brings exception
> 
> class org.apache.ignite.IgniteCheckedException: Failed to find class with
> given class loader for unmarshalling (make sure same versions of all classes
> are available on all nodes or enable peer-class-loading):
> java.net.URLClassLoader@738defde       at
> org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:108)
>        at
> org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.java:80)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.notifyDiscoveryListener(ServerImpl.java:4894)      
> at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4750)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2121)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2208)07)
>        at
> org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> Caused by: java.lang.ClassNotFoundException:
> com.synisys.idm.apollo.internal.service.caching.loaders.EntityIdLoaderFactory     
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:425):354)
>        at java.lang.Class.forName0(Native Method)ader.java:358)
>        at
> org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
>        at
> org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
>        at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)12)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1771)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
>        at
> java.lang.reflect.Method.invoke(Method.java:606)DelegatingMethodAccessorImpl.java:43)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)7)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
>        ... 9 more
> 
> Jun 27, 2016 11:18:37 AM org.apache.ignite.logger.java.JavaLogger error
> SEVERE: Failed to unmarshal discovery custom message.
> class org.apache.ignite.IgniteCheckedException: Failed to find class with
> given class loader for unmarshalling (make sure same versions of all classes
> are available on all nodes or enable peer-class-loading):
> java.net.URLClassLoader@738defde
>        at
> org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78)
>        at
> org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.jaat
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4768)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2121)
>        at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2208)07)
>        at
> org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> Caused by: java.lang.ClassNotFoundException:
> com.synisys.idm.apollo.internal.service.caching.loaders.EntityIdLoaderFactory     
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:425):354)
>        at java.lang.Class.forName0(Native Method)ader.java:358)
>        at
> org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
>        at
> org.apache.ignite.marshaller.jdk.JdkMarshallerObjectInputStream.resolveClass(JdkMarshallerObjectInputStream.java:54)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1612)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>        at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
>        at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
>        at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
>        at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)0)
>        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
>        at
> java.lang.reflect.Method.invoke(Method.java:606)DelegatingMethodAccessorImpl.java:43)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)7)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)90)
>        at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)a:1798)
>        at
> org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
>        ... 8 more
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Creating-cache-with-CacheLoaderFactory-on-client-node-brings-exception-org-apache-ignite-IgniteCheck-tp5915.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.