我不是很习惯java世界,所以我不确定我的问题是在我的Azure设置或java设置。尝试下面的教程后,我收到以下异常。Java连接到azure事件中心:SunCertPathBuilderException
host.registerEventProcessor(EventProcessor.class, options).get();
我做教程的.NET版本的小问题:
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
例外这条线从样品中发生。在这种情况下发送和接收作品。任何见解?过去几天我一直在摸索着,没有运气。
你能分享正在使用的conectionString的格式吗?还要确保你在最新版本。 – Sreeram
@Sreeram Im使用AZURE UI中提供的密钥 - 长字母数字后跟'=' – Seth