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

Unexpected error with the ILoadOperation while loading a component to sandbox using Java API

We are facing an issue with the automation


We have two ewm workspaces. WorkspaceA and WorkspaceB

In WorkspaceA, we have created the java project to load a EWM component to the sandbox.

In WorkspaceB, we have created the Repository workspace where the EWM component should be loaded upon running the above java project.

Below is the api. 

ILoadOperation loadOperation = rule.getLoadOp(sandbox,component, loadDilemmaHandler, monitor);
loadOperation.run(monitor);    

WorkspaceB is closed. And java project is run from WorkspaceA. Everything works fine.

But we are facing an issue in below scenarios: 

Scenario 1:

When we created a jar file from the java project and try to run it as a standalone automation. WorkspaceB is open and active.

Error:

Unable to lock file C:\workspace\ACHARYM.jazz5.jazzlock

Scenario 2:

When we create everything in the same EWM workspace(Instead of WorkspaceA and WorkspaceB), it gives an error.

Error:

Unable to lock file C:\workspace\ACHARYM.jazz5.jazzlock

It looks like, when we have the EWM workspace where we want to load the component is open and active, then we get the error.

Any suggestion on how it can be fixed?

0 votes


Be the first one to answer this question!

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,936
× 7,495
× 1,325

Question asked: Oct 13 '23, 10:40 a.m.

Question was seen: 601 times

Last updated: Oct 13 '23, 10:40 a.m.

Confirmation Cancel Confirm