-
Notifications
You must be signed in to change notification settings - Fork 145
Description
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