droolsjbpm/guvnor — comment on commit 8a8a68fffec028d6f14d3665eb131ef331ea31d6
File: drools-repository-parent/drools-repository/src/main/java/org/drools/repository/RulesRepository.java line 186
By mrietveld:

Having .logout() called on the _same_ jcr session here *_and_* [in the RepositoryStartupService](https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-core/src/main/java/org/drools/guvnor/server/repository/RepositoryStartupService.java#L101) is causing errors. It looks like the RulesRepository always manages to logout of the session (during finalize) before RepositoryStartupService.close() is called.

See https://gist.github.com/1491415 for the stacktrace that Tiho and I have been seeing.