本文介绍了Windows服务总线错误:对等方未为链接,目标:创建远程端点,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在尝试使用提供的示例连接到Windows服务总线微软网站,尝试使用来自Java的AMQP连接服务总线

I am trying to connect to windows service bus using, the example provided on microsoft website, trying to connect the service bus using AMQP from java

private String SbConnStrACS = "amqps://" + SbUsername + ":" + encode(SbPassword) + "@" + SbDomain;
private String SbQueueName = SbNamespace + "/testq";

我正在使用以下版本的库

I am using below versions of libraries

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-jms_1.1_spec</artifactId>
    <version>1.1.1</version>
</dependency>
<dependency>
    <groupId>org.apache.qpid</groupId>
    <artifactId>qpid-amqp-1-0-client-jms</artifactId>
    <version>0.22</version>
</dependency>

但我遇到错误:

 javax.jms.JMSException: Peer did not create remote endpoint for link, target: sbns/test
at org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.<init>(MessageProducerImpl.java:77)
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createProducer(SessionImpl.java:348)
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.createProducer(SessionImpl.java:63)
at test.servicebus.SimpleSenderReceiver.<init>(SimpleSenderReceiver.java:36)
at test.servicebus.Main.main(Main.java:22)

对于Azure Service总线上的完全相同的错误是从队列中删除partitioned flag ,但是对于Windows服务总线,我是找不到任何这样的标志

For the exact same error on Azure Service bus is to remove partitioned flag from the queues, but for windows service bus I am not able to find any such flag

我还能尝试什么?

推荐答案

在注册表中进行以下更改解决了该问题(感谢Microsoft对此的支持)

Below change in registry resolved the issue (thanks to Microsoft support for this)

reg添加HKLM \ SOFTWARE \ Microsoft.NETFramework \ v4.0.30319/v SchSendAuxRecord/t REG_DWORD/d 0x00000000/f

reg add HKLM\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /v SchSendAuxRecord /t REG_DWORD /d 0x00000000 /f

这篇关于Windows服务总线错误:对等方未为链接,目标:创建远程端点,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 21:46