It's all about the answers!

Ask a question

How to retrieve change set histories in a sever-side Operation Participants?


Yasuyuki Kubota (341015) | asked Nov 04 '13, 3:34 a.m.
edited Jul 26 '16, 12:05 p.m. by David Lafreniere (4.8k7)
I design a server-side Operation Participants invoked by server-side delivery event.
And I wanna retrieve change set histories in this Operation Participants.
I coded as blow,
ServiceHistoryProvider targetHistory = ServiceHistoryProvider.FACTORY.create(
                                operationData.getDestWorkspace(), changeSet.getComponent());
                        ChangeHistoryEntry[] changeHistoryEntries = scmService.getHistoryForVersionable(targetHistory,
                                change.item(), Integer.MAX_VALUE, true, null, null);

but IllegalStateException occured with com.ibm.team.scm.common.IScmService#getHistoryForVersionable method.
Here is exeption message:"Illegal transaction in progress for service method call."
This problem is same as this post, but no one answered this post.

Does anyone feel like giving me a hand?



One answer



permanent link
Pietro Bottino (35715) | answered Jul 26 '16, 9:31 a.m.
edited Jul 26 '16, 9:36 a.m.
Good morning.

This post is old, but I had the same problem recently. I've used your code above and works normally for me. But I only tested in the localhost server.
IWorkspace workspace = data.getDestWorkspace();

ServiceHistoryProvider targetHistory = ServiceHistoryProvider.FACTORY.create(    workspace, changeSet.getComponent());
About dependencies, I've only used these ones below:
  • com.ibm.team.repository.service.IRepositoryItemService
  • com.ibm.team.scm.common.IScmService

Your answer


Register or 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.