0

I am getting following

Rational ClearCase Explorer
---------------------------
Error checking out 'C:\Projects\TestServlet.java'.

Lock on activity "activity_test_name" prevents operation "change activity".
Unable to check out "C:\Projects\TestServlet.java".
Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

2

The correct procedure to allow you to checkout that file would be to include you in the list of users exempted on that lock: see cleartool lock man page.
But you need to be the owner of the pvob in which the activity or the current Stream has been declared, or root (or privileged user on Windows).

If the activity only is locked, another way would be for you to create another activity.

cleartool mkact anotherActivity

and try your checkout then. It should have unset the current (locked) activity, and set a new one.

But if the Stream itself is locked (or even the vob/pvob), then you need to ask your ClearCase admin for an unlock.
See for instance IBM technote "Lock on activity prevents operation change activity", which illustrate how that "activity locked" error message is, in this case, misleading.
But that was for CC2003, and I suppose you are using a more recent version of ClearCase.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

Someone with administrative control over the VOB you're using has locked the activity so that you cannot make a check-out. Speak to the people in charge to find out why.

The problem is (most probably) not that you don't have permission in general to do it. And you get a different error if the VOB is locked for backup.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278