用于ClearCase的Java CM api抛出异常

时间:2011-02-08 09:47:24

标签: clearcase clearcase-remote-client

以下是完整的例外情况:

CRVAP0087E (conflict):  CCRC command 'Update' failed: 
Unable to get contents of directory "E:\ccweb_views\akash.sharma\akash.sharma_AR_TAS_Release1_int_2\rainwater\src\TAS\codegenerator\pom.xml": 
ClearCase object not found
Problems were encountered while retrieving view synchronization information and data.

继续:

ClearCase CM Server: Error: 
Unable to access "\rainwater\src\TAS\codegenerator\pom.xml": Permission denied.

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.client.internal.cc.Util.ccrcCmdStatusToWvcmException(Util.java:155)
at com.ibm.rational.stp.client.internal.cc.Util.runCommandAndCheckResults(Util.java:107)
at com.ibm.rational.stp.client.internal.cc.WebViewRefresh.run(WebViewRefresh.java:151)
at com.ibm.rational.stp.client.internal.cc.CcFileImpl.doRefresh(CcFileImpl.java:240)
    at Refresh_View.main(Refresh_View.java:65)

你会如何解决这个问题?

2 个答案:

答案 0 :(得分:0)

如果存在某种权限问题,您需要检查:

  • 用户实际执行Java调用的是什么?
  • 它的 PRIMARY_CLEARCASE_GROUP(环境变量)是什么? (正如您在问题“Java CM api for ClearCase throw exception”中发现的那样,CLEARCASE_PRIMARY_GROUP不能与CCRC CLI一起使用,或者我怀疑,它与Java CM API一起使用)

您需要确保用户在Vob'rainwater'的组(主要或次要)中有一个主ClearCase组

答案 1 :(得分:-1)

如果您100%确定用户已经在正确的组中,则fixprot可能有所帮助。