View Merge command is giving Java Exception com.starbase.starteam.streplicate.streplicator

0 Likes

Problem:

View Merge command is giving Java Exception com.starbase.starteam.streplicate.streplicator

Resolution:

  • Product Name: StarTeam
  • Product Version: 2005 R2
  • Product Component: Cross Platform Client View Manager
  • Platform/OS Version: All

    Question:

    The following error messages were displayed in the Repmgr tree.txt and .log when attempting to perform view merge on two non-derived views using View Manager in ST 2005 CPC.

    Error logs in Repmgr-dd-MMM-yy-hh-mm-ss--tree.txt

    Missing from target, Add to target, Check-in failed: Target: Locked by StarTeam Server Administrator"

    Error logs in Repmgr-dd-MMM-yy-hh-mm-ss.log

    "Exception thrown while replicating 1.2 of SMBC\SMBC\Ph1\Ph1\666300.txt:2702"
    "Exception thrown: The update operation could not be completed because this item is exclusively locked by another user."
    at com.starbase.starteam.ServerException.forError(ServerException.java:78)
    at com.starbase.starteam.vts.comm.BinaryCommand.popException(BinaryCommand.java:549)
    at com.starbase.starteam.vts.comm.Command.pop(Command.java:443)
    at com.starbase.starteam.vts.comm.Command.pop(Command.java:417)
    at com.starbase.starteam.vts.comm.BinaryCommand.readInt(BinaryCommand.java:152)
    at com.starbase.starteam.CmdFileCheckin.pop(CmdFileCheckin.java:144)
    at com.starbase.starteam.vts.comm.CommandMacro.executeOnce(CommandMacro.java:109)
    at com.starbase.starteam.vts.comm.CommandMacro.execute(CommandMacro.java:65)
    at com.starbase.starteam.File.checkinCore(File.java:1423)
    at com.starbase.starteam.File.checkinFrom(File.java:1228)
    at com.starbase.starteam.streplicate.streplicator._$7748(streplicator.java:8489)
    at com.starbase.starteam.streplicate.streplicator._$2261(streplicator.java:7579)
    at com.starbase.starteam.streplicate.streplicator._$1981(streplicator.java:6773)
    at com.starbase.starteam.streplicate.streplicator._$2221(streplicator.java:6412)
    at com.starbase.starteam.streplicate.streplicator._$2263(streplicator.java:7324)
    at com.starbase.starteam.streplicate.streplicator._$1981(streplicator.java:6778)
    at com.starbase.starteam.streplicate.streplicator.synchronize(streplicator.java:3180)
    at com.starbase.starteam.streplicate.streplicator.processCommandLine(streplicator.java:2154)
    at com.starbase.starteam.streplicate.streplicator.main(streplicator.java:1509)


    Answer:

    The immediate workaround is to upgrade to StarTeam 2006 Cross Platform Client.

    A new tool called VCMUtility has been introduce in StarTeam 2006 Cross Platform Client to replace View Manager.

    Run the following in command prompt: (modify according to your path settings)
    C:\Program Files\Borland\StarTeam SDK 2006\bin\stjava.exe" -f "C:\Program Files\Borland\StarTeam Cross-Platform Client 2006\VCMUtility.stjava" -- C:\VCMconfig.txt

    • Notes: Please find the sample option file, VCMconfig.txt, attached in the this article.


    Additional Information:

    Steps to reproduce:

    1. Use CPC to connect to server as User1
    2. Create a new project with [Required exclusive lock at file check in] option enabled in the project properties.
    3. From the project root view, create child view type "non-derived"
    4. Create and add a new file under child view created in Step 3
    5. Check-out the file created in Step 4 with exclusive lock, modify it then check-in and unlock it.
    6. Use CPC to connect to server using as User2.
    7. Select child view created in Step 3.
    8. Repeat Step 5.
    9. Select project root view and create 2nd child view type "non-derived".
    10. Merge the 2 child views created in Step 3 and Step 9 using the script provided.
  • Notes: Please find the sample batch file, vm_merge.bat, attached in the this article.

    Expected result: Able to merge the views without errors since the file is unlocked.

    Actual error observed: Java Exception occurs when running merge view command using vm_merge.bat as User1.

    Other observation:
    1. Able to merge the views without errors when running merge view command using vm_merge.bat as User2.
    2. It seems that file status is not released properly after the last person accessed to the file on server side.
    3. Attempted -breaklocks option but it doesn"t help.


    Author: Sok Nee, Fong

Related documents:


Old KB# 27609
Comment List
Related
Recommended