ravi-anthapu / Neo4JQueryProcessor

Apache License 2.0
2 stars 0 forks source link

Getting Error - java.lang.NullPointerException: Cannot read the array length because "<local15>" is null #1

Open prasharm39 opened 2 months ago

prasharm39 commented 2 months ago

I'm trying to analyze Neo4J logs using jar file through cmd, so with the help of jar file running through cmd, logs files generates query_db files which we can analyze in db visualizer. But while running this command - "java -jar ..\Neo4JQueryProcessor-1.4.1.jar config.yaml" getting this error - java.lang.NullPointerException at com.neo4j.query.QueryAnalyzer.process(QueryAnalyzer.java:65) at com.neo4j.query.QueryAnalyzer.main(QueryAnalyzer.java:128)

prasharm39 commented 2 months ago

I'm using "Neo4JQueryProcessor-1.4.1" version of jar file, we are Neo4J 4 version.

ravi-anthapu commented 1 month ago

@prasharm39 Can you please share your config.yaml file? Also, can you please try with latest jar? I have fixed few issues with parsing the log file.

prasharm39 commented 1 month ago

Hi @ravi-anthapu , Now I'm getting below error: Ignoring file as does not match the filter : config.yaml

image
prasharm39 commented 1 month ago

Here is the config file details: logType: formatted storeType: sqlite queryLocation: "C:\Neo4jLogAnalyzer\Logs\" fileFilter: ^query..log.$ databaseURI: jdbc:sqlite:query_db.db defaultRuntime: pipelined

ravi-anthapu commented 1 month ago

@prasharm39 It seems there is a bit of nuance in this file that is not handled correctly. Would it be possible to share the query.log to see where it is failing?

Thanks