-
Bug
-
Resolution: Done
-
Critical
-
2.4.0.Final, 2.2.1.GA
-
None
The change which comes in has the following format:
'create in the "system" workspace the node "/
{http://www.jcp.org/jcr/1.0}system/
{http://www.modeshape.org/1.0}locks/{}865c99c1-ff51-4e5e-a4fd-e0454b37db6a" with properties [
{http://www.modeshape.org/1.0}lockedUuid = 8197546c-0a29-4b62-bab5-95e32a444e2b,
{http://www.jcp.org/jcr/1.0}lockOwner = <anonymous>,
{http://www.modeshape.org/1.0}expirationDate = 2011-01-18T17:06:37.449+01:00,
{http://www.jcp.org/jcr/1.0}primaryType =
{http://www.modeshape.org/1.0}lock,
{http://www.modeshape.org/1.0}workspace = workspace1,
{http://www.modeshape.org/1.0}lockingSession = 8a51f53c-6dc8-43cf-b699-df87eab70998,
{http://www.modeshape.org/1.0}isHeldBySession = false,
{http://www.modeshape.org/1.0}isSessionScoped = false,
{http://www.jcp.org/jcr/1.0}lockIsDeep = true]'
The lock manager attempts to retrieve the ModeShapeLexicon.WORKSPACE_NAME property which is not present and it results into a call to the lockManagers map with a null argument.
EXCEPTION STACK:
17:05:37,828 ERROR [STDERR] Exception in thread "pool-34-thread-1"
17:05:37,880 ERROR [STDERR] java.lang.NullPointerException
17:05:37,881 ERROR [STDERR] at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
17:05:37,881 ERROR [STDERR] at org.modeshape.jcr.RepositoryLockManager.getLockManager(RepositoryLockManager.java:63)
17:05:37,881 ERROR [STDERR] at org.modeshape.jcr.RepositoryLockManager.notify(RepositoryLockManager.java:205)
17:05:37,881 ERROR [STDERR] at org.modeshape.jcr.JcrRepository$SystemChangeObserver.notify(JcrRepository.java:2014)
17:05:37,881 ERROR [STDERR] at org.modeshape.jcr.JcrRepository$RepositoryObservationManager$1.run(JcrRepository.java:1853)
17:05:37,881 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
17:05:37,881 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
17:05:37,881 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)