graphaware / neo4j-nlp

NLP Capabilities in Neo4j
https://hume.graphaware.com/
335 stars 82 forks source link

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `ga.nlp.processor.addPipeline`: Caused by: java.lang.NullPointerException #129

Closed bogasantosh closed 3 years ago

bogasantosh commented 5 years ago

I added all the necessary plugins into the plugins directory and given the respective environment variables. Yet i get the same error for almost all the procedures within the plugin. Note: Using it on directory and all the volumes are mounted except logs directory My Plugins directory--- apoc-3.4.0.3-all.jar graphaware-nlp-3.4.9.52.15.jar graphaware-server-enterprise-all-3.4.9.52.jar nlp-stanfordnlp-3.4.9.52.15.jar stanford-english-corenlp-2018-10-05-models.jar

Error i get: Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure ga.nlp.processor.addPipeline: Caused by: java.lang.NullPointerException

When i check the docker logs i found this - [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime disabled.

ikwattro commented 5 years ago

Please post your configuration

bogasantosh commented 5 years ago

@ikwattro > screenshot from 2018-11-05 16-59-23 Please post your configuration

That issue has been resolved. After resolving that issue i encountered a new issue wherein I am unable to use both APOC and NLP plugins together. Neo4j is starting and I am able to use NLP Procedures but unable to use APOC procedures and it is throwing me an error like procedure not found. Please help me out. I working with the latest version i.e 3.4 Note: I am using neo4j on docker. docker-compose.yml file:

neo4j: image: neo4j:3.4 ports:

bogasantosh commented 5 years ago

@ikwattro Sir please reply sir, I am really not able to resolve this issue.

fnfbraga commented 5 years ago

I also have this issue.

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure ga.nlp.annotate: Caused by: org.neo4j.graphdb.DatabaseShutdownException: This database is shutdown.

image

ikwattro commented 5 years ago

@bogasantosh For your issue, please try with this neo4j-nlp jar, this was a fixed issue already : https://www.dropbox.com/s/lx1ooh95ik91u07/graphaware-nlp-3.4.9.52.16-SNAPSHOT.jar?dl=0

@fnfbraga your issue is different, I assume you have some logs that show the database is not started correctly ( maybe due to some memory issues)

fnfbraga commented 5 years ago

@ikwattro here's my log file, looks like the error is:

2018-11-21 06:04:42.792+0000 ERROR Could not deserialize metadata for module ID NLP

Active database: graph.db Directories in use: home: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9 config: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/conf logs: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/logs plugins: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/plugins import: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/import data: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/data certificates: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/certificates run: /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/run Starting Neo4j. WARNING: Max 8192 open files allowed, minimum of 40000 recommended. See the Neo4j manual. 2018-11-21 06:04:05.889+0000 INFO ======== Neo4j 3.4.9 ======== 2018-11-21 06:04:05.947+0000 INFO Starting... 2018-11-21 06:04:07.629+0000 INFO Initiating metrics... 2018-11-21 06:04:08.942+0000 INFO [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime enabled, bootstrapping... 2018-11-21 06:04:08.992+0000 INFO [c.g.r.b.RuntimeKernelExtension] Bootstrapping module with order 1, ID NLP, using com.graphaware.nlp.module.NLPBootstrapper 2018-11-21 06:04:09.109+0000 INFO Registering module NLP with GraphAware Runtime. 2018-11-21 06:04:09.114+0000 INFO [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime bootstrapped, starting the Runtime... 2018-11-21 06:04:09.118+0000 INFO Sending metrics to CSV file at /home/fnb/.config/Neo4j Desktop/Application/neo4jDatabases/database-bf73c607-faa0-4f5e-9200-caf025ee614c/installation-3.4.9/metrics 2018-11-21 06:04:09.497+0000 INFO Bolt enabled on 127.0.0.1:7687. 2018-11-21 06:04:12.137+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.all) 2018-11-21 06:04:12.138+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.idle) 2018-11-21 06:04:42.314+0000 INFO Starting GraphAware... 2018-11-21 06:04:42.321+0000 INFO Loading module metadata... 2018-11-21 06:04:42.322+0000 INFO Loading metadata for module NLP 2018-11-21 06:04:42.792+0000 ERROR Could not deserialize metadata for module ID NLP 2018-11-21 06:04:42.792+0000 INFO Module NLP seems to have corrupted metadata. 2018-11-21 06:04:42.793+0000 INFO Module NLP seems to have corrupted metadata, will try to re-initialize... 2018-11-21 06:04:42.794+0000 INFO InitializeUntil set to 9223372036854775807 and it is 1542780282794. Will re-initialize. 2018-11-21 06:04:42.794+0000 INFO Initializing Community NLP Module 2018-11-21 06:04:43.238+0000 INFO Loading extension : com.graphaware.nlp.processor.stanford.StanfordTextProcessor 2018-11-21 06:04:43.254+0000 INFO Loading extension : com.graphaware.nlp.vector.QueryBasedVectorComputation 2018-11-21 06:04:43.258+0000 INFO Loading extension : com.graphaware.nlp.ml.word2vec.Word2VecProcessor 2018-11-21 06:04:43.273+0000 INFO Loading extension : com.graphaware.nlp.parser.poi.WordParser 2018-11-21 06:04:43.275+0000 INFO Loading extension : com.graphaware.nlp.parser.vtt.VTTParser 2018-11-21 06:04:43.275+0000 INFO Loading extension : com.graphaware.nlp.parser.pdf.TikaPDFParser 2018-11-21 06:04:43.280+0000 INFO Loading extension : com.graphaware.nlp.ml.pagerank.PageRankProcessor 2018-11-21 06:04:43.281+0000 INFO Loading extension : com.graphaware.nlp.parser.poi.PowerpointParser 2018-11-21 06:04:43.282+0000 INFO Loading extension : com.graphaware.nlp.ml.similarity.SimilarityProcessor 2018-11-21 06:04:43.283+0000 INFO Loading extension : com.graphaware.nlp.ml.textrank.TextRankProcessor 2018-11-21 06:04:43.285+0000 INFO Inspect directories and LOAD 2018-11-21 06:04:43.286+0000 WARN No files in import/word2vecSource/ for loading word2Vec 2018-11-21 06:04:50.938+0000 INFO Started. customStopWords_0c56ca7d-24d4-4cce-8d4a-788b2794d2df 2018-11-21 06:04:51.001+0000 INFO Creating fresh metadata for module NLP. 2018-11-21 06:04:51.001+0000 INFO Module NLP has not changed configuration since last run, already initialized. 2018-11-21 06:04:51.040+0000 INFO Module metadata loaded. 2018-11-21 06:04:51.040+0000 INFO Starting transaction-driven modules... 2018-11-21 06:04:51.041+0000 INFO Transaction-driven modules started. 2018-11-21 06:04:51.041+0000 INFO There are no timer-driven runtime modules. Not scheduling any tasks. 2018-11-21 06:04:51.041+0000 INFO GraphAware started. 2018-11-21 06:04:51.041+0000 INFO [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime automatically started. 2018-11-21 06:04:51.144+0000 INFO Mounted REST API at: /db/manage 2018-11-21 06:04:51.171+0000 INFO [c.g.s.f.b.GraphAwareServerBootstrapper] started 2018-11-21 06:04:51.174+0000 INFO Mounted unmanaged extension [com.graphaware.server] at [/graphaware] 2018-11-21 06:04:51.561+0000 INFO Server thread metrics has been registered successfully 2018-11-21 06:04:52.103+0000 INFO Google Analytics enabled 2018-11-21 06:04:52.188+0000 INFO Mounting GraphAware Framework at /graphaware 2018-11-21 06:04:52.208+0000 INFO Will try to scan the following packages: {com..graphaware.,org..graphaware.,net..graphaware.} 2018-11-21 06:04:55.895+0000 INFO Remote interface available at http://localhost:7474/

fnfbraga commented 5 years ago

I was using neo4j-desktop, installed the local Community Server with Oracle's Java 8, updated the .jar to the community edition and all is working smoothly...

MissOrnela commented 5 years ago

@bogasantosh i have the same issue.How did you fix it please