What causes ".lock is already locked by the current process" while trying to access BRM repository through code ?
Issue
- While trying to access the BRM (i.e. Guvnor) repository though code the following exception occurs. What might be the root cause behind the exceptions?
javax.jcr.RepositoryException:
The repository home ..\brms-standalone-5.3.1\jboss-as\bin\repository appears to be in use since the file named .lock is already locked by the current process.
...
Environment
- Red Hat JBoss BRMS (BRMS)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.