I am accessing the Azure blob from spring boot application as mentioned in the documentation, I have included the following JAR,
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>12.12.0</version>
</dependency>
Then I am using the following code to list down files in Azure blob,
BlobContainerClient blobContainerClient = new BlobContainerClientBuilder()
.endpoint(fileServerURL + "/" + containerName + "/test/123" + "?" + sasToken)
.buildClient();
I am accessing the blob inside the container and listing the files,
blobContainerClient.listBlobs()
.stream().<<mycode>>
When I try to debug, breakpoints runs after line 2, exactly at the .endpoint() method call. No stacktrace which is weird (I tried to enclose within try/catch) but no use. I get the following exception in the client,
Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.azure.storage.blob.implementation.util.ModelHelper