Re: Getting illegal access error due to unsupported GoogleGuava 21?


Robert Dale <rob...@...>
 

Using the JanusGraph (Gremlin) Server will help decouple your dependencies.




Robert Dale

On Thu, Aug 10, 2017 at 2:48 PM, <arunab...@...> wrote:
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

--
You received this message because you are subscribed to the Google Groups "JanusGraph users list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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