Skip to content

Version 6.5: java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode #1906

@vipetrov-bg

Description

@vipetrov-bg

Expected behavior

The exception java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode should not be thrown

The msgraph-sdk-java should use the latest kiota version!

Actual behavior

java.lang.NoClassDefFoundError: com/microsoft/kiota/serialization/UntypedNode

java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode

Steps to reproduce the behavior

TokenCredential tokenCredential = new ClientCertificateCredentialBuilder().tenantId(tenantId)
.clientId(clientId).pfxCertificate(pfxCertificatePath).clientCertificatePassword(pfxPassword)
.build();

String[] scopes = new String[] { "https://graph.microsoft.com/.default" };

GraphServiceClient graphClient = new GraphServiceClient(tokenCredential, scopes);

Application app = graphClient.applications().byApplicationId("<my app id>").get();

Workaround:

Add in pom the latest kiota:

com.microsoft.kiota
microsoft-kiota-abstractions
1.1.2


com.microsoft.kiota
microsoft-kiota-authentication-azure
1.1.2


com.microsoft.kiota
microsoft-kiota-http-okHttp
1.1.2


com.microsoft.kiota
microsoft-kiota-serialization-json
1.1.2


com.microsoft.kiota
microsoft-kiota-serialization-text
1.1.2


com.microsoft.kiota
microsoft-kiota-serialization-form
1.1.2


com.microsoft.kiota
microsoft-kiota-serialization-multipart
1.1.2

Metadata

Metadata

Assignees

Labels

bugjavaPull requests that update Java code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions