It's all about the answers!

Ask a question

Attempted to beginRule failure when using lscm move path


Alasdair Nottingham (611510) | asked Mar 31 '15, 9:48 a.m.
I need to move a large number of files in my RTC server. Given the number I want to automate this, so I'm looking at the scmtools. I didn't find much useful documentation so I am running some experiments and I ran

lscm move path projectA/dir/dummy.txt projectB/dummy.txt
I didn't provide any login credentials or any repository url so I expected to get a failure related to that. I didn't, I got the following:
    Unexpected exception
com.ibm.team.rtc.cli.infrastructure.internal.core.CLIClientException: Attempted to beginRule: MultiRule[P/projectA/,P/projectB], does not match outer scope rule: MultiRule[F/projectA/dir,P/projectB]
at com.ibm.team.filesystem.cli.core.util.StatusHelper.toCLIClientException(StatusHelper.java:717)
at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:53)
at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:569)
at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.doStart(SubcommandLauncher.java:365)
at com.ibm.team.rtc.cli.infrastructure.internal.core.SubcommandLauncher.run(SubcommandLauncher.java:129)
at com.ibm.team.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:186)
at com.ibm.team.filesystem.client.internal.http.ProtocolSwitchingHttpHandler.handle(ProtocolSwitchingHttpHandler.java:46)
at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)
at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: java.lang.IllegalArgumentException: Attempted to beginRule: MultiRule[P/projectA/,P/projectB], does not match outer scope rule: MultiRule[F/projectA/dir,P/projectB]
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:136)
at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:329)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:63)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:286)
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1914)
at org.eclipse.core.internal.resources.Resource.move(Resource.java:1585)
at com.ibm.team.filesystem.rcp.core.internal.resources.EclipseFileStorage.move(EclipseFileStorage.java:606)
at com.ibm.team.filesystem.client.internal.FileStorageWrapper.move(FileStorageWrapper.java:848)
at com.ibm.team.filesystem.rcp.core.internal.rest.FilesystemRestClient.postMoveResources(FilesystemRestClient.java:1140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.ibm.team.filesystem.client.daemon.JSONHandler.handle(JSONHandler.java:322)
at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)
at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:340)
at com.ibm.team.repository.common.serialize.internal.JSONDeserializer.deserializeErrorObj(JSONDeserializer.java:955)
at com.ibm.team.filesystem.client.internal.marshalling.ExceptionHandlingJSONDeserializer.deserializeErrorObj(ExceptionHandlingJSONDeserializer.java:128)
at com.ibm.team.repository.common.serialize.internal.JSONDeserializer.deserializeException(JSONDeserializer.java:933)
at com.ibm.team.filesystem.client.internal.marshalling.EObjectJSONDeserializer.deserializeError(EObjectJSONDeserializer.java:71)
at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.executeRequest(RestInvocationHandler.java:267)
at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.executeAndReturnResult(RestInvocationHandler.java:221)
at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.invokeInternal(RestInvocationHandler.java:368)
at com.ibm.team.filesystem.client.restproxy.RestInvocationHandler.invoke(RestInvocationHandler.java:311)
at com.sun.proxy.$Proxy71.postMoveResources(Unknown Source)
at com.ibm.team.filesystem.cli.client.internal.subcommands.MoveCmd.run(MoveCmd.java:159)
at com.ibm.team.filesystem.cli.core.AbstractSubcommand.run(AbstractSubcommand.java:51)
... 8 more
    java.lang.RuntimeException: com.ibm.team.rtc.cli.infrastructure.internal.core.CLIClientException: Attempted to beginRule: MultiRule[P/projectA/,P/projectB], does not match outer scope rule: MultiRule[F/projectA/dir,P/projectB]

One answer



permanent link
Michael Valenta (3.6k3) | answered Mar 31 '15, 10:32 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
This looks like a defect. Please open a work item against RTC/Source Control in jazz.net or a PMR with IBM support.

Comments
Alasdair Nottingham commented Mar 31 '15, 10:39 a.m.

Raised as 351588

Your answer


Register or to post your answer.