I'm trying to create a relatively small Neo4j db on a PC (or, more precisely, a MacBookPro 10.9.2, running Neo4j 2.1.0), consisting of 1400 CREATE statements. When I load the graph file via the terminal I get the following error message (the entire stacktrace is too long for Stackoverflow, but here is the first three lines of the error message and of the Caused By list):
Error occurred in server thread; nested exception is:
java.lang.StackOverflowError
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.StackOverflowError
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:350)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at sun.rmi.transport.Transport$1.run(Transport.java:174)
...
Caused by: java.lang.StackOverflowError
at org.neo4j.cypher.internal.compiler.v2_1.ReattachAliasedExpressions$.apply(ReattachAliasedExpressions.scala:31)
at org.neo4j.cypher.internal.compiler.v2_1.ReattachAliasedExpressions$$anonfun$2.apply(ReattachAliasedExpressions.scala:36)
at org.neo4j.cypher.internal.compiler.v2_1.ReattachAliasedExpressions$$anonfun$2.apply(ReattachAliasedExpressions.scala:36)
at scala.Option.map(Option.scala:145)
I can load all 1400 create statements in separate files containing 300-Create statements, so my Cypher seems to be correct. How can I increase my stack size so that I can upload a larger Neo4j database? (I am creating the database out of a great whack of xml, and expect in the final analysis to have to have ~3000 nodes and ~4000 relationships).