Getting illegal access error due to unsupported GoogleGuava 21?
Jerry He <jerr...@...>
Yup. this is the famous Guava (or infamous?) compatibility issue. JanusGraph server is a good solution. Or you will need to find a way to shade your version of Guava. Unfortunately, JanusGraph does not shade the Guava at the moment, which could be done as a TODO. Thanks, Jerry On Thursday, August 10, 2017 at 12:56:51 PM UTC-7, Arunabh Arnav wrote:
|
|
arunab...@...
Hello Robert, I have never used the JanusGraph server; as such I am not sure if we can write complex programs and save them for later use and integration - my code currently sits in between two code projects as dependecies. I am using a DynamoDB based JanusGraph implementation: https://github.com/awslabs/dynamodb-janusgraph-storage-backend. Is there another way using the JanusGraph java libraries? Thanks, Arunabh On Thursday, August 10, 2017 at 12:22:19 PM UTC-7, Robert Dale wrote:
|
|
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:
|
|
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! |
|