Cannot connect to broke:SASL negotiation has not been completed-cannot proceed with connection open
阿新 • • 發佈:2018-11-01
原因:可能時安裝的Qpid版本問題(遇到的情況是該情況)
解決方式:嘗試安裝不同的版本Qpid
Qpid producer在啟動的時候報錯:
org.apache.qpid.AMQException: Cannot connect to broker (tcp://192.168.xx.xx:5672): SASL negotiation has not been completed - cannot proceed with connection open at org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:270) at org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:816) at org.apache.qpid.client.AMQConnection.makeConnection(AMQConnection.java:583) at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:522) at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:132) at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:57) at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:365) at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:305) at org.springframework.jms.connection.SingleConnectionFactory.getConnection(SingleConnectionFactory.java:283) at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:224) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180) at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:413) at org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:381) at org.springframework.jms.listener.DefaultMessageListenerContainer.establishSharedConnection(DefaultMessageListenerContainer.java:803) at org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:285) at org.springframework.jms.listener.AbstractJmsListeningContainer.start(AbstractJmsListeningContainer.java:270) at org.springframework.jms.listener.DefaultMessageListenerContainer.start(DefaultMessageListenerContainer.java:598) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) at com.gosuncn.vgis.AutoGatewayApplication.main(AutoGatewayApplication.java:13) Caused by: org.apache.qpid.transport.ConnectionException: SASL negotiation has not been completed - cannot proceed with connection open at org.apache.qpid.transport.ConnectionException.rethrow(ConnectionException.java:67) at org.apache.qpid.transport.Connection.connect(Connection.java:278) at org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:240) ... 31 common frames omitted Caused by: org.apache.qpid.transport.ConnectionException: SASL negotiation has not been completed - cannot proceed with connection open at org.apache.qpid.transport.Connection.exception(Connection.java:555) at org.apache.qpid.transport.ClientDelegate.connectionTune(ClientDelegate.java:143) at org.apache.qpid.transport.ClientDelegate.connectionTune(ClientDelegate.java:46) at org.apache.qpid.transport.ConnectionTune.dispatch(ConnectionTune.java:91) at org.apache.qpid.transport.ConnectionDelegate.control(ConnectionDelegate.java:50) at org.apache.qpid.transport.ConnectionDelegate.control(ConnectionDelegate.java:41) at org.apache.qpid.transport.Method.delegate(Method.java:156) at org.apache.qpid.transport.Connection.received(Connection.java:401) at org.apache.qpid.transport.network.Assembler.emit(Assembler.java:98) at org.apache.qpid.transport.network.Assembler.assemble(Assembler.java:189) at org.apache.qpid.transport.network.Assembler.frame(Assembler.java:132) at org.apache.qpid.transport.network.Frame.delegate(Frame.java:128) at org.apache.qpid.transport.network.Assembler.received(Assembler.java:103) at org.apache.qpid.transport.network.InputHandler.next(InputHandler.java:204) at org.apache.qpid.transport.network.InputHandler.received(InputHandler.java:119) at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:164) at java.lang.Thread.run(Thread.java:745) Caused by: javax.security.sasl.SaslException: SASL negotiation has not been completed - cannot proceed with connection open at org.apache.qpid.transport.ClientDelegate.verifySaslNegotiationComplete(ClientDelegate.java:246) at org.apache.qpid.transport.ClientDelegate.connectionTune(ClientDelegate.java:139) ... 15 common frames omitted