cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
912
Views
0
Helpful
5
Replies
Highlighted
Beginner

UCCE Finesse 11.5 XMPP Connection error

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.

Everyone's tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: UCCE Finesse 11.5 XMPP Connection error

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
Highlighted
Cisco Employee

Re: UCCE Finesse 11.5 XMPP Connection error

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

Highlighted
Beginner

Re: UCCE Finesse 11.5 XMPP Connection error

Hi Denise,

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

Highlighted
Beginner

Re: UCCE Finesse 11.5 XMPP Connection error

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?

Highlighted
Cisco Employee

Re: UCCE Finesse 11.5 XMPP Connection error

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

  }

Highlighted
Beginner

Re: UCCE Finesse 11.5 XMPP Connection error

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

This widget could not be displayed.