Azure / azure-storage-java

Microsoft Azure Storage Library for Java
https://docs.microsoft.com/en-us/java/api/overview/azure/storage
MIT License
189 stars 165 forks source link

NoClassDefFoundError for com.azure.core.http.policy.HttpLoggingPolicy #545

Open suhas9844 opened 4 years ago

suhas9844 commented 4 years ago

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the SDK was used?

Please note that if your issue is with v11, we are recommending customers either move back to v11 or move to v12 (currently in preview) if at all possible. Hopefully this resolves your issue, but if there is some reason why moving away from v11 is not possible at this time, please do continue to ask your question and we will do our best to support you. The README for this SDK has been updated to point to more information on why we have made this decision. 12.6.1

What problem was encountered?

When using blob storage sdk with com.microsoft.azure.sdk.iot iot device client sdk, I get the below NoclassDefError.

java.lang.NoClassDefFoundError: Could not initialize class com.azure.core.http.policy.HttpLoggingPolicy

When trying to connect to blob storage account like below: BlobServiceClient blobServiceClient = new BlobServiceClientBuilder().connectionString(connectionString).buildClient(); BlobContainerClient containerClient = blobServiceClient.getBlobContainerClient(blobContainername);

Have you found a mitigation/solution?

No