I wrote a small project with Neo4j and SDN. It's a JSON web service.
When I run my unit tests everything works fine. But when I start Jetty then I call the REST entry points I get the following error:
java.lang.NullPointerException
at org.springframework.data.neo4j.support.conversion.EntityResultConverter.doConvert(EntityResultConverter.java:62)
at org.springframework.data.neo4j.conversion.DefaultConverter.convert(DefaultConverter.java:43)
at org.springframework.data.neo4j.support.conversion.EntityResultConverter.convert(EntityResultConverter.java:94)
at org.springframework.data.neo4j.conversion.QueryResultBuilder$1.convert(QueryResultBuilder.java:102)
at org.springframework.data.neo4j.conversion.QueryResultBuilder$1.singleOrNull(QueryResultBuilder.java:95)
...
Note: this NPE occurs randomly on the User user = userRepository.findByObjectId(userId); statement.
If you want to test:
This time it's pretty urgent. So thank you for your help.