cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3813
Views
1
Helpful
2
Replies

SASLError using PLAIN: not-authorized Error while conecting to Cisco-pxgrid

partha.c
Level 1
Level 1

Looking for suggestion, for the following error that i get while connecting to to Cisco-Pxgrid via pxgrid-sdk-1.0.3.37.

The Error is given below:

05:46:22.071 [Thread-1] DEBUG com.cisco.pxgrid.ReconnectionManager - Retry connect failed

com.cisco.pxgrid.GCLException: SASLError using PLAIN: not-authorized

        at com.cisco.pxgrid.GridConnection.connect(GridConnection.java:204) ~[pxgrid-gcl-1.0.3.37.jar:1.0.3.37]

        at com.cisco.pxgrid.ReconnectionManager$ConnectionLoop.run(ReconnectionManager.java:82) ~[pxgrid-gcl-1.0.3.37.jar:1.0.3.37]

Caused by: com.cisco.pxgrid.GCLException: SASLError using PLAIN: not-authorized

        at com.cisco.pxgrid.Configuration.connect(Configuration.java:271) ~[pxgrid-gcl-1.0.3.37.jar:1.0.3.37]

        at com.cisco.pxgrid.GridConnection.connect(GridConnection.java:127) ~[pxgrid-gcl-1.0.3.37.jar:1.0.3.37]

        ... 1 common frames omitted

Caused by: org.jivesoftware.smack.sasl.SASLErrorException: SASLError using PLAIN: not-authorized

        at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthentication.java:365) ~[smack-core-4.1.0.jar:4.1.0]

        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1033) ~[smack-tcp-4.1.0.jar:4.1.0]

        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPConnection.java:937) ~[smack-tcp-4.1.0.jar:4.1.0]

        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:952) ~[smack-tcp-4.1.0.jar:4.1.0]

        at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_101]

2 Replies 2

aessiari
Level 1
Level 1

Hi,

The error is misleading. This is more of a certificate issue.

Please make sure the client use a certificate that is trusted by the server.

tlz
Level 1
Level 1

Hi

Don't provide a password parameter. Then Certificate based authentication is used.

Otherwise always tried password based (plain), whichndoes not work..

HTH

Regards, Thomas

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: