Tag Archives: neo4j

Neo4j LOAD CSV Error: Query cannot conclude with LOAD CSV

Question:
Enter query statement Load CSV with headers from“ file:///hudong_pedia.csv "As line error reported:

the reason is that the statement is not complete. Load CSV should be used in combination with create or merge
for example:

LOAD CSV WITH HEADERS FROM "file:///C:/dir/file.csv" AS row
CREATE (n:Label {attributeName: row.columName});

Reference link: link

[neo4j] error report when visiting neo4j in spring boot project

Spring boot project uses spring-data-neo4j to connect with neo4j. It can start and access the database normally when running locally all the time. If you write dockerfile well and run on the server with docker compose, you will report an error, such as:

Caused by: java.lang.NullPointerException: null
    at org.neo4j.ogm.MetaData.entityType(MetaData.java:280) 

The reasons are as follows:
https://github.com/spring-projects/spring-boot/issues/6709

stay pom.xml To solve the problem, add dependency to

 <!--Not adding this package to run in docker will report an error-->
 <!--https://github.com/spring-guides/gs-accessing-data-neo4j/issues/19-->
        <dependency>
            <groupId>io.github.lukehutch</groupId>
            <artifactId>fast-classpath-scanner</artifactId>
            <version>3.1.13</version>
        </dependency>

Error: missing `server’ JVM at `C:\Program Files (x86)\Java\jre1.8.0_231\bin\server\jvm.dll’.

** problem: ** when using “neo4j.bat confole” to start up neo4j, Error Error: missing server' JVM atC:\Program Files (x86)\Java\jre1.8.0_231\bin\server\ jvvm.dll ‘popped up.
Solution:
1. Find Java error path

2. Search jvm. DLL

3. Create server in bin folder, copy jvm. DLL paste

4. Return CMD, run neo4j.bat Console, success