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

Exception delivering baseline to stream

Hi,
I'm working on a client-side plugin which has to deliver a baseline from a workspace to a stream. I'm using the following methods:

source.deliver(target, syncReport, Collections.EMPTY_LIST, syncReport.outgoingBaselines(), null);

where source and target are WorkspaceConnection between a rep.Workspace (source) and a stream (target). syncReport is obtained using compareTo methods of WorkspaceConnection and WorkspaceComparisonFlags.INCLUDE_BASELINE_INFO parameter.

The exception I've obtained is the following:

GRAVE: null

java.lang.IllegalArgumentException

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkForDuplicates(WorkspaceConnection.java:1895)

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkAgainstReport(WorkspaceConnection.java:1916)

at com.ibm.team.scm.client.internal.WorkspaceConnection.runDeliver(WorkspaceConnection.java:1833)

at com.ibm.team.scm.client.internal.WorkspaceConnection$1.run(WorkspaceConnection.java:1822)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.run(RunnableAdvisableOperation.java:103)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.runOperation(OperationAdviceManager.java:1245)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise(OperationAdviceManager.java:284)

at com.ibm.team.process.internal.common.util.AbstractProcess.doAdvise(AbstractProcess.java:181)

at com.ibm.team.process.internal.client.ClientProcess.doAdvise(ClientProcess.java:130)

at com.ibm.team.process.internal.client.ClientProcess.adviseAndExecute(ClientProcess.java:113)

at com.ibm.team.scm.client.internal.process.ProcessUtils$ClientProcessProxy.adviseAndExecute(ProcessUtils.java:61)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:189)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:170)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1825)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1718)

at it.nexen.wi.RebaseOpenUDC.execute(RebaseOpenUDC.java:182)

at it.nexen.commands.EstrObj.run(EstrObj.java:328)

at it.nexen.commands.EstrObj.main(EstrObj.java:62)

Exception in thread "main" java.lang.IllegalArgumentException

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkForDuplicates(WorkspaceConnection.java:1895)

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkAgainstReport(WorkspaceConnection.java:1916)

at com.ibm.team.scm.client.internal.WorkspaceConnection.runDeliver(WorkspaceConnection.java:1833)

at com.ibm.team.scm.client.internal.WorkspaceConnection$1.run(WorkspaceConnection.java:1822)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.run(RunnableAdvisableOperation.java:103)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.runOperation(OperationAdviceManager.java:1245)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise(OperationAdviceManager.java:284)

at com.ibm.team.process.internal.common.util.AbstractProcess.doAdvise(AbstractProcess.java:181)

at com.ibm.team.process.internal.client.ClientProcess.doAdvise(ClientProcess.java:130)

at com.ibm.team.process.internal.client.ClientProcess.adviseAndExecute(ClientProcess.java:113)

at com.ibm.team.scm.client.internal.process.ProcessUtils$ClientProcessProxy.adviseAndExecute(ProcessUtils.java:61)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:189)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:170)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1825)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1718)

at it.nexen.wi.RebaseOpenUDC.execute(RebaseOpenUDC.java:182)

at it.nexen.commands.EstrObj.run(EstrObj.java:328)

at it.nexen.commands.EstrObj.main(EstrObj.java:62)


If I deliver changeSet instead of baseline everything is ok, but with baseline is incorrect. Any ideas?

Thanks,
Michele.

0 votes



2 answers

Permanent link
It looks like the arguments for change sets and baselines are reversed. The baselines are being passed for the change sets and is causing the error.

Hi,
I'm working on a client-side plugin which has to deliver a baseline from a workspace to a stream. I'm using the following methods:

source.deliver(target, syncReport, Collections.EMPTY_LIST, syncReport.outgoingBaselines(), null);

where source and target are WorkspaceConnection between a rep.Workspace (source) and a stream (target). syncReport is obtained using compareTo methods of WorkspaceConnection and WorkspaceComparisonFlags.INCLUDE_BASELINE_INFO parameter.

