You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by dorinc <do...@gmail.com> on 2014/10/24 17:46:59 UTC

MQLight with Apache Qpid JMS AMQP 1.0

Hello, 

I'm attempting to connect to MQLight with the Qpid JMS API for AMQP 1.0.

The code (in *Scala*): 
    /val host = "localhost"
    val port = 5672
    val user = "guest"
    val pass = "guest"
    val isSSL = false
    val clientId = "test-client"

    val connectionFactory = new ConnectionFactoryImpl(host, port, user,
pass, clientId, isSSL)
    val connection = connectionFactory.createConnection()

    val session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE )
/

The exception I'm getting: 
/Exception in thread "main" javax.jms.JMSException: AMQXR0029E: sasl
mechanisms of client and server must match.
	at
org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.<init>(SessionImpl.java:97)
	at
org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:231)
	at
org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:210)
	at com.monitise.s2s.Main$.main(MyRouteMain.scala:26)
	at com.monitise.s2s.Main.main(MyRouteMain.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)/

I'm pretty sure both the client and the server use "PLAIN" sasl mechanism.
This snippet work fine with ActiveMQ, so I'm guessing there must be a
problem with how MQ Light responds. 

BTW, this type of question was already asked on the IBM forums, and they
pointed to the Qpid community for help :)

Thanks for any suggestions!





--
View this message in context: http://qpid.2158936.n2.nabble.com/MQLight-with-Apache-Qpid-JMS-AMQP-1-0-tp7615707.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: MQLight with Apache Qpid JMS AMQP 1.0

Posted by dorinc <do...@gmail.com>.
Thanks Rob. I think I'll post this issue back on the IBM forum. Hopefully it
can be solved soon.

Cheers



--
View this message in context: http://qpid.2158936.n2.nabble.com/MQLight-with-Apache-Qpid-JMS-AMQP-1-0-tp7615707p7615744.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: MQLight with Apache Qpid JMS AMQP 1.0

Posted by Rob Godfrey <ro...@gmail.com>.
Ok - that's really weird...  Looking at the first two lines:

SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
AMQP\x03\x01\x00\x00\x00\x00\x00\x18\x02\x01\x00\x00\x00S@\
xc0\x0b\x01\xe0\x08\x01\xa3\x05PLAIN\x00\x00\x00\x10\x02\
x01\x00\x00\x00SD\xc0\x03\x01P\x01AMQP\x00\x01\x00\x00\
x00\x00\x00(\x02\x00\x00\x00\x00S\x10\xc0\x1b\x05\xa1\
x09PlainText\xa1\x00p\xff\xff\xff\xff`\xff\xffp\x00\x00u0\
x00\x00\x00_\x02\x00\x00\x00\x00S\x18\xc0R\x01\x00S\x1d\
xc0L\x02\xa3\x0bMQException\xa1<AMQXR0029E:
sasl mechanisms of client and server must match.

The client sends the AMQP sasl header, and then receives from the server a
whole bunch of frames up to and including the exception about the
mechanisms not matching... but the client hasn't yet actually sent the
mechanisms.  This looks very much like a bug in MQ Light... it seems to be
expecting that the client connecting to it pipelines every part of the SASL
exchange without even waiting for the server to send the list of
mechanisms, etc.  Since this is how Proton currently works, I can see that
it will work if you connect with a Proton client... however the JMS client
doesn't work like that... it waits to see the set of mechanisms available
so that it can choose the appropriate one.  The ActiveMQ server is acting
more sensibly, and thus works correctly.

Hope this helps,
Rob



On 26 October 2014 10:07, dorinc <do...@gmail.com> wrote:

> Hi Rob,
>
> I used both PLAIN (user/pass) and ANONYMOUS auth mechanisms
> *This is the output for PLAIN*:
> /10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
> 10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] :
> AMQP\x03\x01\x00\x00\x00\x00\x00\x18\x02\x01\x00\x00\x00S@
> \xc0\x0b\x01\xe0\x08\x01\xa3\x05PLAIN\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01AMQP\x00\x01\x00\x00\x00\x00\x00(\x02\x00\x00\x00\x00S\x10\xc0\x1b\x05\xa1\x09PlainText\xa1\x00p\xff\xff\xff\xff`\xff\xffp\x00\x00u0\x00\x00\x00_\x02\x00\x00\x00\x00S\x18\xc0R\x01\x00S\x1d\xc0L\x02\xa3\x0bMQException\xa1<AMQXR0029E:
> sasl mechanisms of client and server must match.
> 10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> SaslMechanisms{saslServerMechanisms=[PLAIN]}
> 10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] FRM -
> SEND[localhost/127.0.0.1:5672|0] :
> SaslInit{mechanism=PLAIN,initialResponse=\x00guest\x00guest}
> 10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=auth}
> 10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] :
>
> \x00\x00\x00#\x02\x01\x00\x00\x00SA\xc0\x16\x02\xa3\x05PLAIN\xa0\x0c\x00guest\x00guest
> 10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
>
> Open{containerId=PlainText,hostname=,maxFrameSize=4294967295,channelMax=65535,idleTimeOut=30000}
> 10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> Close{error=Error{condition=MQException,description=AMQXR0029E: sasl
> mechanisms of client and server must match.}}
> Exception in thread &quot;main&quot; javax.jms.JMSException: AMQXR0029E:
> sasl mechanisms of client and server must match.&lt;/i>
>
> *The output for ANONYMOUS:*
> /10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
> 10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] :
> AMQP\x03\x01\x00\x00\x00\x00\x00\x1c\x02\x01\x00\x00\x00S@
> \xc0\x0f\x01\xe0\x0c\x01\xa3\x09ANONYMOUS\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01AMQP\x00\x01\x00\x00\x00\x00\x00(\x02\x00\x00\x00\x00S\x10\xc0\x1b\x05\xa1\x09PlainText\xa1\x00p\xff\xff\xff\xff`\xff\xffp\x00\x00u0\x00\x00\x00_\x02\x00\x00\x00\x00S\x18\xc0R\x01\x00S\x1d\xc0L\x02\xa3\x0bMQException\xa1<AMQXR0029E:
> sasl mechanisms of client and server must match.
> 10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> SaslMechanisms{saslServerMechanisms=[ANONYMOUS]}
> 10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] FRM -
> SEND[localhost/127.0.0.1:5672|0] : SaslInit{mechanism=ANONYMOUS}
> 10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=auth}
> 10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] :
> \x00\x00\x00\x19\x02\x01\x00\x00\x00SA\xc0\x0c\x01\xa3\x09ANONYMOUS
> 10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
>
> Open{containerId=PlainText,hostname=,maxFrameSize=4294967295,channelMax=65535,idleTimeOut=30000}
> 10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> Close{error=Error{condition=MQException,description=AMQXR0029E: sasl
> mechanisms of client and server must match.}}
> &lt;/i>
>
> *I also did the same with Apache MQ without any problems*
> /10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] :
> AMQP\x03\x01\x00\x00\x00\x00\x00"\x02\x01\x00\x00\x00S@
> \xc0\x15\x01\xe0\x12\x02\xa3\x09ANONYMOUS\x05PLAIN
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> SaslMechanisms{saslServerMechanisms=[ANONYMOUS, PLAIN]}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
> SEND[localhost/127.0.0.1:5672|0] :
> SaslInit{mechanism=PLAIN,initialResponse=\x00admin\x00admin}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] :
>
> \x00\x00\x00#\x02\x01\x00\x00\x00SA\xc0\x16\x02\xa3\x05PLAIN\xa0\x0c\x00admin\x00admin
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] :
> \x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x00
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=ok}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] : AMQP\x00\x01\x00\x00
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] : AMQP\x00\x01\x00\x00
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
> SEND[localhost/127.0.0.1:5672|0] :
> Open{containerId=test-client,maxFrameSize=65536,channelMax=255}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] :
> \x00\x00\x00$\x02\x00\x00\x00\x00S\x10\xc0\x17\x04\xa1\x0btest-client@p
> \x00\x01\x00\x00`\x00\xff
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
> [localhost/127.0.0.1:5672] :
>
> \x00\x00\x00\x17\x02\x00\x00\x00\x00S\x10\xc0\x0a\x03\xa1\x00\xa1\x00p\x00\x10\x00\x00
> 10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
> RECV[localhost/127.0.0.1:5672|0] :
> Open{containerId=,hostname=,maxFrameSize=1048576}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
> SEND[localhost/127.0.0.1:5672|0] :
>
> Begin{nextOutgoingId=0,incomingWindow=2048,outgoingWindow=2048,handleMax=4294967295}
> 10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
> SEND[localhost/127.0.0.1:5672] :
> \x00\x00\x00\x1f\x02\x00\x00\x00\x00S\x11\xc0\x12\x05@Cp
> \x00\x00\x08\x00p\x00\x00\x08\x00p\xff\xff\xff\xff/
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/MQLight-with-Apache-Qpid-JMS-AMQP-1-0-tp7615707p7615741.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: MQLight with Apache Qpid JMS AMQP 1.0

Posted by dorinc <do...@gmail.com>.
Hi Rob, 

I used both PLAIN (user/pass) and ANONYMOUS auth mechanisms
*This is the output for PLAIN*:
/10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
AMQP\x03\x01\x00\x00\x00\x00\x00\x18\x02\x01\x00\x00\x00S@\xc0\x0b\x01\xe0\x08\x01\xa3\x05PLAIN\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01AMQP\x00\x01\x00\x00\x00\x00\x00(\x02\x00\x00\x00\x00S\x10\xc0\x1b\x05\xa1\x09PlainText\xa1\x00p\xff\xff\xff\xff`\xff\xffp\x00\x00u0\x00\x00\x00_\x02\x00\x00\x00\x00S\x18\xc0R\x01\x00S\x1d\xc0L\x02\xa3\x0bMQException\xa1<AMQXR0029E:
sasl mechanisms of client and server must match.
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
SaslMechanisms{saslServerMechanisms=[PLAIN]}
10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] FRM -
SEND[localhost/127.0.0.1:5672|0] :
SaslInit{mechanism=PLAIN,initialResponse=\x00guest\x00guest}
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=auth}
10/26 10:53:19 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] :
\x00\x00\x00#\x02\x01\x00\x00\x00SA\xc0\x16\x02\xa3\x05PLAIN\xa0\x0c\x00guest\x00guest
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
Open{containerId=PlainText,hostname=,maxFrameSize=4294967295,channelMax=65535,idleTimeOut=30000}
10/26 10:53:19 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
Close{error=Error{condition=MQException,description=AMQXR0029E: sasl
mechanisms of client and server must match.}}
Exception in thread &quot;main&quot; javax.jms.JMSException: AMQXR0029E:
sasl mechanisms of client and server must match.&lt;/i>

*The output for ANONYMOUS:*
/10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
AMQP\x03\x01\x00\x00\x00\x00\x00\x1c\x02\x01\x00\x00\x00S@\xc0\x0f\x01\xe0\x0c\x01\xa3\x09ANONYMOUS\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01AMQP\x00\x01\x00\x00\x00\x00\x00(\x02\x00\x00\x00\x00S\x10\xc0\x1b\x05\xa1\x09PlainText\xa1\x00p\xff\xff\xff\xff`\xff\xffp\x00\x00u0\x00\x00\x00_\x02\x00\x00\x00\x00S\x18\xc0R\x01\x00S\x1d\xc0L\x02\xa3\x0bMQException\xa1<AMQXR0029E:
sasl mechanisms of client and server must match.
10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
SaslMechanisms{saslServerMechanisms=[ANONYMOUS]}
10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] FRM -
SEND[localhost/127.0.0.1:5672|0] : SaslInit{mechanism=ANONYMOUS}
10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=auth}
10/26 11:50:14 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] :
\x00\x00\x00\x19\x02\x01\x00\x00\x00SA\xc0\x0c\x01\xa3\x09ANONYMOUS
10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
Open{containerId=PlainText,hostname=,maxFrameSize=4294967295,channelMax=65535,idleTimeOut=30000}
10/26 11:50:14 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
Close{error=Error{condition=MQException,description=AMQXR0029E: sasl
mechanisms of client and server must match.}}
&lt;/i>

