cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2213
Views
0
Helpful
5
Replies

UCCE Finesse 11.5 XMPP Connection error

kashif.sohail
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

kashif.sohail
Level 1
Level 1

Thanks, Denise.

The problem is solved. I was using LoginName instead of LoginId When I used LoginId, It works fine.

View solution in original post

5 Replies 5

dekwan
Cisco Employee
Cisco Employee

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

Hi Denise,

I have tried many solutions including you have mentioned but didn't work.

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?

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();

  }

kashif.sohail
Level 1
Level 1

Thanks, Denise.

The problem is solved. I was using LoginName instead of LoginId When I used LoginId, It works fine.