Written by The Jahia Team
 
Sysadmins
   Estimated reading time:

On startup of server, error similar to the following is being thrown:

org.springframework.web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DefaulJCRStoreProvider' defined in URL [jar:file:/production/jahia/tomcat/webapps/ROOT/WEB-INF/lib/jahia-impl-7.2.0.2.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Separator not found. Token [3427]
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
 ...
 ...
 ...
Caused by: java.lang.IllegalArgumentException: Separator not found. Token [3427]
 at org.apache.jackrabbit.core.lock.LockInfo.parseLockToken(LockInfo.java:311)
 at org.apache.jackrabbit.core.lock.LockManagerImpl.reapplyLock(LockManagerImpl.java:235)
 at org.apache.jackrabbit.core.lock.LockManagerImpl.load(LockManagerImpl.java:207)
 at org.apache.jackrabbit.core.lock.LockManagerImpl.<init>(LockManagerImpl.java:143

Cause

Incorrect entries in workspace lock files.

Solution

Open the following files on the server and check the formats of the entries.

/digital-factory-data/repository/workspaces/default/locks
/digital-factory-data/repository/workspaces/live/locks

The files should either be empty or have entries like:

0fc1eab9-9806-400e-874e-24462bc291e5-2
b90266df-9ac7-480a-8551-15b21ff42f76-V

(<UUID-of-the-node>-<status>)

If there are lines which are not in these formats, shut down the instance, remove those lines, and restart the server.

Related links