Open mdchr opened 6 years ago
Can someone help me?
This plugin was built for an old version of Neo4j (2.1) and Tinkerpop (2). No one has been using it in a long time.
You either have to use that old version of Neo4j
There is a new version TP3 that has a Gremlin Server backed by a newer gremlin-neo4j implementation as documented in the Tinkerpop manual.
to @jexp: Thank you very much! I have changed to Neo4j(2.1.5) and imported some .jar manually to solve this problem.
I installed with the command mvn clean package -Dlicense.skip=true as #41 gsingh93 said although build success, there had some errors:
[ERROR] Error fetching link: http://components.neo4j.org/neo4j-server/2.1.0-M01/apidocs/package-list. Ignored it. [ERROR] Error fetching link: http://blueprints.tinkerpop.com/blueprints-neo4j2-graph/apidocs/package-list. Ignored it. [ERROR] Error fetching link: http://code.google.com/p/google-gson/apidocs/package-list. Ignored it. [ WARN] Cookie rejected: "$Version=0; __cfduid=de66cb1ed354084f0bb00e49b85ac75c11528938953; $Path=/; $Domain=.junit.org". Illegal domain attribute ".junit.org". Domain of origin: "junit.org" [ERROR] Error fetching link: http://junit.org/apidocs/package-list. Ignored it. [ERROR] Error fetching link: http://www.mockito.org/apidocs/package-list. Ignored it. [ERROR] Error fetching link: http://code.google.com/p/json-simple/apidocs/package-list. Ignored it. [ERROR] Error fetching link: http://gremlin.tinkerpop.com/gremlin-groovy/apidocs/package-list. Ignored it. [INFO] Building jar: /usr/local/chucky/gremlin/target/neo4j-gremlin-plugin-2.1-SNAPSHOT-javadoc.jar [INFO] [INFO] --- maven-jar-plugin:2.3.2:test-jar (attach-test-jar) @ neo4j-gremlin-plugin --- [INFO] Building jar: /usr/local/chucky/gremlin/target/neo4j-gremlin-plugin-2.1-SNAPSHOT-tests.jar [INFO] [INFO] --- docs-maven-plugin:5:assemble (default) @ neo4j-gremlin-plugin --- [INFO] Filtering is: off [INFO] No directories configured, using defaults. [INFO] Creating docs archive. [INFO] Building jar: /usr/local/chucky/gremlin/target/neo4j-gremlin-plugin-2.1-SNAPSHOT-docs.jar [INFO] already added, skipping [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:23 min [INFO] Finished at: 2018-06-14T09:16:11+08:00 [INFO] Final Memory: 39M/214M [INFO] ------------------------------------------------------------------------
AND when I turn to use python-joern res = j.runGremlinQuery('getFunctionsByName("main")') there is error:
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/joern-0.1-py2.7.egg/joern/all.py", line 44, in runGremlinQuery
return self.gremlin.execute(finalQuery)
File "/usr/local/lib/python2.7/dist-packages/py2neo/ext/gremlin/init.py", line 36, in execute
response = self.resources["execute_script"].post({"script": script})
File "/usr/local/lib/python2.7/dist-packages/py2neo/core.py", line 288, in post
raise_from(self.error_class(message, **content), error)
File "/usr/local/lib/python2.7/dist-packages/py2neo/util.py", line 215, in raise_from
raise exception
py2neo.error.NoClassDefFoundError: javax/transaction/SystemException
I think this error related to the above mvn errors.