Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Xavier on June 16, 2009, 04:16:53 PM
-
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 ;-)
-
Hi,
If I'm not wrong Configuration Object Model (COM) requires another application block - Message Broker AB - to work properly.
R.
-
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]
-
Hi,
I saw on Genesys Forum that Chris explained where the problem is already :)
R.
-
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 ?