The server is running on localhost and can be hit from a browser. The
server's configuration was modified to allow requests from any IP address,
although all of my attempts are from the localhost anyway.

I've tried this with and without a trailing slash on the URI, no difference.

Code:

GraphDatabase graphDb = new
SpringRestGraphDatabase("http://localhost:7474/db/data";);
graphDb.getReferenceNode();

Result:

java.lang.NullPointerException
        at
org.neo4j.rest.graphdb.ExecutingRestRequest.uriWithoutSlash(ExecutingRestRequest.java:78)
        at
org.neo4j.rest.graphdb.ExecutingRestRequest.<init>(ExecutingRestRequest.java:72)
        at
org.neo4j.rest.graphdb.ExecutingRestRequest.with(ExecutingRestRequest.java:149)
        at org.neo4j.rest.graphdb.entity.RestEntity.<init>(RestEntity.java:52)
        at org.neo4j.rest.graphdb.entity.RestNode.<init>(RestNode.java:47)
        at org.neo4j.rest.graphdb.RestAPI.getReferenceNode(RestAPI.java:168)
        at
org.neo4j.rest.graphdb.RestGraphDatabase.getReferenceNode(RestGraphDatabase.java:71)
        at neo4j.Populate.<init>(Populate.java:35)
        at neo4j.Populate.main(Populate.java:18)


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/NullPointerException-in-ExecutingRestRequest-tp3550067p3550067.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to