The exception I've obtained is the following:

GRAVE: null

java.lang.IllegalArgumentException

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkForDuplicates(WorkspaceConnection.java:1895)

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkAgainstReport(WorkspaceConnection.java:1916)

at com.ibm.team.scm.client.internal.WorkspaceConnection.runDeliver(WorkspaceConnection.java:1833)

at com.ibm.team.scm.client.internal.WorkspaceConnection$1.run(WorkspaceConnection.java:1822)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.run(RunnableAdvisableOperation.java:103)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.runOperation(OperationAdviceManager.java:1245)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise(OperationAdviceManager.java:284)

at com.ibm.team.process.internal.common.util.AbstractProcess.doAdvise(AbstractProcess.java:181)

at com.ibm.team.process.internal.client.ClientProcess.doAdvise(ClientProcess.java:130)

at com.ibm.team.process.internal.client.ClientProcess.adviseAndExecute(ClientProcess.java:113)

at com.ibm.team.scm.client.internal.process.ProcessUtils$ClientProcessProxy.adviseAndExecute(ProcessUtils.java:61)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:189)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:170)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1825)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1718)

at it.nexen.wi.RebaseOpenUDC.execute(RebaseOpenUDC.java:182)

at it.nexen.commands.EstrObj.run(EstrObj.java:328)

at it.nexen.commands.EstrObj.main(EstrObj.java:62)

Exception in thread "main" java.lang.IllegalArgumentException

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkForDuplicates(WorkspaceConnection.java:1895)

at com.ibm.team.scm.client.internal.WorkspaceConnection.checkAgainstReport(WorkspaceConnection.java:1916)

at com.ibm.team.scm.client.internal.WorkspaceConnection.runDeliver(WorkspaceConnection.java:1833)

at com.ibm.team.scm.client.internal.WorkspaceConnection$1.run(WorkspaceConnection.java:1822)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.run(RunnableAdvisableOperation.java:103)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.runOperation(OperationAdviceManager.java:1245)

at com.ibm.team.process.internal.common.advice.runtime.OperationAdviceManager.advise(OperationAdviceManager.java:284)

at com.ibm.team.process.internal.common.util.AbstractProcess.doAdvise(AbstractProcess.java:181)

at com.ibm.team.process.internal.client.ClientProcess.doAdvise(ClientProcess.java:130)

at com.ibm.team.process.internal.client.ClientProcess.adviseAndExecute(ClientProcess.java:113)

at com.ibm.team.scm.client.internal.process.ProcessUtils$ClientProcessProxy.adviseAndExecute(ProcessUtils.java:61)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:189)

at com.ibm.team.scm.common.process.RunnableAdvisableOperation.processExec(RunnableAdvisableOperation.java:170)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1825)

at com.ibm.team.scm.client.internal.WorkspaceConnection.deliver(WorkspaceConnection.java:1718)

at it.nexen.wi.RebaseOpenUDC.execute(RebaseOpenUDC.java:182)

at it.nexen.commands.EstrObj.run(EstrObj.java:328)

at it.nexen.commands.EstrObj.main(EstrObj.java:62)


If I deliver changeSet instead of baseline everything is ok, but with baseline is incorrect. Any ideas?

Thanks,
Michele.

0 votes


Permanent link
Hi!
I'm new in Jazz and I 'm developing a plug in to import user story but i have a problem: I'm following the Hello Jazz'guide to make my first plugin but when i must exend com.ibm.team.repository.client.clientLibraryFactory, there is not any information about this point and so i can't extend it. All client extention'point have no information why? I think i didn't load some necessary plugin on the client'side but a i'don't understand what libraries are missing...
Any ideas?
Thanks a lot
Luigi

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,941

Question asked: May 31 '10, 9:54 a.m.

Question was seen: 5,633 times

Last updated: May 31 '10, 9:54 a.m.

Confirmation Cancel Confirm