Title: "Java exception was raised during method invocation" error after React navigation on Android OS with FacebookMobile brwoser · Issue #15065 · getsentry/sentry-javascript · GitHub
Open Graph Title: "Java exception was raised during method invocation" error after React navigation on Android OS with FacebookMobile brwoser · Issue #15065 · getsentry/sentry-javascript
X Title: "Java exception was raised during method invocation" error after React navigation on Android OS with FacebookMobile brwoser · Issue #15065 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15065
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Java exception was raised during method invocation\" error after React navigation on Android OS with FacebookMobile brwoser","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/react\n\n### SDK Version\n\n7.93.0\n\n### Framework Version\n\n18.2.0\n\n### Link to Sentry event\n\nhttps://carefam.sentry.io/issues/6213106599/events/1a108b7f986349929f9de9866abdcb10/\n\n### Reproduction Example/SDK Setup\n\n```javascript\nfunction SentryController({ children }: { children: ReactNode }) {\n useEffect(() => {\n if (config.ENV === Env.Dev && !config.DEV_TEST_SENTRY_ON_DEV) {\n return;\n }\n const isInitialized = Sentry.getClient() !== undefined;\n if (isInitialized) {\n return;\n }\n Sentry.init({\n dsn: config.SENTRY_DSN,\n integrations: [\n Sentry.browserTracingIntegration(),\n Sentry.replayIntegration({\n maskAllText: false,\n }),\n ],\n tracesSampleRate: config.ENV === Env.Dev ? 1.0 : 0.1,\n replaysSessionSampleRate: config.ENV === Env.Dev ? 0 : 0.5,\n replaysOnErrorSampleRate: config.ENV === Env.Dev ? 0 : 1.0,\n tracePropagationTargets: [\n 'localhost',\n `https://${config.PROD_URL}`,\n `https://${config.STAGING_URL}`,\n ],\n environment: config.ENV,\n });\n Sentry.setTag('session', getSessionId());\n }, []);\n\n return (\n \u003cSentry.ErrorBoundary fallback={ErrorFallbackView}>\n {children}\n \u003c/Sentry.ErrorBoundary>\n );\n}\n```\n\n### Steps to Reproduce\n\n1. implement logic that uses react navigation immediately on page visit (based on localStorage for example)\n2. visit the page using Android Device with Facebook-Mobile browser\n3. most of the time it will trigger this issue ( at least in my usecase)\n\n### Expected Result\n\n- Triggering error should be visible on the Sentry Issue, instead of generic error raised by Sentry lib: _\"Java exception was raised during method invocation\"_\n- StackTrace should show the lines in code that have triggered the error (and not only Sentry lib code)\n\n### Actual Result\n\nGetting multiple errors on Sentry.\nOnly on FacebookMobile browser on Andorid OS \nThe error is triggered from Sentry lib, so it is too generic to archive:\n\n\n**Issue Title:**\nError\nObject.init(\u003canonymous>)\n\n**Error:**\nJava exception was raised during method invocation\n\n**StackTrace:**\n\u003canonymous> in Object.init at line 37:42346\nIn App\n\u003canonymous> at line 37:40603\nIn App\n../../node_modules/@sentry/browser/esm/helpers.js in sentryWrapped at line 97:17\n\n // Attempt to invoke user-land function\n // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n return fn.apply(this, wrappedArguments); ---> // executed line\n } catch (ex) {\n ignoreNextOnError();\n withScope(scope => {\n scope.addEventProcessor(event => {\n\n\n\nThis error happens immediately after navigation (auto navigation triggered by business logic, not by user click).\nThe user UX is unaffected, so this is just noise that Sentry is creating for us, and no safe way to ignore it.\n\nAny help here?\nDid anyone experienced a similar issue?","author":{"url":"https://github.com/eshelsil","@type":"Person","name":"eshelsil"},"datePublished":"2025-01-19T10:42:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/15065"}
| 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:e05d2939-eb41-d019-936b-212252f87666 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9848:2F9258:26E0038:331AF65:6B042A90 |
| html-safe-nonce | d85e70864dd595f9d7c8ca91de005388e83ecf30fc4c80db7d0fc214e7282f8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODQ4OjJGOTI1ODoyNkUwMDM4OjMzMUFGNjU6NkIwNDJBOTAiLCJ2aXNpdG9yX2lkIjoiMzIwNjAyODE2MTUxNTI2ODc1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b600efd2cc47d5827b380a58deac73a2249e40ac7c55cdae852dcd06f70de05 |
| hovercard-subject-tag | issue:2797556962 |
| 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/getsentry/sentry-javascript/15065/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73b88630bcf77793a181136eca3ae1994581f876ac5456eea8de5e0a630d5744/getsentry/sentry-javascript/issues/15065 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73b88630bcf77793a181136eca3ae1994581f876ac5456eea8de5e0a630d5744/getsentry/sentry-javascript/issues/15065 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eshelsil |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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