我不是很習慣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