Τη Παρασκευή, 16 Μαΐου 2014 12:55:15 μ.μ. UTC+3, ο χρήστης Sotiris Beis 
έγραψε:
>
> Hi,
> I have the following code snippet 
> https://gist.github.com/sarovios/3552c424afacecf680dc where I try to 
> create a simple graph. Unlike the example  
> here<https://github.com/neo4j/neo4j/blob/master/community/server-examples/src/main/java/org/neo4j/examples/server/CreateSimpleGraph.java>
>  I 
> want my nodes indexed so I can check if a specific node exists or not. When 
> I execute the code I get the following error:
> Exception in thread "Thread-0" java.lang.NullPointerException
> at test.Thread1.addRelationship(Thread1.java:103)
> at test.Thread1.run(Thread1.java:28)
> at java.lang.Thread.run(Thread.java:745)
>
> Where is the problem? 
>
> Is it possible that the error is cause because I use a wrong node URI? In 
> all the 
> examples<http://docs.neo4j.org/chunked/stable/rest-api-relationships.html#rest-api-create-relationship>
>  it 
> is used a node URI that is not indexed (e.g. 
> http://localhost:7474/db/data/node/10). I should follow the same 
> procedure if i want to add relationships between indexed nodes?
>
> Thanks in advance,
> Sotiris
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to