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

How to work around lock when creating a changeset when using scmtools in java application?

 I am trying to create a change set by running command line tasks on a java application. Is there a way work around this? I am running the application from eclipse.
This is how I am creating the change set.
scm create changeset -r REPOSITORY_URL -w WORKSPACE_NAME --component Standard
	
This is the error that I'm getting.
Could not initialize data area. Could not lock C:\****- locked by other process.
		


Thanks.

0 votes


Accepted answer

Permanent link
Are you performing these operations on the Eclipse workspace? Or even on the RTC sandbox that has been loaded with the RTC Eclipse client?

You might get some success in figuring out what's locking the data area by using a process explorer. Then you can see if Eclipse or RTC really needs that lock or if something in your application is unnecessarily obtaining the lock.
Ferdinand Llameg selected this answer as the correct answer

0 votes

Comments

I had a private conversation with Ferdinand and the automated calls to CLI used 'lscm'. This is likely a cause of the issue and the recommended approach of automating calls to CLI is to use 'scm' instead.

Isn't "scm" very slow, since it needs to load all the Eclipse libraries every time you invoke it (as opposed to lscm that loads the libraries once into a daemon process, and then just keeps using that daemon process)?

Using 'lscm' is faster on subsequent calls. However, automating calls with the CLI should use a clean environment so that there isn't anything left behind from previous executions or other automated uses of the CLI.


In this case, there were a mixture of calls using 'lscm' and 'scm'. I suggested that the calls be consistent and see if the issue persists.

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
× 12,019
× 1,202
× 158
× 149
× 113
× 89
× 17

Question asked: Aug 19 '14, 12:00 p.m.

Question was seen: 4,193 times

Last updated: Aug 20 '14, 8:29 a.m.

Confirmation Cancel Confirm