Hello!

I guess that SimplePojo class is loaded in a different classloader which is
not Ignite's classloader. You can start IgniteConfiguration with
.setClassLoader(SimplePojo.class.getClassLoader());

Regards.
-- 
Ilya Kasnacheev


чт, 17 июн. 2021 г. в 16:48, ict.management.trexon <
ict.management.tre...@gmail.com>:

> NO, POJO only client side
> YES, peerClassLoadingEnabled
>
> I think it has something to do with the classloader running the scan query
> .....
> if in the signature of the "apply" method I pass the definition of the POJO
> class, it gives a ClassNotFoundException error;
> On the other hand, in the body of the "apply" method, if I pass the
> definition of the class, it works.
>
> THIS WORK!
> @Override
> public boolean apply(Integer e1, BinaryObject e2) {
>                 SimplePojo sp =
> e2.deserialize(SimplePojo.class.getClassLoader());
>                 return sp.getId().equals(idToFind);
>         }
>
> THIS NOT WORK!
> @Override
> public boolean apply(Integer e1, SimplePojo e2) {
>                 return sp.getId().equals(idToFind);
>         }
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to