rtc scm fails
Hi
I am getting weird results for scm status command. it shows:
....
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
(----) ---@ <No comment>
java.lang.IllegalStateException: Could not acquire lock
at com.ibm.team.filesystem.cli.core.internal.aliases.UuidAliasRegistry.findAliasByUuid(UuidAliasRegistry.java:43
7)
at com.ibm.team.filesystem.cli.core.util.AliasUtil.alias(AliasUtil.java:111)
at com.ibm.team.filesystem.cli.core.util.AliasUtil.alias(AliasUtil.java:84)
at com.ibm.team.filesystem.cli.core.util.AliasUtil.alias(AliasUtil.java:74)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printChangeSetHeader(PendingChangesUtil.java:1149)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printChangeSet(PendingChangesUtil.java:1108)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printChangeSets(PendingChangesUtil.java:1098)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printOutgoing(PendingChangesUtil.java:948)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printComponent(PendingChangesUtil.java:795)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printComponents(PendingChangesUtil.java:720)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printWorkspace(PendingChangesUtil.java:628)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printPendingChanges(PendingChangesUtil.java:541)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printPendingChanges(PendingChangesUtil.java:461)
at com.ibm.team.filesystem.cli.core.util.PendingChangesUtil.printPendingChanges(PendingChangesUtil.java:435)
at com.ibm.team.filesystem.cli.client.internal.subcommands.StatusCmd.run(StatusCmd.java:107)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:651)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:398)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:175)
at com.ibm.team.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:125
)
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:55)
java.lang.IllegalStateException: Could not acquire lock
i think its a bug, but could be a limitation on the list of outgoing change sets .
i wonder how to fix the scm state. just deleting shared directory does not help.
Thanks
Serge
One answer
It is a bug, so you should submit a work item.
For some reason the alias file (ie, the thing that records the mapping between UUIDs and aliases) is locked longer than the timeout the CLI allows. It's possible that you have another CLI running as the same user.
Work arounds:
- Wait for the other process to finish.
- Use a different configuration directory (ie, 'scm --config /path/to/other/dir status ...')
Comments
1 vote