-
Bug
-
Resolution: Done
-
Major
-
2.6.0.Beta2
An exception is thrown in session.save() after a call to session.move("/path/to/a", "/path/to/b").
The exception:
Caused by: javax.jcr.RepositoryException: java.lang.IllegalArgumentException: The actual location of </{}infinispan/{}node1 && [{http://www.modeshape.org/1.0}uuid = 535660a4-0f8b-49fc-ae5f-ea7ae61ce02e]> is not equal to the current location of </{}infinispan && [{http://www.modeshape.org/1.0}uuid = cafebabe-cafe-babe-cafe-babecafebabe]> at org.modeshape.jcr.SessionCache.save(SessionCache.java:480) at org.modeshape.jcr.JcrSession.save(JcrSession.java:1309) at com.montanesolutions.mcr.component.NodeAction.renameNode(NodeAction.java:126) ... more Caused by: org.modeshape.graph.connector.RepositorySourceException: java.lang.IllegalArgumentException: The actual location of </{}infinispan/{}node1 && [{http://www.modeshape.org/1.0}uuid = 535660a4-0f8b-49fc-ae5f-ea7ae61ce02e]> is not equal to the current location of </{}infinispan && [{http://www.modeshape.org/1.0}uuid = cafebabe-cafe-babe-cafe-babecafebabe]> at org.modeshape.graph.session.GraphSession.save(GraphSession.java:1052) at org.modeshape.jcr.SessionCache.save(SessionCache.java:474) ... 86 more Caused by: java.lang.IllegalArgumentException: The actual location of </{}infinispan/{}node1 && [{http://www.modeshape.org/1.0}uuid = 535660a4-0f8b-49fc-ae5f-ea7ae61ce02e]> is not equal to the current location of </{}infinispan && [{http://www.modeshape.org/1.0}uuid = cafebabe-cafe-babe-cafe-babecafebabe]> at org.modeshape.graph.request.MoveBranchRequest.setActualLocations(MoveBranchRequest.java:245) at org.modeshape.graph.connector.federation.JoinRequestProcessor.process(JoinRequestProcessor.java:1109) at org.modeshape.graph.request.processor.RequestProcessor.process(RequestProcessor.java:279) at org.modeshape.graph.connector.federation.JoinRequestProcessor.process(JoinRequestProcessor.java:195) at org.modeshape.graph.connector.federation.JoinRequestProcessor.process(JoinRequestProcessor.java:145) at org.modeshape.graph.connector.federation.FederatedRepositoryConnection.execute(FederatedRepositoryConnection.java:225) at org.modeshape.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:1129) at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:193) at org.modeshape.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:183) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) ... 1 more
The modeshape configuration is:
<?xml version="2.0" encoding="UTF-8"?> <configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"> <mode:repositories> <mode:repository jcr:name="repository" > <mode:source>federated</mode:source> <mode:options jcr:primaryType="options"> <mode:option jcr:name="projectNodeTypes" mode:value="true"/> <mode:option jcr:name="jaasLoginConfigName" mode:value="modeshape"/> <mode:option jcr:name="queryIndexDirectory" mode:value="${jboss.server.data.dir}/modeshape/repositories/store/indexes"/> <mode:option jcr:name="queryIndexesUpdatedSynchronously" mode:value="true"/> <mode:option jcr:name="queryIndexesRebuiltSynchronously" mode:value="true"/> <mode:option jcr:name="rebuildQueryIndexOnStartup" mode:value="always"/> </mode:options> </mode:repository> </mode:repositories> <mode:sources jcr:primaryType="nt:unstructured"> <mode:source jcr:name="infinispan" mode:classname="org.modeshape.connector.infinispan.RemoteInfinispanSource" mode:defaultWorkspaceName="default"> </mode:source> <mode:source jcr:name="filesystem" mode:classname="org.modeshape.connector.filesystem.FileSystemSource" mode:description="File System Source" mode:workspaceRootPath="/home/mcr/content" mode:defaultWorkspaceName="default" mode:creatingWorkspacesAllowed="false" mode:rootNodeUuid="a9bb5d79-f6c7-4bbc-a016-9453035b1b87" mode:updatesAllowed="true" mode:exclusionPattern="^.*\.modeshape$" mode:extraPropertiesBehavior="store"/> <mode:source jcr:name="federated"> <mode:classname>org.modeshape.graph.connector.federation.FederatedRepositorySource</mode:classname> <mode:workspaces> <mode:workspace jcr:name="default"> <mode:projections> <mode:projection jcr:name="infinispan projection" mode:source="infinispan" mode:workspaceName="default"> <mode:projectionRules>/infinispan => /</mode:projectionRules> </mode:projection> <mode:projection jcr:name="filesystem projection" mode:source="filesystem" mode:workspaceName="default"> <mode:projectionRules>/filesystem => /</mode:projectionRules> </mode:projection> </mode:projections> </mode:workspace> </mode:workspaces> </mode:source> </mode:sources> </configuration>