Updating a ClearCase Webview via CLI (CCRC)

387 views Asked by At

I am trying to write a script to automatically update a clearcase webview via rcleartool. When I try to update, the following happens:

CRMAP7009: Command "Update" failed:

CCRC WAN Server: Error: Unable to get view handle.
Fehler: "java.io.IOException: Status(1001:hasNonOkMsg):

CCRC WAN Server: Error: Unable to get view handle.

This is what I did in advance (inside the terminal): ClearCase Version 9.0.1.4

  1. log into the clear case server, which works

  2. cd into my view in a specific vob

  3. update .

I also tried updating via Java with the following script from IBM (https://www.ibm.com/support/pages/sites/default/files/support/swg/rattech.nsf/0/a4136394b0ed467285257a94004d05b2/%24FILE/RefreshView.java), but this does not work either. The login does not work here, maybe because of company proxy settings.

The only thing I want to accomplish is an automatic update from Repository, I also have the ClearTeam Explorer installed.

I hope someone has experience with this and will help me

Have a nice day, Philipp

2

There are 2 answers

0
Philipp Oppel On BEST ANSWER

Thank you VonC for your answer, but the solution was always right before my eyes. I just had to set the PRIMARY_GROUP for it to work.

check out my other question where I explained it a little better Java ClearCase Update on a HTTPS Server

4
VonC On

The rcleartool command does include the update subcommand

But make sure, as shown in this thread to use CC 8.0.9+ (which illustrated a different bug regarding rcleartool update), or more generally the most recent ClearCase version you can.

Note, in a bat file, the same thread mentions:

"rcleartool update" is ignored because rcleartool.bat itself is a batch file so u have to use "call rcleartool -params args" in each line in your batch file.

This is in case your script is executed on a Windows ClearCase client.