Harvest

 View Only
  • 1.  Version error using JHSDK

    Posted Nov 02, 2015 08:42 AM

    Hello

     

    This is my first post, so I hope is the right place

    I am tryng to use JHSDK to make a simple java client but I was stopped by this error on login (first step ) "E03020517: Client and server product versions do not match."

    I followed the Sample1 code found in sdk, I have harvest client installed on my PC (an old Windows XP with Eclipse) and it works fine, I check the versions of the client and the server are the same (Product 12.1.0.141)

    I use the jar from my client sdk folder but also I try the jar from the server (are the same).

     

    What did I do wrong?

     

    Thanks

    Roberto

     

    --Source code -----------------------------

    JCaHarvest harvest = new JCaHarvest(sBroker);

    String[] keys = harvest.getProductInfo().getKeyList();

    for (String key: keys) {

      System.out.print(key);

      System.out.print(" = ");

      System.out.println(harvest.getProductInfo().getString(key));

    }

    // Login

    int iResult = harvest.login(sUser, sPassword);

    --Full log output----------------------------

    CA_ATTRKEY_CLIENT_BUILD = .135

    CA_ATTRKEY_CLIENT_PATCH = 0

    CA_ATTRKEY_CLIENT_VERSION = 7.0

    I00060040: New connection with Broker harvest  established.

    E03020517: Client and server product versions do not match.

    E03090004: ERROR: Login failed.



  • 2.  Re: Version error using JHSDK
    Best Answer

    Posted Nov 03, 2015 07:33 AM

    Hi Roberto,

     

    CA_ATTRKEY_CLIENT_BUILD = .135

    CA_ATTRKEY_CLIENT_PATCH = 0

    CA_ATTRKEY_CLIENT_VERSION = 7.0

     

    Based on  your comments it is clear that, somehow it is picking up 7.x binaries. So please remove 7.x installation/binaries from that machine and try with 12.1.0.141 JHSDK jars/SCM client to connect with 12.1.0.141 server.



  • 3.  Re: Version error using JHSDK

    Posted Nov 04, 2015 03:50 AM

    Greate 

     

    I have the old client installed on my computer and in the system variable "Path" it is put before the new.

    So the sdk uses the old client instead of the new.

     

    Realy thank.

    Roberto