*I also did the same with Apache MQ without any problems*
/10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] : AMQP\x03\x01\x00\x00
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
AMQP\x03\x01\x00\x00\x00\x00\x00"\x02\x01\x00\x00\x00S@\xc0\x15\x01\xe0\x12\x02\xa3\x09ANONYMOUS\x05PLAIN
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
SaslMechanisms{saslServerMechanisms=[ANONYMOUS, PLAIN]}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
SEND[localhost/127.0.0.1:5672|0] :
SaslInit{mechanism=PLAIN,initialResponse=\x00admin\x00admin}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] :
\x00\x00\x00#\x02\x01\x00\x00\x00SA\xc0\x16\x02\xa3\x05PLAIN\xa0\x0c\x00admin\x00admin
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x00
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] : SaslOutcome{code=ok}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] : AMQP\x00\x01\x00\x00
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] : AMQP\x00\x01\x00\x00
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
SEND[localhost/127.0.0.1:5672|0] :
Open{containerId=test-client,maxFrameSize=65536,channelMax=255}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] :
\x00\x00\x00$\x02\x00\x00\x00\x00S\x10\xc0\x17\x04\xa1\x0btest-client@p\x00\x01\x00\x00`\x00\xff
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] RAW - RECV
[localhost/127.0.0.1:5672] :
\x00\x00\x00\x17\x02\x00\x00\x00\x00S\x10\xc0\x0a\x03\xa1\x00\xa1\x00p\x00\x10\x00\x00
10/26 10:55:48 DEBUG [QpidConnectionInputThread-0] FRM -
RECV[localhost/127.0.0.1:5672|0] :
Open{containerId=,hostname=,maxFrameSize=1048576}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] FRM -
SEND[localhost/127.0.0.1:5672|0] :
Begin{nextOutgoingId=0,incomingWindow=2048,outgoingWindow=2048,handleMax=4294967295}
10/26 10:55:48 DEBUG [QpidConnectionOutputThread-0] RAW -
SEND[localhost/127.0.0.1:5672] :
\x00\x00\x00\x1f\x02\x00\x00\x00\x00S\x11\xc0\x12\x05@Cp\x00\x00\x08\x00p\x00\x00\x08\x00p\xff\xff\xff\xff/



--
View this message in context: http://qpid.2158936.n2.nabble.com/MQLight-with-Apache-Qpid-JMS-AMQP-1-0-tp7615707p7615741.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: MQLight with Apache Qpid JMS AMQP 1.0

Posted by Rob Godfrey <ro...@gmail.com>.
If you turn protocol logging on for the JMS client (see:
http://mail-archives.apache.org/mod_mbox/qpid-users/201402.mbox/%3CCACsaS94QyZbYrScWNtChgk=Gn3oJDzgSL5sk5rrNVoJ9iZj7Eg@mail.gmail.com%3E
for an explanation of how to do that) what do you see? ... it should show
the mechanisms the MQ light server is offering and which the JMS client is
asking for which should shed some light on the problem.

Cheers,
Rob

On 24 October 2014 17:46, dorinc <do...@gmail.com> wrote:

> Hello,
>
> I'm attempting to connect to MQLight with the Qpid JMS API for AMQP 1.0.
>
> The code (in *Scala*):
>     /val host = "localhost"
>     val port = 5672
>     val user = "guest"
>     val pass = "guest"
>     val isSSL = false
>     val clientId = "test-client"
>
>     val connectionFactory = new ConnectionFactoryImpl(host, port, user,
> pass, clientId, isSSL)
>     val connection = connectionFactory.createConnection()
>
>     val session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE
> )
> /
>
> The exception I'm getting:
> /Exception in thread "main" javax.jms.JMSException: AMQXR0029E: sasl
> mechanisms of client and server must match.
>         at
> org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.<init>(SessionImpl.java:97)
>         at
>
> org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:231)
>         at
>
> org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:210)
>         at com.monitise.s2s.Main$.main(MyRouteMain.scala:26)
>         at com.monitise.s2s.Main.main(MyRouteMain.scala)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)/
>
> I'm pretty sure both the client and the server use "PLAIN" sasl mechanism.
> This snippet work fine with ActiveMQ, so I'm guessing there must be a
> problem with how MQ Light responds.
>
> BTW, this type of question was already asked on the IBM forums, and they
> pointed to the Qpid community for help :)
>
> Thanks for any suggestions!
>
>
>
>
>
> --
> View this message in context:
> http://qpid.2158936.n2.nabble.com/MQLight-with-Apache-Qpid-JMS-AMQP-1-0-tp7615707.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>