Hello, it looks like you should enable Peer Class Loading:
https://ignite.apache.org/docs/latest/code-deployment/peer-class-loading

--------------
Ilya Kazakov

сб, 16 окт. 2021 г. в 02:47, Prasad Kommoju <pkomm...@futurewei.com>:

>
>
> Hi
>
>
>
> I am having trouble getting ScanQuery to work with a filter from thin
> client.
>
>
>
> I have attached a working minimal reproduction program (IntelliJ project
> zip export) , the ignite config file and the  part of the ignite logfile
> after running the query. The code is fashioned along the example in the
> documentation.
>
>
>
> Here is the querying part of the code:
>
>
>
> …
>
> IgniteBiPredicate<String, Person> filter =
>         (key, p) -> p.getName().equals(srchName);
>
> try (QueryCursor<Cache.Entry<String, Person>> scnCursor =
>              personCache.query(new ScanQuery<>(filter))) {
>     scnCursor.forEach(
>             entry -> System.*out*.println(entry.getKey() +
>                     " " + entry.getValue()));
> } catch (Exception e) {
>     System.*out*.println("Scan query failed " + e.getMessage());
> }
>
>
>
> …
>
>
>
> Any help in pointing out the problem will be greatly appreciated.
>
>
>
>
>
> ---------------------
>
> Regards,
>
> Prasad Kommoju
>
>

Reply via email to