PDA

View Full Version : (Neo4J) Stackoverflow infinite recursion



viniciuscarvalho
Sep 9th, 2011, 03:10 AM
Hi, I'm getting this error when persisting a simple entity mapped with only an id:

Infinite recursion (StackOverflowError) (through reference chain: org.neo4j.kernel.impl.core.NodeProxy["graphDatabase"]->org.neo4j.kernel.EmbeddedGraphDatabase["referenceNode"]->org.neo4j.kernel.impl.core.NodeProxy["graphDatabase"]->org.neo4j.kernel.EmbeddedGraphDatabase["referenceNode"] (... goes forever)

My config:

<graph:config storeDirectory="target/config-test" />


Any ideas?

Regards

viniciuscarvalho
Sep 9th, 2011, 04:13 AM
Found the problem, happens when I try to serialize the entity using jackson. I think I'll need an adapter.

Regards

MichaelHunger
Sep 10th, 2011, 03:18 AM
Ok, yes as the entities are kind of "live" objects bound to a neo4j node/relationship they are not serializable.

Michael