I am running the .12 release of a java qpid broker. I am trying to access it
via a rabbitmq java client. When not using SSL, this works well and I am able
to send and receive a msg on the client. When I enable SSL and try to connect
to the SSL port on the broker, I get a SocketTimeOutException on the client
side. Tracing through the rabbitMQ code – it looks like this occurs when the
client tries sending just the AMQP header. On the qpid broker, this error is
thrown in the log:
ERROR [MINANetworkDriver(Acceptor)-15] (MINANetworkDriver.java:315) - Exception
thrown and no ProtocolEngine to handle it
java.lang.NullPointerException
at
org.apache.qpid.transport.network.mina.MINANetworkDriver.messageReceived(MINANetworkDriver.java:337)
at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:703)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:362)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1200(AbstractIoFilterChain.java:54)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:800)
at
org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:243)
at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:305)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:680)
---------------------------
My sample client code looks like this: (the client hangs on
factory.newConnection();, and eventually the socket times out)
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("10.1.21.21");
factory.setPort(8672);
factory.setVirtualHost("10.1.21.21");
factory.useSslProtocol("TLS");
Connection conn = factory.newConnection();
Channel channel = conn.createChannel();
…
---------------------
Any help would be greatly appreciated!
-Joe