Wasn't sure where else to log this hopefully this will at least help any one searching for this on Google/Bing.
We have identified that KB3155464 (https://support.microsoft.com/en-us/kb/3155464) breaks Service Bus For Windows 1.1 for Java AMQP clients. In our case it was using the Mule ESB Windows Service Bus connector but it is just Apache Qpid under the hood so
will probably be more wide spread. I haven't tried but I suspect the example documented at https://msdn.microsoft.com/en-us/library/dn574799.aspx will reproduce the issue outside of Mule ESB.
The work around is to apply the registry opt-out listed in the KB article. Service Bus only seems to accept TLSv1.0 connections so this probably does mean that connections can't be considered secure any more so a fix is probably needed at either the Java or .NET end. We will also be logging with with Mule ESP support.
Environments affected:
1) Windows Server 2012 R2, fully patched, .NET 4.6. Oracle Java 1.8u92.
2) Windows 7 64-bit, fully patched, .NET 4.6. Oracle Java 1.8u92.
Logs from Mule ESB for reference (and google):
WARN 2016-05-16 12:36:26,250 [DefaultMessageListenerContainer-362] org.springframework.jms.listener.DefaultMessageListenerContainer: Setup of JMS message listener invoker failed for destination 'org.apache.qpid.amqp_1_0.jms.impl.QueueImpl@ed015225'
- trying to recover. Cause: An AMQP error occurred (condition='amqp:connection:forced')..TrackingId:22fdc6ec9a6744da834d756472ec2038_GSERVERNAME,TimeStamp:16/05/2016 2:36:21 AM
WARN 2016-05-16 12:36:31,282 [DefaultMessageListenerContainer-363] org.springframework.jms.listener.DefaultMessageListenerContainer: Setup of JMS message listener invoker failed for destination 'org.apache.qpid.amqp_1_0.jms.impl.QueueImpl@ed015225' -
trying to recover. Cause: An AMQP error occurred (condition='amqp:connection:forced')..TrackingId:22fdc6ec9a6744da834d756472ec2038_GSERVERNAME,TimeStamp:16/05/2016 2:36:26 AM
And on other machines it comes through as a timeout error instead:
WARN 2016-05-20 16:18:38,082 [DefaultMessageListenerContainer-69] org.springframework.jms.listener.DefaultMessageListenerContainer: Setup of JMS message listener invoker failed for destination 'org.apache.qpid.amqp_1_0.jms.impl.QueueImpl@ed015225'
- trying to recover. Cause: Timeout waiting for attach
javax.jms.JMSException: Timeout waiting for attach
at org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.createClientReceiver(MessageConsumerImpl.java:178) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.<init>(MessageConsumerImpl.java:129) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.<init>(MessageConsumerImpl.java:89) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createConsumer(SessionImpl.java:435) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createConsumer(SessionImpl.java:406) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createConsumer(SessionImpl.java:59) ~[?:?]
at org.springframework.jms.listener.AbstractMessageListenerContainer.createConsumer(AbstractMessageListenerContainer.java:834) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.createListenerConsumer(AbstractPollingMessageListenerContainer.java:206) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.initResourcesIfNecessary(DefaultMessageListenerContainer.java:1167) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1143) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1136) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1033) ~[spring-jms-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_79]
Caused by: org.apache.qpid.amqp_1_0.client.ConnectionErrorException: Timeout waiting for attach
at org.apache.qpid.amqp_1_0.client.Receiver.<init>(Receiver.java:187) ~[?:?]
at org.apache.qpid.amqp_1_0.client.Session.createReceiver(Session.java:281) ~[?:?]
at org.apache.qpid.amqp_1_0.client.Session.createReceiver(Session.java:192) ~[?:?]
at org.apache.qpid.amqp_1_0.jms.impl.MessageConsumerImpl.createClientReceiver(MessageConsumerImpl.java:166) ~[?:?]
... 12 more