Java连接到azure事件中心:SunCertPathBuilderException

Set*_*eth 10 java azure azure-eventhub

我不习惯java世界,所以我不确定我的问题是在我的Azure设置还是java设置上.尝试下面的教程后,我收到以下异常.

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-java-get-started-receive-eph

Failure while registering:     
com.microsoft.azure.eventprocessorhost.EPHConfigurationException:   
Encountered error while fetching the list of EventHub PartitionIds: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
Run Code Online (Sandbox Code Playgroud)

在样本的这一行中发生异常:

 host.registerEventProcessor(EventProcessor.class, options).get();
Run Code Online (Sandbox Code Playgroud)

我做了教程的.NET版本没什么问题.在这种情况下发送和接收工作.任何见解?过去几天我一直在摸索,没有运气.

Set*_*eth 0

事实证明这是一个愚蠢的网络问题。amqp 端口仅列入白名单。