Troubleshooting
Problem
This technote explains how to resolve an error, Error: "java.io.IOException: Unable to acquire lock to copy area registry, that can occur when trying to create a IBM Rational ClearCase Remote Client (CCRC) view.
Symptom
The symptoms for this error include the following:
Error 1:
Using ClearCase Remote Client, the user receives error:
Created view.
Host-local path: XYZ288KDC:E:\ccweb\xy0158718\xy0158718_A_PLIQRFT\view.stg
Created snapshot view directory "E:\ccweb\xy0158718\xy0158718_A_PLIQRFT".
Attached view to stream "A_PLIQ_RFT7_PROD".
Error: "java.io.IOException: Unable to acquire lock to copy area
registry. (Lock file is "C:\Documents and Settings\xy0158718\.ccase_wvreg_lockfile").
Error 2:
Sometimes the following error may be seen:
Created view.
Host-local path:
scorpio22:C:\ccweb\MCdenise\MCdenise_Test24Mar09\view.stg
Created snapshot view directory
"C:\ccweb\MCdenise\MCdenise_Test24Mar09".
Error: "java.io.IOException: Unable to acquire lock to copy-area registry.
(Lock file is "%userprofile%\.ccase_wvreg_lockfile")."
Error 3:
CCRC Plug-in for Eclipse fails differently.
The following exceptions go to eclipse stdout:
Caused by: java.io.IOException: Unable to acquire lock to copy area
registry. (Lock file is "/home/carysat/.ccase_wvreg_lockfile").
at com.ibm.rational.clearcase.remote_core.copyarea.registry.
CopyAreaRegistry.<init>(CopyAreaRegistry.java:98)
at com.ibm.rational.clearcase.remote_core.copyarea.registry.
CopyAreaRegistry.getCopyAreaRegistry(CopyAreaRegistry.java:136)
at com.ibm.rational.stp.client.internal.cc.CcFileAreaFactory.
getCopyAreaRegistry(CcFileAreaFactory.java:124)
... 100 more
...java.io.IOException: Unable to acquire lock to copy area registry.
(Lock file is "/home/carysat/.ccase_wvreg_lockfile").
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.
realException(StpExceptionImpl.java:493)
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.<init>
(StpExceptionImpl.java:572)
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.<init>
(StpExceptionImpl.java:538)
at com.ibm.rational.stp.cs.internal.util.StpExceptionImpl.<init>
(StpExceptionImpl.java:512)
at com.ibm.rational.stp.client.internal.cc.CcFileAreaFactory.
getCopyAreaRegistry(CcFileAreaFactory.java:127)
at com.ibm.rational.stp.client.internal.cc.CcFileAreaFactory.
getClientViewList(CcFileAreaFactory.java:101)
at com.ibm.rational.stp.client.internal.cc.CcSubproviderImpl.
getClientViewList(CcSubproviderImpl.java:1177)
at com.ibm.rational.clearcase.ui.util.CcProviderFactory.
getServersAndViews(CcProviderFactory.java:1110)
at com.ibm.rational.clearcase.ui.util.CcProviderFactory.
makeProviders(CcProviderFactory.java:417)
at com.ibm.rational.clearcase.ui.plugin.EclipsePlugin.start
(EclipsePlugin.java:309)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.
run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
Cause
- This error may be caused by a lock file.
- The USERPROFILE environment variable is not set properly.
Resolving The Problem
For Cause 1
Delete the lock file located in your local workspace:
Example:
C:\Documents and Settings\xy0158718\.ccase_wvreg_lockfile
For Cause 2
Make sure the USERPROFILE Environment Variable is set properly and that it has the correct path for the end user.
USERPROFILE=C:\Documents and Settings\Administrator
You can check the current USERPROFILE by using the command line SET command.
Was this topic helpful?
Document Information
Modified date:
19 February 2019
UID
swg21381594