Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

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

Open

Description

@suhas9844

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions