René's URL Explorer Experiment


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

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5c246faf-8106-2865-2808-d7ca3616ed5a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB19A:226126:13FDC95:1AAFA54:6B052D2D
html-safe-nonce84a4db6aea64e4c262c7d98b8a9ff96031317e085f1e29562c3cde1fb2aeb41b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTlBOjIyNjEyNjoxM0ZEQzk1OjFBQUZBNTQ6NkIwNTJEMkQiLCJ2aXNpdG9yX2lkIjoiMTQwMTg1MDM3MTk5NTE1MTY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0736bd5a6166cec5dc1c5803f0297ec01eeab7bb027f3a68d94560243025ca0d
hovercard-subject-tagissue:722092489
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/542/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b3fa0644933db85bfaaa6a5b165c808b1b582803b727467c4c68585c050fce7e/microsoftgraph/msgraph-sdk-java/issues/542
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b3fa0644933db85bfaaa6a5b165c808b1b582803b727467c4c68585c050fce7e/microsoftgraph/msgraph-sdk-java/issues/542
og:image:altWhile 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameatulgpt
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git
octolytics-dimension-user_id17304259
octolytics-dimension-user_loginmicrosoftgraph
octolytics-dimension-repository_id103300409
octolytics-dimension-repository_nwomicrosoftgraph/msgraph-sdk-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id103300409
octolytics-dimension-repository_network_root_nwomicrosoftgraph/msgraph-sdk-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoftgraph/msgraph-sdk-java/issues/542#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F542
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F542
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoftgraph%2Fmsgraph-sdk-java
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/542
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/542
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/542
microsoftgraphhttps://github.com/microsoftgraph
msgraph-sdk-javahttps://github.com/microsoftgraph/msgraph-sdk-java
Codehttps://github.com/microsoftgraph/msgraph-sdk-java
Issues107 (107)https://github.com/microsoftgraph/msgraph-sdk-java/issues
Pull requests23 (23)https://github.com/microsoftgraph/msgraph-sdk-java/pulls
Actionshttps://github.com/microsoftgraph/msgraph-sdk-java/actions
Projectshttps://github.com/microsoftgraph/msgraph-sdk-java/projects
Security and qualityhttps://github.com/microsoftgraph/msgraph-sdk-java/security
Insightshttps://github.com/microsoftgraph/msgraph-sdk-java/insights
https://github.com/microsoftgraph/msgraph-sdk-java
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/542
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/542
#558https://github.com/microsoftgraph/msgraph-sdk-java/pull/558
Getting crash in Android OS 7https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#top
#558https://github.com/microsoftgraph/msgraph-sdk-java/pull/558
https://github.com/baywet
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
fixedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22fixed%22
3.0.0-previewhttps://github.com/microsoftgraph/msgraph-sdk-java/milestone/4
https://github.com/atulgpt
Atul Gupta (atulgpt)https://github.com/atulgpt
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issue-722092489
Nexthttps://github.com/microsoftgraph/msgraph-sdk-java/issues/542?timeline_page=1
ToTriagehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22ToTriage%22
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3880097422
Atul Gupta (atulgpt)https://github.com/atulgpt
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3880098610
Atul Gupta (atulgpt)https://github.com/atulgpt
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881097357
Vincent Biret (baywet)https://github.com/baywet
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881267279
ToTriagehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22ToTriage%22
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881267532
Vincent Biret (baywet)https://github.com/baywet
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
questionhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22question%22
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881268285
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-709306893
Atul Gupta (@atulgpt)https://github.com/atulgpt
#530https://github.com/microsoftgraph/msgraph-sdk-java/issues/530
msgraph-sdk-java/src/main/java/com/microsoft/graph/serializer/CollectionPageSerializer.javahttps://github.com/microsoftgraph/msgraph-sdk-java/blob/cd580a42cbc58668b4776d8de350fd6de66c8a74/src/main/java/com/microsoft/graph/serializer/CollectionPageSerializer.java#L115
cd580a4https://github.com/microsoftgraph/msgraph-sdk-java/commit/cd580a42cbc58668b4776d8de350fd6de66c8a74
https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.htmlhttps://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html
https://www.javatpoint.com/java-default-methodshttps://www.javatpoint.com/java-default-methods
https://developer.android.com/studio/releases/platforms#7.0https://developer.android.com/studio/releases/platforms#7.0
https://stackoverflow.com/a/46873490/3808675https://stackoverflow.com/a/46873490/3808675
https://developer.android.com/reference/java/lang/reflect/Type#getTypeName()https://developer.android.com/reference/java/lang/reflect/Type#getTypeName()
https://github.com/atulgpt
Atul Gupta (atulgpt)https://github.com/atulgpt
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-709332293
Vincent Biret (@baywet)https://github.com/baywet
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881645933
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
on Oct 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3881646029
Vincent Biret (baywet)https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
questionhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22question%22
on Oct 16, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-3886517495
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Oct 16, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-710061680
#546https://github.com/microsoftgraph/msgraph-sdk-java/issues/546
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-739931294
Atul Gupta (@atulgpt)https://github.com/atulgpt
https://github.com/atulgpt
Atul Gupta (atulgpt)https://github.com/atulgpt
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-739984954
Vincent Biret (@baywet)https://github.com/baywet
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4080191865
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4080191929
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-740015046
https://github.com/atulgpt
Atul Gupta (atulgpt)https://github.com/atulgpt
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-740067337
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Dec 7, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-740092104
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Dec 8, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-740701487
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Dec 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-745285195
Atul Gupta (@atulgpt)https://github.com/atulgpt
Vincent Biret (baywet)https://github.com/baywet
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
on Dec 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4114565427
https://github.com/atulgpt
Atul Gupta (atulgpt)https://github.com/atulgpt
on Dec 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#issuecomment-745615080
Vincent Biret (@baywet)https://github.com/baywet
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
on Dec 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4116995774
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
on Dec 15, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4116995812
Vincent Biret (baywet)https://github.com/baywet
completedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 16, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/542#event-4119433665
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/542
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/542
Vincent Biret (baywet)https://github.com/baywet
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
fixedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22fixed%22
3.0.0-previewhttps://github.com/microsoftgraph/msgraph-sdk-java/milestone/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.