title: Apache Ignite fail to serialise lambda from remote node
body: <p>I have this wired error when I use the cache query scan from a client node</p>
  
  <pre><code>        List&lt;Account&gt; data = accounts.query(new ScanQuery&lt;UUID, Account&gt;()).getAll().stream().map(uuidAccountEntry -&gt; uuidAccountEntry.getValue()).collect(Collectors.toList());
  </code></pre>
  
  <p>but if I try to return just the objects (not the Entry) with the filter I get an exception</p>
  
  <pre><code>        List&lt;Account&gt; data = accounts.query(new ScanQuery&lt;UUID, Account&gt;(), Cache.Entry::getValue).getAll();
  </code></pre>
  
  <p>NOTE* running in docker</p>
  
  <blockquote>
    <p>ignite_1     | 09:54:05.663 [query-#58] ERROR o.a.i.i.b.BinaryContext
    - Failed to deserialize object [typeName=java.lang.invoke.SerializedLambda] ignite_1     |
    org.apache.ignite.binary.BinaryObjectException: Failed to read field
    [name=capturingClass] ignite_1     |  at
    org.apache.ignite.internal.binary.BinaryFieldAccessor.read(BinaryFieldAccessor.java:192)
    ignite_1     |    at
    org.apache.ignite.internal.binary.BinaryClassDescriptor.read(BinaryClassDescriptor.java:875)
    ignite_1     |    at
    org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize0(BinaryReaderExImpl.java:1764)
    ignite_1     |    at
    org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1716)
    ignite_1     |    at
    org.apache.ignite.internal.binary.GridBinaryMarshaller.deserialize(GridBinaryMarshaller.java:313)
    ignite_1     |    at
    org.apache.ignite.internal.binary.BinaryMarshaller.unmarshal0(BinaryMarshaller.java:102)
    ignite_1     |    at
    org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.unmarshal(AbstractNodeNameAwareMarshaller.java:82)
    ignite_1     |    at
    org.apache.ignite.internal.util.IgniteUtils.unmarshal(IgniteUtils.java:10140)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.query.GridCacheQueryRequest.finishUnmarshal(GridCacheQueryRequest.java:344)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager.unmarshall(GridCacheIoManager.java:1530)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:576)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:380)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:306)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$100(GridCacheIoManager.java:101)
    ignite_1     |    at
    org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:295)
    ignite_1     |    at
    org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1569)
    ignite_1     |    at
    org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1197)
    ignite_1     |    at
    org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:127)
    ignite_1     |    at
    org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1093)
    ignite_1     |    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    ignite_1     |    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ignite_1     |    at java.lang.Thread.run(Thread.java:748)</p>
  </blockquote>
  
  <p>All other queries and put/get/... work perfect and no issues with serializing the Account object.</p>
  
  <p>I tried many cache configurations but none seemed to make a difference.</p>
  
  <p>Anyone had this issue or know how to resolve this?
  Thanks in advance.</p>