Getting illegal access error due to unsupported GoogleGuava 21?


arunab...@...
 

My project is using Google Guava 21 (cannot change it) and is giving the following error:

java.lang.IllegalAccessError: tva.lang.IllegalAccessError: tried to access method com.google.common.collect.Iterators.emptyIterator()Lcom/google/common/collect/UnmodifiableIterator; from class org.janusgraph.graphdb.query.QueryProcessor

        at org.janusgraph.graphdb.query.QueryProcessor.iterator(QueryProcessor.java:66)

        at com.google.common.collect.Iterables$5.iterator(Unknown Source)

        at org.janusgraph.graphdb.tinkerpop.optimize.JanusGraphStep.lambda$new$0(JanusGraphStep.java:69)ried to access method com.google.common.collect.Iterators.emptyIterator()Lcom/google/common/collect/UnmodifiableIterator; from class org.janusgraph.graphdb.query.QueryProcessor

        at org.janusgraph.graphdb.query.QueryProcessor.iterator(QueryProcessor.java:66)

        at com.google.common.collect.Iterables$5.iterator(Unknown Source)

        at org.janusgraph.graphdb.tinkerpop.optimize.JanusGraphStep.lambda$new$0(JanusGraphStep.java:69)


This error is on a simple query --> if (g.V().hasLabel("l1").has("p1", "v1").has("p2", "v2").hasNext()) 


Is there a way to make it compatible with Guava 21? Apparently the method is package private in Guava21 and is public in Guava18.


I highly appreciate any help with this issue. Thanks!

--
Arunabh

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.