Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
I may well have done that, yes. I wasn't aware that node 0 was the same as the reference node. On Dec 1, 2011, at 12:44 PM, Michael Hunger [via Neo4j Community Discussions] wrote: > Did you by chance delete the reference node too? (aka. node 0) > > I tried it and it seems to be the reason. >

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
Did you by chance delete the reference node too? (aka. node 0) I tried it and it seems to be the reason. After deleting the reference node it is no longer shown in the graph representation. I will add an appropriate Exception to java-rest-graphdb Cheers, Michael Am 01.12.2011 um 19:20 schri

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
Interesting. I did create and delete a few nodes manually via the Web interface right when I first installed the server. Maybe there's some bug related to that. In any case, it seems to be working now that I reinstalled the server with 1.6. On Dec 1, 2011, at 12:12 PM, Michael Hunger [via Neo4j

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
Hi Frank, this is really weird. Your server is missing the exploratory URL for the reference node. The (Spring)RestGraphDatabaseService uses this URL to get the URL for the ReferenceNode. I don't know why your sever is missing that. I just downloaded 1.5 community for unix and started the ser

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
I tried switching to version 1.6 ("Current Milestone") and now it works. Am I correct in concluding that the restful client services are not compatible with version 1.5? As version 1.5 is listed as the "current stable version", I'm a little suprised/concerned by this. Frank On Nov 30, 2011, a

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
Hi Michael, My curl result looks like this: $ curl http://localhost:7474/db/data/ -i HTTP/1.1 200 OK Content-Length: 680 Content-Encoding: UTF-8 Content-Type: application/json Access-Control-Allow-Origin: * Server: Jetty(6.1.25) { "relationship_index" : "http://localhost:7474/db/data/index/rel

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-11-30 Thread Michael Hunger
Frank, sorry to hear that. I just tried it and it works as expected. final SpringRestGraphDatabase gdb = new SpringRestGraphDatabase("http://localhost:7474/db/data/";); final Node node = gdb.getReferenceNode(); assertEquals(0,node.getId()); What version of the Neo4j-Se

[Neo4j] NullPointerException in ExecutingRestRequest

2011-11-30 Thread Frank
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: GraphData