neo4j-contrib / java-rest-binding

Java Bindings for the Neo4J Server REST API, providing an implementation of GraphDatabaseService
Other
120 stars 72 forks source link

java.lang.UnsupportedOperationException for org.neo4j.rest.graphdb.AbstractRemoteDatabase.getKernelData(AbstractRemoteDatabase.java:99) #27

Closed huiwenhan closed 11 years ago

huiwenhan commented 11 years ago
    GraphDatabaseService ds = new RestGraphDatabase("http://localhost:7474/db/data");
    Neo4jGraph graph = new Neo4jGraph(ds);

           Exception in thread "main" java.lang.UnsupportedOperationException
at org.neo4j.rest.graphdb.AbstractRemoteDatabase.getKernelData(AbstractRemoteDatabase.java:99)
at org.neo4j.rest.graphdb.RestGraphDatabase.getKernelData(RestGraphDatabase.java:33)
at com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.getInternalIndexKeys(Neo4jGraph.java:217)
at com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.loadKeyIndices(Neo4jGraph.java:168)
at com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph.<init>(Neo4jGraph.java:132)
at com.ibm.wsa.huiwen.wordnet.LoadWordNet.main(LoadWordNet.java:38)
jexp commented 11 years ago

If you want to run gremlin against a neo4j server please do so using the neo4j server plugin: http://docs.neo4j.org/chunked/milestone/gremlin-plugin.html

huiwenhan commented 11 years ago

I use it in blueprints