Title: ClassCastException on get calendars and calendar view request with java client · Issue #635 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: ClassCastException on get calendars and calendar view request with java client · Issue #635 · microsoftgraph/msgraph-sdk-java
X Title: ClassCastException on get calendars and calendar view request with java client · Issue #635 · microsoftgraph/msgraph-sdk-java
Description: Expected behavior microsoft-graph client version 1.6.0 https://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-beta&tabs=java iEventCollectionNextPage = graphServiceClient .me() .calendars() .byId(doodleCalendar...
Open Graph Description: Expected behavior microsoft-graph client version 1.6.0 https://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-beta&tabs=java iEventCollectionNextPage = graphServiceClient...
X Description: Expected behavior microsoft-graph client version 1.6.0 https://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-beta&tabs=java iEventCollectionNextPage = graphServiceCl...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/635
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ClassCastException on get calendars and calendar view request with java client","articleBody":"### Expected behavior\r\nmicrosoft-graph client version 1.6.0\r\nhttps://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-beta&tabs=java\r\n\r\n```\r\n iEventCollectionNextPage =\r\n graphServiceClient\r\n .me()\r\n .calendars()\r\n .byId(doodleCalendar.getProviderId())\r\n .calendarView()\r\n .buildRequest(requestOptions)\r\n .get();\r\n```\r\nto return a valid IEventCollectionNextPage object\r\n\r\nand similar thing happens for `CalendarCollectionRequest.get`\r\n\r\n### Actual behavior\r\n\r\n`java.lang.ClassCastException: class java.io.BufferedInputStream cannot be cast to class com.microsoft.graph.requests.extensions.EventCollectionResponse (java.io.BufferedInputStream is in module java.base of loader 'bootstrap'; com.microsoft.graph.requests.extensions.EventCollectionResponse is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @5034c75a)\r\n at com.microsoft.graph.requests.extensions.EventCollectionRequest.get(EventCollectionRequest.java:52)`\r\n\r\n\r\nand \r\n\r\n`java.lang.ClassCastException: class java.io.BufferedInputStream cannot be cast to class com.microsoft.graph.requests.extensions.CalendarCollectionResponse (java.io.BufferedInputStream is in module java.base of loader 'bootstrap'; com.microsoft.graph.requests.extensions.CalendarCollectionResponse is in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @5034c75a)\r\n at com.microsoft.graph.requests.extensions.CalendarCollectionRequest.get(CalendarCollectionRequest.java:52)`\r\n\r\n### Steps to reproduce the behavior\r\njust try to execute the mentioned api call using a Java client\r\n\r\n\r\n\r\n\r\n\r\n \r\n[AB#7898](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/7898)","author":{"url":"https://github.com/megicivovic","@type":"Person","name":"megicivovic"},"datePublished":"2021-01-30T18:57:49Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/635"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:de33cc3c-63c2-26aa-dcba-e891a72c0697 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF66:1E9A:13BDA00:1A75F61:6B0537F5 |
| html-safe-nonce | 28284d13bbe46ee1921aed3619e947cb34f5bfb5053fd8d83640a7318bcbde3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY2OjFFOUE6MTNCREEwMDoxQTc1RjYxOjZCMDUzN0Y1IiwidmlzaXRvcl9pZCI6Ijc1NzM5ODE4NjgyOTU3OTY3MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 419e8c3a73e5912e6fe9d98c549e054296a50abeed42a505396ed924b5abe414 |
| hovercard-subject-tag | issue:797505118 |
| 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/635/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07c9bc31b635d392e614b086269d44d86a3b50e0a8d8d1b3e396b15e5c2c58de/microsoftgraph/msgraph-sdk-java/issues/635 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07c9bc31b635d392e614b086269d44d86a3b50e0a8d8d1b3e396b15e5c2c58de/microsoftgraph/msgraph-sdk-java/issues/635 |
| og:image:alt | Expected behavior microsoft-graph client version 1.6.0 https://docs.microsoft.com/en-us/graph/api/user-list-calendarview?view=graph-rest-beta&tabs=java iEventCollectionNextPage = graphServiceClient... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | megicivovic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width