Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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?



0 votes



One answer

Permanent link
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

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
× 10,934
× 1,202
× 67

Question asked: Nov 04 '13, 3:34 a.m.

Question was seen: 5,086 times

Last updated: Jul 26 '16, 12:05 p.m.

Confirmation Cancel Confirm