Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Unable to connect to CaliberRM Server and StarTeam Server simultaneously using SDK

Unable to connect to CaliberRM Server and StarTeam Server simultaneously using SDK

Problem:

Unable to connect to CaliberRM Server and StarTeam Server simultaneously using SDK

Resolution:

  • Product Name: CaliberRM
  • Product Version: All
  • Product Component: SDK
  • Platform/OS Version: Windows

    Question:

    While writing codes using CaliberRM and StarTeam SDK to connect to a CaliberRM Server and a StarTeam Server one after another, the below situations happen.


    1. If CaliberRM Server is connected first, followed by StarTeam Server, the connection to StarTeam Server will fail with the following error.

    =====================================================
    Run-time error "-2147467259 (80004005)":

    java.lang.NoClassDefFoundError: com/starbase/caliber/server/CaliberServer
    =====================================================

    2. If StarTeam Server is connected first, followed by CaliberRM Server, the connection to CaliberRM Server will fail with the following error.

    =====================================================
    Run-time error "-2147467259 (80004005)":

    java.lang.NoClassDefFoundError: com/starbase/starteam/Server
    =====================================================



    Answer:

    These errors occur because the client application is unable to locate the Java classes for the 2nd Server to be connected.

    If an application uses multiple SDKs (eg. StarTeam SDK and Caliber SDK), then StInitializer (StarTeam) and Initializer (Caliber) objects must be created for each required SDK in the application"s startup sequence to ensure that the required Java classes for all SDKs will be available at runtime.

    Using a Visual Basic application as an example, this can be done by:

    1. Under Form Declaractions, define the following.

    Dim StInit As StarTeam.StInitializer
    Dim RMInit As CaliberRM.Initializer
    Dim StJavaConfig As StarTeam.IStJavaConfiguration
    Dim RmJavaConfig As CaliberRM.IStJavaConfiguration

    2. Under Form_Load, include the following statements.

    StInit = New StarTeam.StInitializer
    RMInit = New CaliberRM.Initializer
    StJavaConfig = StInit.JavaConfiguration
    RmJavaConfig = RMInit.JavaConfiguration



    Author: Dixon Chan
Old KB# 16260

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:31
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.