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


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:
Using the JanusGraph (Gremlin) Server will help decouple your dependencies.




Robert Dale

On Thu, Aug 10, 2017 at 2:48 PM, <aru...@...> 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-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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