" /> [Resolved --] Platform SDK JAVA 7.5 - Genesys CTI User Forum

Author Topic: [Resolved --] Platform SDK JAVA 7.5  (Read 5108 times)

Offline Xavier

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
[Resolved --] Platform SDK JAVA 7.5
« on: June 16, 2009, 04:16:53 PM »
Advertisement
Hello Everyone,

a new problem today with the java SDK 7.5.
I try to connect to Config server and to retrieve AgentGroup information.
But I can't even connect, examples docs about COM AB is about SDK 7.6 and it seems really different...


Here is my problem :
[code]
Exception in thread "main" java.lang.NoSuchMethodError: com.genesyslab.platform.applicationblocks.commons.broker.EventBrokerService.<init>(Lcom/genesyslab/platform/commons/protocol/MessageReceiver;)V
       at com.genesyslab.platform.applicationblocks.com.ConfService.<init>(Unknown Source)
       at com.genesyslab.platform.applicationblocks.com.ConfServiceFactory.createConfService(Unknown Source)
       at safir_cti_agent_groups.ConfServer.<init>(ConfServer.java:50)
       at safir_cti_agent_groups.Main.main(Main.java:23)
[/code]

And here is my code :
The error is from this line :  cfgService = ConfServiceFactory.createConfService(cfgServiceProtocol);
[code]
       configServerHost=host;
       configServerPort=port;
       userName=login;
       password=pwd;
       clientName=appName;
       this.nomProtocol=nomProtocol;
       try {
           cfgServiceProtocol=new ConfServerProtocol(new Endpoint(new URI("tcp://" + configServerHost + ":" + configServerPort)));
           cfgServiceProtocol.setClientName(clientName);
           cfgServiceProtocol.setUserName(userName);
           cfgServiceProtocol.setUserPassword(password);
           cfgServiceProtocol.setClientType(ConfServerClientType.SCE);

           cfgServiceProtocol.open();

           cfgService = ConfServiceFactory.createConfService(cfgServiceProtocol);
       } catch (URISyntaxException ex) {
           ex.printStackTrace();
       }
[/code]

So if someone got a clue ;-)
« Last Edit: June 17, 2009, 03:30:52 PM by Xavier »

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Platform SDK JAVA 7.5
« Reply #1 on: June 16, 2009, 08:39:51 PM »
Hi,

If I'm not wrong Configuration Object Model (COM) requires another application block - Message Broker AB - to work properly.

R.

Offline Xavier

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Platform SDK JAVA 7.5
« Reply #2 on: June 17, 2009, 07:35:25 AM »
Hi René,

Thank you for your answer, but I already put message broker library.
I should have put my java input in my previous post.

Here there are :
[code]
import com.genesyslab.platform.applicationblocks.com.ConfService;
import com.genesyslab.platform.applicationblocks.com.ConfServiceFactory;
import com.genesyslab.platform.applicationblocks.com.ConfigException;
import com.genesyslab.platform.commons.protocol.Endpoint;
import com.genesyslab.platform.commons.protocol.MessageReceiverSupport;
import com.genesyslab.platform.commons.protocol.ProtocolException;
import com.genesyslab.platform.configuration.protocol.ConfServerProtocol;
import com.genesyslab.platform.configuration.protocol.confserver.ConfServerClientType;
import java.net.URI;
import java.net.URISyntaxException;
[/code]

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Platform SDK JAVA 7.5
« Reply #3 on: June 17, 2009, 01:15:12 PM »
Hi,

I saw on Genesys Forum that Chris explained where the problem is already :)

R.

Offline Xavier

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: [Resolved] Platform SDK JAVA 7.5
« Reply #4 on: June 17, 2009, 03:30:23 PM »
Thank you again René.

Yes I put my problem also on the Genesys Forum.

To resume, no Configuration Object Model Application Bloc for SDK 7.5.
The solution are upgrading to SDK 7.6 or using XML...

Eventually do you know a good example for SDK 7.5 presenting the requesting of config server to retrieve tenant, agent and agent group information ?