03-13-2017 12:01 AM
Hi experts,
I am trying to connect to UCCE finesse 11.5 to subscribe for XMPP notifications.
ConnectionConfiguration config = new ConnectionConfiguration(server, port, "");
connection = new XMPPConnection(config);
connection.connect();
SASLAuthentication.supportSASLMechanism("PLAIN", 0);
String user=String.format("%s@%s",agent.getAgentId(),server);
connection.login(user, agent.getPassword());
It throws an exception.
SASL authentication failed using mechanism PLAIN:
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:325)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
The Same code is working fine with UCCX 11.5 and prior versions of UCCE and UCCX Finesse. I have tried using both simple username and user@fqdn, but the exception is still there.
Both UCCX and UCCE finesse are on SSL, and I have registered the certificate in JVM using the key tool.
Solved! Go to Solution.
03-14-2017 09:48 PM
Thanks, Denise.
The problem is solved. I was using LoginName instead of LoginId When I used LoginId, It works fine.
03-13-2017 12:30 PM
Hi Kashif,
That is strange that it works in UCCX 11.5, but not UCCE. In Finesse 11.5, there was a slight change made in terms of the SSL/TLS, but since you said it works in UCCX 11.5, I am not sure you are running into that issue.
Can you try the following code:
ConnectionConfiguration config = new ConnectionConfiguration(server, port, "");
config.setSASLAuthenticationEnabled(false);
connection = new XMPPConnection(config);
Thanx,
Denise
03-13-2017 09:45 PM
Hi Denise,
I have tried many solutions including you have mentioned but didn't work.
03-14-2017 12:57 AM
We are using UCCX Finesse 11. UCCX Finesse 11.5 was mentioned mistakenly.
It is working fine with finesse 11.
Can you please recommend the way to connect with finesse 11.5. Both for UCCE and UCCX?
03-14-2017 12:05 PM
I just tried the following code and it worked on Finesse/UCCE 11.5:
ConnectionConfiguration config = new ConnectionConfiguration("fqdn", 5222, "");
config.setSASLAuthenticationEnabled(false);
Connection connection = new XMPPConnection(config);
try {
System.out.println("About to connect");
connection.connect();
System.out.println("Connected");
connection.login("agentId", "password");
System.out.println("Logged in. Wait 5 seconds.");
Thread.sleep(5000);
connection.disconnect();
System.out.println("Disconnected");
} catch (XMPPException e) {
e.printStackTrace();
}
03-14-2017 09:48 PM
Thanks, Denise.
The problem is solved. I was using LoginName instead of LoginId When I used LoginId, It works fine.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide