Title: Version 6.5: java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode · Issue #1906 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Version 6.5: java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode · Issue #1906 · microsoftgraph/msgraph-sdk-java
X Title: Version 6.5: java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode · Issue #1906 · microsoftgraph/msgraph-sdk-java
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...
Open Graph 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...
X 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...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/1906
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 6.5: java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode","articleBody":"### Expected behavior\r\n\r\nThe exception java.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode should not be thrown\r\n\r\nThe msgraph-sdk-java should use the latest kiota version!\r\n\r\n\r\n### Actual behavior\r\njava.lang.NoClassDefFoundError: com/microsoft/kiota/serialization/UntypedNode\r\n\r\njava.lang.ClassNotFoundException: com.microsoft.kiota.serialization.UntypedNode\r\n\r\n\r\n### Steps to reproduce the behavior\r\n\r\n TokenCredential tokenCredential = new ClientCertificateCredentialBuilder().tenantId(tenantId)\r\n .clientId(clientId).pfxCertificate(pfxCertificatePath).clientCertificatePassword(pfxPassword)\r\n .build();\r\n\r\n String[] scopes = new String[] { \"https://graph.microsoft.com/.default\" };\r\n\r\n GraphServiceClient graphClient = new GraphServiceClient(tokenCredential, scopes);\r\n\r\n Application app = graphClient.applications().byApplicationId(\"\u003cmy app id>\").get();\r\n\r\n### Workaround:\r\n\r\nAdd in pom the latest kiota:\r\n\r\n\u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-abstractions\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-authentication-azure\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-http-okHttp\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-serialization-json\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-serialization-text\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-serialization-form\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n \u003cdependency>\r\n \u003cgroupId>com.microsoft.kiota\u003c/groupId>\r\n \u003cartifactId>microsoft-kiota-serialization-multipart\u003c/artifactId>\r\n \u003cversion>1.1.2\u003c/version>\r\n \u003c/dependency>\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/vipetrov-bg","@type":"Person","name":"vipetrov-bg"},"datePublished":"2024-03-28T11:42:11Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/1906"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e8d0d0f-b4d0-854d-3971-a1a8817e5912 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8AC:75F55:59F33:7B9E2:6AF6B7DB |
| html-safe-nonce | ce66291d2e4be07b4a6294ff532e9aef663324805bcf0bfa2ac2c6b2c7b974fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEFDOjc1RjU1OjU5RjMzOjdCOUUyOjZBRjZCN0RCIiwidmlzaXRvcl9pZCI6IjIwNjM1MzYzNDUwMzU3NDkzMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 16c8b0cd11973625a90f6538ef80f59a2fce33c997d34c4c85731ffb98e6b609 |
| hovercard-subject-tag | issue:2213007752 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/1906/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4942648ce9af78e7bb8c9bbcd5122de099dbd4e3cd36bea3e2418c8675c1b8b7/microsoftgraph/msgraph-sdk-java/issues/1906 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4942648ce9af78e7bb8c9bbcd5122de099dbd4e3cd36bea3e2418c8675c1b8b7/microsoftgraph/msgraph-sdk-java/issues/1906 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vipetrov-bg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8dfae1499400ee498ab0f86538d1c034e6c1b4f51c63ecade775c3b0894e3379 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 103300409 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 103300409 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ee168845eb2be91203b179104ac9977fe4ea69a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width