Vishnu, you can't run the 1.9.6 Gremlin plugin against Neo4j 2.0. Michael has been updating both Blueprints and the plugin to Neo4j 2.0, but there is no Blueprints release with that yet.
In order to do this, please build Blueprints 2.5-SNAPSHOT from https://github.com/tinkerpop/blueprints/commits/master, and depend on that when building https://github.com/neo4j-contrib/gremlin-plugin from GIT. /peter G: neubauer.peter S: peter.neubauer P: +46 704 106975 L: http://www.linkedin.com/in/neubauer T: @peterneubauer Neo4j 2.0.0 - (graphs)-[:FOR]->(everyone)<http://blog.neo4j.org/2013/12/neo4j-20-ga-graphs-for-everyone.html> Kids LAN creative party in Malmö - Kidscraft ICE <http://kidscraft.se> On Mon, Feb 3, 2014 at 2:32 PM, zazen <[email protected]> wrote: > Hi > I am using gremlin-plugin(1.9.6 snapshot). And it's been added > properly. > curl localhost:7474/db/data/ > { > "extensions" : { > "GremlinPlugin" : { > "execute_script" : " > http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script" > } > }, > "node" : "http://localhost:7474/db/data/node", > "node_index" : "http://localhost:7474/db/data/index/node", > "relationship_index" : "http://localhost:7474/db/data/index/relationship > ", > "extensions_info" : "http://localhost:7474/db/data/ext", > "relationship_types" : "http://localhost:7474/db/data/relationship/types > ", > "batch" : "http://localhost:7474/db/data/batch", > "cypher" : "http://localhost:7474/db/data/cypher", > "transaction" : "http://localhost:7474/db/data/transaction", > "neo4j_version" : "2.0.0" > } > > When I run this > curl -d "script=g.v(1)" > http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script > > { > "message" : "javax.script.ScriptException: > org.neo4j.graphdb.NotInTransactionException", > "exception" : "BadInputException", > "fullname" : "org.neo4j.server.rest.repr.BadInputException", > "stacktrace" : [ > "org.neo4j.server.plugin.gremlin.GremlinPlugin.executeScript(GremlinPlugin.java:84)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.plugins.PluginMethod.invoke(PluginMethod.java:61)", > "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:168)", > "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:312)", > "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension(ExtensionService.java:134)", > "java.lang.reflect.Method.invoke(Method.java:606)", > "org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:132)", > "org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112)", > "java.lang.Thread.run(Thread.java:744)" ] > } > > I am using neo4j version 2.0.0. Need some help. > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
