This is an identified problem and it will be fixed soon, available in the next milestone as well as snapshot builds.
Until then System.exit( 0 ) is your friend. 2010/10/13 Adam Lehenbauer <a...@fixflyer.com> > I think I have the Getting Started example working, but after it creates > the > nodes and shuts down, my JVM won't exit because there is a non-daemon Timer > thread running. > > I have an example class with a main() that is copied near-verbatim from > http://wiki.neo4j.org/content/Getting_Started_Guide except for the db path > and a few extra System.outs. > > Everything seems to work normally, but after shutting down > the EmbeddedGraphDatabase the JVM will not exit. A jstack shows a running > java.util.TimerThread, which I assume is started by the database. > > Its stack is: > > --- > "Timer-0" prio=10 tid=0x00007f59c0056800 nid=0xa29 in Object.wait() > [0x00007f59bf6d5000] > java.lang.Thread.State: TIMED_WAITING (on object monitor) > at java.lang.Object.wait(Native Method) > - waiting on <0x00007f5a1ed37270> (a java.util.TaskQueue) > at java.util.TimerThread.mainLoop(Timer.java:509) > - locked <0x00007f5a1ed37270> (a java.util.TaskQueue) > at java.util.TimerThread.run(Timer.java:462) > --- > > I'm using the neo4j maven dependency: org.neo4j.neo4j, version=1.2.M01, > type=pom. When I changed this to neo4j-kernel, version=1.0 the JVM exited > as > expected (no code change on my end). > > Does anyone have any idea why this is happening? > > Adam > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user