I have a server and it receives a JSON format message from client, I cast this message to a jackson ObjectNode instance and store it into Hazelcast. This ObjectNode object has a field called 'traceId'. Now I want to search for all object in Hazelcast have equivalent value of 'traceId', using this snippet of code:
EntryObject entry = new PredicateBuilder().getEntryObject();
Predicate predicate = entry.get('traceId').equal(traceId);
return this.cache.search(predicate);
But I got following error:
com.hazelcast.query.QueryException: java.lang.IllegalArgumentException: There is no suitable accessor for 'traceId' on class 'com.fasterxml.jackson.databind.node.ObjectNode'
If I understand right, ObjectNode class doesn't provide a getter method for field 'traceId'. Anyone knows how to resolve this?