Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

'ambiguous selector' error from scm

I have run into this a couple of times now. Most recently it happened when we happened to end up with two streams with the same name but that are in different projects.

Here is example output from scm :

<pre>
C:\rtc_wrk_spc11&gt;scm create snapshot -P dsmall -r https://my-jazz-server:9443/jazz cross-project-collision-test
Ambiguous selector &quot;cross-project-collision-test&quot; matched multiple items:
Possible matches:
(1027) &quot;cross-project-collision-test&quot;
(1028) &quot;cross-project-collision-test&quot;
Problem running 'create snapshot':
Ambiguous workspace selector &quot;cross-project-collision-test&quot;
</pre>

I have been looking to see if there is some 'extended' scm command syntax that can be used to work around this situation however have not found anything yet.

So is there some syntx to get around this or do we just have to make sure everything is always uniquely named? ( Even across projects... )

1 vote



3 answers

Permanent link
dsmall@ca.ibm-dot-com.no-spam.invalid (dsmall) writes:

C:\rtc_wrk_spc11&gt;scm create snapshot -P dsmall -r
https://my-jazz-server:9443/jazz cross-project-collision-test
Ambiguous selector &quot;cross-project-collision-test&quot; matched
multiple items:
Possible matches:
(1027) &quot;cross-project-collision-test&quot;
(1028) &quot;cross-project-collision-test&quot;
Problem running 'create snapshot':
Ambiguous workspace selector &quot;cross-project-collision-test&quot;

Replace &quot;cross-project-collision-test&quot; with the desired alias (either
1027 or 1028). If you always want to to see the alias when using the
list subcommand, specify -v (verbose). Additionally you could also use
the -u, --show-uuid option to show the universal unique identifier.
Here's an example using both:

$ ./scm -u y list streams -r rtcdev --projectarea &quot;RTC Team&quot; -v
(1029:_lcDSoKooEd-97PgsBr_fiw) &quot;Extensions Development&quot;
(1013:_mxju4C6-Ed6UeoTLKR3ITg) &quot;V5R4-Maint&quot;
(1014:_spyiQPhzEd2mI-3mKQlIFg) &quot;RTC Team Stream&quot;
(1015:_aGJZcEEYEd6DYdYD2qeWPA) &quot;RTC Team Architecture Material&quot;
(1016:_NhvhwDZkEd6DYdYD2qeWPA) &quot;Process Change&quot;

The -v will show the alias and specifying the -u will show the uuid for
the streams. You can the use either the alias or uuid in place of the
name. Here's an example of listing snapshots using the alias:

$ ./scm -a y list snapshots -r rtcdev 1014
(1019) &quot;Web Portal 2.1&quot; Jun 29, 2010 1:28 PM
(1020) &quot;V5R4-GM&quot; Apr 10, 2009 12:38 PM

If you use &quot;-a,--show-alias y&quot; or &quot;-u,--show-uuid y&quot; and specify -v
(verbose) when doing other actions such as creating snapshots, you will
see the alias and/or uuid on the completion messages.

Note: I am a user of RTC and not a member of the development or support
team.

-Garrett Rolfs

0 votes


Permanent link
Thanks for the reply.

What version are you using? I am using 2.0.0.2 and am not getting the same results as you. Differences seem to be
o --show-showuid not supported
o when using -v with list command ids consist just of 4 digit o number ( as opposed to a number followed by a colon and then some characters. )
o When trying to use the id I get the very user unfriendly error below

C:\temp\garbage&gt;scm create snapshot -P dsmall -r https://myrepos:9443/jazz 1027 -n TestSnapShot
com.ibm.team.repository.common.TeamRepositoryException: No components have been selected from Workspace 'cross-project-collision-test'
at com.ibm.team.scm.service.internal.utils.BaselineUtils.createBaselineSet(BaselineUtils.java:223)
at com.ibm.team.scm.service.internal.ScmServiceInternal.createBaselineSet(ScmServiceInternal.java:2845)
at com.ibm.team.scm.service.internal.ScmService$48.run(ScmService.java:2189)
at com.ibm.team.scm.service.internal.AbstractScmService$2.run(AbstractScmService.java:400)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:466)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$1.run(RepositoryDatabase.java:292)
at com.ibm.team.repository.service.internal.rdb.ConnectionPoolService.withCurrentConnection(ConnectionPoolService.java:331)
at sun.reflect.GeneratedMethodAccessor63.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy21.withCurrentConnection(null)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runTransaction(RepositoryDatabase.java:288)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runInTransaction(RepositoryDatabase.java:244)
at com.ibm.team.repository.service.internal.TransactionService.runInTransaction(TransactionService.java:79)
at sun.reflect.GeneratedMethodAccessor87.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy43.runInTransaction(null)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:310)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:389)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:348)
at com.ibm.team.scm.service.internal.ScmService.createBaselineSet(ScmService.java:2186)
at sun.reflect.GeneratedMethodAccessor510.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy280.createBaselineSet(null)
at sun.reflect.GeneratedMethodAccessor510.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleMethod(AbstractTeamServerServlet.java:1170)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.executeMethod(AbstractTeamServerServlet.java:926)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doPost(AbstractTeamServerServlet.java:728)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1773)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1642)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1555)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:811)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:326)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:296)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeFault(MarshallerUtil.java:261)
at com.ibm.team.repository.transport.client.RemoteTeamService.constructExceptionFromFault(RemoteTeamService.java:613)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:483)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:201)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at $Proxy15.createBaselineSet(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84)
at $Proxy15.createBaselineSet(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy$2.run(ScmServiceInterfaceProxy.java:164)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1169)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1162)
at com.ibm.team.scm.client.internal.ScmClientLibraryContext.callCancelableService(ScmClientLibraryContext.java:70)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invokeCancelableService(ScmServiceInterfaceProxy.java:161)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invoke(ScmServiceInterfaceProxy.java:91)
at $Proxy15.createBaselineSet(Unknown Source)
at com.ibm.team.scm.client.internal.WorkspaceConnection.createBaselineSet(WorkspaceConnection.java:3322)
at com.ibm.team.scm.client.internal.WorkspaceConnection.createBaselineSet(WorkspaceConnection.java:3281)
at com.ibm.team.filesystem.cli.client.internal.createcommand.CreateSnapshotCmd.run(CreateSnapshotCmd.java:96)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(Unknown Source)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
at org.eclipse.equinox.launcher.Main.run(Unknown Source)
Problem running 'create snapshot':
Could not create snapshot

0 votes


Permanent link
I am using 2.0.0.2 and am not getting the same results as you. Differences seem to be
o --show-showuid not supported


2.0.0.2 supports that option. Run 'scm help' and look at the option list:
  -u &#91;--show-uuid&#93; arg   - Specify when UUIDs are to be shown&#58; &quot;y&quot;/&quot;yes&quot;, or &quot;n&quot;/&quot;no&quot;

You appear to have a typo in your argument.


o when using -v with list command ids consist just of 4 digit o number ( as opposed to a number followed by a colon and then some characters. )


That's an alias. The docs contain a section explaining the two under &quot;About UUIDs and aliases&quot;.


o When trying to use the id I get the very user unfriendly error below


That's a bug. Try adding a component to your workspace/stream and rerunning.

e

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 18 '10, 4:07 p.m.

Question was seen: 8,747 times

Last updated: Nov 18 '10, 4:07 p.m.

Confirmation Cancel Confirm