Title: Getting crash in Android OS 7 · Issue #542 · microsoftgraph/msgraph-sdk-java · GitHub
Open Graph Title: Getting crash in Android OS 7 · Issue #542 · microsoftgraph/msgraph-sdk-java
X Title: Getting crash in Android OS 7 · Issue #542 · microsoftgraph/msgraph-sdk-java
Description: While in process of uploading file to OneDrive, we are getting crash on device OS 7. We couldn't verify this crash on Android OS level below 7 as we get the crash in CalenderSerializer before this flow kicks in. Crash logs are as follow:...
Open Graph Description: While in process of uploading file to OneDrive, we are getting crash on device OS 7. We couldn't verify this crash on Android OS level below 7 as we get the crash in CalenderSerializer before this ...
X Description: While in process of uploading file to OneDrive, we are getting crash on device OS 7. We couldn't verify this crash on Android OS level below 7 as we get the crash in CalenderSerializer before t...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/542
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting crash in Android OS 7","articleBody":"While in process of uploading file to OneDrive, we are getting crash on device OS 7. **We couldn't verify this crash on Android OS level below 7 as we get the crash in CalenderSerializer before this flow kicks in.**\r\n\r\nCrash logs are as follow:\r\n--------- beginning of crash 10-15 10:32:12.228 13689 13689 E AndroidRuntime: FATAL EXCEPTION: main 10-15 10:32:12.228 13689 13689 E AndroidRuntime: Process: com.adobe.reader, PID: 13689 10-15 10:32:12.228 13689 13689 E AndroidRuntime: java.lang.NoSuchMethodError: No interface method getTypeName()Ljava/lang/String; in class Ljava/lang/reflect/Type; or its super classes (declaration of 'java.lang.reflect.Type' appears in /system/framework/core-oj.jar) 10-15 10:32:12.228 13689 13689 E AndroidRuntime: at com.microsoft.graph.serializer.CollectionPageSerializer.deserialize(CollectionPageSerializer.java:115) 10-15 10:32:12.228 13689 13689 E AndroidRuntime: at com.microsoft.graph.serializer.GsonFactory$12.deserialize(GsonFactory.java:229) 10-15 10:32:12.228 13689 13689 E AndroidRuntime: at com.microsoft.graph.serializer.GsonFactory$12.deserialize(GsonFactory.java:224) 10-15 10:32:12.228 13689 13689 E AndroidRuntime: at \r\n\r\n### Expected behavior\r\nIt shouldn't crash and handle newer apis with fallback mechanish or apis that is supported in older OS version\r\n\r\n### Devices tested where issue is observed:\r\nAsus Tab, Samsung J7, Samsung Tab A, Galaxy S6\r\n\r\n### Cause\r\nAfter some analysis, I found that crash is originating from CollectionPageSerializer which is being registered into Gson type adapter and which in function deserialize calls the method Type#getTypeName() which is a default method added after Java 1.8\r\n\r\n\r\nAlso can we make gson variable in DefaultSerializer public so that while configuring the graph client we can replace these problematic TypeAdapters with the custom solution. Like in case of when XXX is not supported in simpleDateFormat then same can be replaced with joda-time as we already have that dependency. Similarly in this case as well usage of getTypeName() can be replace with getName() or getCannonicalName() as to avoid crash\r\n\r\n\r\n","author":{"url":"https://github.com/atulgpt","@type":"Person","name":"atulgpt"},"datePublished":"2020-10-15T07:53:14Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/542"}
| 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:5c246faf-8106-2865-2808-d7ca3616ed5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B19A:226126:13FDC95:1AAFA54:6B052D2D |
| html-safe-nonce | 84a4db6aea64e4c262c7d98b8a9ff96031317e085f1e29562c3cde1fb2aeb41b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTlBOjIyNjEyNjoxM0ZEQzk1OjFBQUZBNTQ6NkIwNTJEMkQiLCJ2aXNpdG9yX2lkIjoiMTQwMTg1MDM3MTk5NTE1MTY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0736bd5a6166cec5dc1c5803f0297ec01eeab7bb027f3a68d94560243025ca0d |
| hovercard-subject-tag | issue:722092489 |
| 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/542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3fa0644933db85bfaaa6a5b165c808b1b582803b727467c4c68585c050fce7e/microsoftgraph/msgraph-sdk-java/issues/542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3fa0644933db85bfaaa6a5b165c808b1b582803b727467c4c68585c050fce7e/microsoftgraph/msgraph-sdk-java/issues/542 |
| og:image:alt | While in process of uploading file to OneDrive, we are getting crash on device OS 7. We couldn't verify this crash on Android OS level below 7 as we get the crash in CalenderSerializer before this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | atulgpt |
| 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