How do you instantiate the GraphDatabase? Via resources.groovy? If so,
make sure to set a destroyMethod.

        graphDatabaseService(EmbeddedGraphDatabase, 'my/path') { bean ->
            bean.destroyMethod = "shutdown"
        }

Next thing to check if Grails reloading causes the error. You might
increase logging levels to track this down.

Another idea: place a breakpoint on your EmbeddedGraphDatabase's
constructor and analyze the stacktrace when it's called for the 2nd
time.

Regards,
Stefan

Am Sonntag, den 10.07.2011, 11:41 -0700 schrieb noppanit:
> Thanks for the reply, 
> 
> I'm not using Grails plugin, I'm using native embedded neo4j. I'm
> redesigning my application just to make sure that I close the database after
> use.
> 
> BTW, if I got that error again, would that mean that the database is
> corrupted? Is there anyway to restore it?
> 
> --
> View this message in context: 
> http://neo4j-user-list.438527.n3.nabble.com/What-to-do-with-Unable-to-lock-store-tp3155717p3157185.html
> Sent from the Neo4J User List mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user


_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to