Received "TeamRepositoryException: No components have been selected from Workspace", when attempting to deliver from a workspace to a stream
Received "TeamRepositoryException: No components have been selected from Workspace", when attempting to deliver from a workspace to a stream (here is the error message)=>
"Could not deliver work items (71557) from workspace/stream PI60293-HMK1400.COPYSENT to workspace/stream HMK1400.ENDAPAR (No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT').: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'
No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'.
com.ibm.team.repository.common.TeamRepositoryException: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'"
here is the top of the java exception stack to show that it is coming from RTC=>
com.ibm.team.repository.common.TeamRepositoryException: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'
at com.ibm.team.scm.service.internal.utils.BaselineUtils.createBaselineSet(BaselineUtils.java:802)
at com.ibm.team.scm.service.internal.ScmServiceInternal.createBaselineSet2(ScmServiceInternal.java:3166)
at com.ibm.team.scm.service.internal.ScmService$49$1.run(ScmService.java:2662)
at com.ibm.team.scm.service.internal.AbstractScmService$5.run(AbstractScmService.java:624)
at com.ibm.team.scm.service.internal.AbstractScmService$2.run(AbstractScmService.java:434)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:568)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$2.run(RepositoryDatabase.java:352)
at com.ibm.team.repository.service.internal.rdb.ConnectionPoolService.withCurrentConnection(ConnectionPoolService.java:476)...
Q: Where/how did you "attempt to deliver from a workspace to a stream"?
A: Change sets from the workspace are being programmatically delivered to a stream.
Q: What RTC client are you using?
A: Version: 5.0.2 , Build id: RTC-I20141031-0926
Q: Do you hit this error every time? Do other colleagues always hit this error?
A: This testing is underway.
Q: Does the work space actually have components?
A: Yes.
Q: Does the work item have attached change sets?
A: Yes
"Could not deliver work items (71557) from workspace/stream PI60293-HMK1400.COPYSENT to workspace/stream HMK1400.ENDAPAR (No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT').: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'
No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'.
com.ibm.team.repository.common.TeamRepositoryException: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'"
here is the top of the java exception stack to show that it is coming from RTC=>
com.ibm.team.repository.common.TeamRepositoryException: No components have been selected from Workspace 'PI60293-HMK1400.COPYSENT'
at com.ibm.team.scm.service.internal.utils.BaselineUtils.createBaselineSet(BaselineUtils.java:802)
at com.ibm.team.scm.service.internal.ScmServiceInternal.createBaselineSet2(ScmServiceInternal.java:3166)
at com.ibm.team.scm.service.internal.ScmService$49$1.run(ScmService.java:2662)
at com.ibm.team.scm.service.internal.AbstractScmService$5.run(AbstractScmService.java:624)
at com.ibm.team.scm.service.internal.AbstractScmService$2.run(AbstractScmService.java:434)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:568)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$2.run(RepositoryDatabase.java:352)
at com.ibm.team.repository.service.internal.rdb.ConnectionPoolService.withCurrentConnection(ConnectionPoolService.java:476)...
Q: Where/how did you "attempt to deliver from a workspace to a stream"?
A: Change sets from the workspace are being programmatically delivered to a stream.
Q: What RTC client are you using?
A: Version: 5.0.2 , Build id: RTC-I20141031-0926
Q: Do you hit this error every time? Do other colleagues always hit this error?
A: This testing is underway.
Q: Does the work space actually have components?
A: Yes.
Q: Does the work item have attached change sets?
A: Yes
Accepted answer
The error is basically saying that a snapshot is trying to be made against an empty set of components.
This I think can happen in two ways:
1. IScmService.createBaselineSet2(...) is being called to create a snapshot on a workspace/stream in which that user does not have read-access to any of the components. This behavior is made clear in the Javadoc by: "Components that are not readable by the user are filtered out."
This I think can happen in two ways:
1. IScmService.createBaselineSet2(...) is being called to create a snapshot on a workspace/stream in which that user does not have read-access to any of the components. This behavior is made clear in the Javadoc by: "Components that are not readable by the user are filtered out."
2. IScmService.createBaselineSet2(...) is being called in which the 'excludedComponents' argument list contains all the components (or at least all the components that are visible to the user making the request).
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 03 '16, 11:48 a.m.David Lafreniere
FORUM MODERATOR / JAZZ DEVELOPER Dec 03 '16, 3:36 p.m.Bruce Eifler
Dec 05 '16, 10:58 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 05 '16, 11:15 a.m.Bruce Eifler
Dec 05 '16, 11:35 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 05 '16, 11:39 a.m.