René's URL Explorer Experiment


Title: Java Reflection fail on thread · Issue #735 · NativeScript/android · GitHub

Open Graph Title: Java Reflection fail on thread · Issue #735 · NativeScript/android

X Title: Java Reflection fail on thread · Issue #735 · NativeScript/android

Description: Hi Guys WHEN USING ANDROID THREAD, SOME CLASSES ARE NOT FOUND BY CLASSLOADER (tns.Runtime.callJS failed). platform: android tns-core-modules 2.5.0 version Runtime version: 2.5.0 version My Plugin : 1.0.0 version (https://github.com/nabil...

Open Graph Description: Hi Guys WHEN USING ANDROID THREAD, SOME CLASSES ARE NOT FOUND BY CLASSLOADER (tns.Runtime.callJS failed). platform: android tns-core-modules 2.5.0 version Runtime version: 2.5.0 version My Plugin :...

X Description: Hi Guys WHEN USING ANDROID THREAD, SOME CLASSES ARE NOT FOUND BY CLASSLOADER (tns.Runtime.callJS failed). platform: android tns-core-modules 2.5.0 version Runtime version: 2.5.0 version My Plugin :...

Opengraph URL: https://github.com/NativeScript/android/issues/735

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java Reflection fail on thread","articleBody":"Hi Guys\r\nWHEN USING ANDROID THREAD, SOME CLASSES ARE NOT FOUND BY CLASSLOADER (tns.Runtime.callJS failed). \r\n\r\nplatform: android\r\ntns-core-modules 2.5.0 version\r\nRuntime version:  2.5.0 version\r\nMy Plugin : 1.0.0 version (https://github.com/nabil-mansouri/nativescript-couchbaselite)\r\n\r\nI am trying to create a couchbase plugin that make available all features. But when i am trying to create view , i  need to emit keys. This is done in couchbase in a separate thread. When my emit bloc is called, it throws a \"ClassnotfoundException\" on tns runtime. But when i try to get java.lang.Class.forName(\"com.couchbase.lite.store.SQLiteViewStore$AbstractMapEmitBlock\") on main thread , **it works**! It seems that runtime is not looking on the same classloader?\r\n\r\nHere are my unit tests (npm run test-android): \r\nhttps://github.com/nabil-mansouri/nativescript-couchbaselite/blob/master/tests/app/tests/couchbase.ts \r\n\"should live query\" failed\r\n\r\nOn adb logcat i have this stacktrace:\r\n```\r\n03-24 07:19:19.067 2366 2441 V View : Re-indexing view: users_live\r\n03-24 07:19:19.069 2366 2441 V View : users_live last indexed at #0\r\n03-24 07:19:19.069 2366 2441 V View : Updating indexes of (users_live) from #0 to #4 ...\r\n03-24 07:19:19.164 2366 2441 V View : #1: map '1' for view users_live...\r\n03-24 07:19:19.166 2366 2440 W System.err: java.lang.ClassNotFoundException: com.couchbase.lite.store.SQLiteViewStore$AbstractMapEmitBlock\r\n03-24 07:19:19.185 2366 2440 W System.err: at java.lang.Class.classForName(Native Method)\r\n03-24 07:19:19.185 2366 2440 W System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n03-24 07:19:19.185 2366 2440 W System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n03-24 07:19:19.185 2366 2440 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n03-24 07:19:19.185 2366 2440 W System.err: at com.tns.Runtime.getTypeMetadata(Runtime.java:719)\r\n03-24 07:19:19.185 2366 2440 W System.err: at com.tns.Runtime.callJSMethodNative(Native Method)\r\n03-24 07:19:19.185 2366 2440 W System.err: at com.tns.Runtime.access$2400(Runtime.java:33)\r\n03-24 07:19:19.185 2366 2440 W System.err: at com.tns.Runtime$3.run(Runtime.java:1214)\r\n03-24 07:19:19.185 2366 2440 W System.err: at android.os.Handler.handleCallback(Handler.java:739)\r\n03-24 07:19:19.185 2366 2440 W System.err: at android.os.Handler.dispatchMessage(Handler.java:95)\r\n03-24 07:19:19.185 2366 2440 W System.err: at android.os.Looper.loop(Looper.java:148)\r\n03-24 07:19:19.185 2366 2440 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61)\r\n03-24 07:19:19.185 2366 2440 W System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available\r\n```\r\n\r\nEdit: proper formatting to help readability","author":{"url":"https://github.com/nabil-mansouri","@type":"Person","name":"nabil-mansouri"},"datePublished":"2017-03-24T09:44:02Z","url":"https://github.com/NativeScript/android/issues/735"}

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:8bafd75d-aaca-1ac6-e55f-8d54dca01480
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD8F2:37820D:196FB0D:21B8D3B:6B013BC1
html-safe-noncec58038161e485eaf0b22b4ae49afbcd0c882733aa7c88a6b67c02c9a108bf913
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEYyOjM3ODIwRDoxOTZGQjBEOjIxQjhEM0I6NkIwMTNCQzEiLCJ2aXNpdG9yX2lkIjoiOTE1OTUwODIyODYwMDU3Njk2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac323b94cbfc784f9ed35343ce6f3e9ef0d27a1a641967d56084f89437cb07b902
hovercard-subject-tagissue:216719289
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/NativeScript/android/735/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e4c89901893f1783342428606bd38a95257c004beaa156cb94656af06ed3fa94/NativeScript/android/issues/735
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e4c89901893f1783342428606bd38a95257c004beaa156cb94656af06ed3fa94/NativeScript/android/issues/735
og:image:altHi Guys WHEN USING ANDROID THREAD, SOME CLASSES ARE NOT FOUND BY CLASSLOADER (tns.Runtime.callJS failed). platform: android tns-core-modules 2.5.0 version Runtime version: 2.5.0 version My Plugin :...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenabil-mansouri
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/735#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F735
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%2FNativeScript%2Fandroid%2Fissues%2F735
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=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/issues/735
Reloadhttps://github.com/NativeScript/android/issues/735
Reloadhttps://github.com/NativeScript/android/issues/735
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
https://github.com/NativeScript/android
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/735
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/735
Java Reflection fail on threadhttps://github.com/NativeScript/android/issues/735#top
https://github.com/petekanev
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/nabil-mansouri
nabil-mansourihttps://github.com/nabil-mansouri
on Mar 24, 2017https://github.com/NativeScript/android/issues/735#issue-216719289
https://github.com/nabil-mansouri/nativescript-couchbaselitehttps://github.com/nabil-mansouri/nativescript-couchbaselite
https://github.com/nabil-mansouri/nativescript-couchbaselite/blob/master/tests/app/tests/couchbase.tshttps://github.com/nabil-mansouri/nativescript-couchbaselite/blob/master/tests/app/tests/couchbase.ts
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Mar 24, 2017https://github.com/NativeScript/android/issues/735#issuecomment-289015309
@nabil-mansourihttps://github.com/nabil-mansouri
https://github.com/nabil-mansouri
nabil-mansourihttps://github.com/nabil-mansouri
on Mar 24, 2017https://github.com/NativeScript/android/issues/735#issuecomment-289032450
https://github.com/nabil-mansouri/nativescript-couchbaselitehttps://github.com/nabil-mansouri/nativescript-couchbaselite
https://github.com/nabil-mansouri/nativescript-couchbaselite/tree/master/tests/apphttps://github.com/nabil-mansouri/nativescript-couchbaselite/tree/master/tests/app
https://github.com/nabil-mansouri/nativescript-couchbaselite/blob/master/tests/app/tests/couchbase.tshttps://github.com/nabil-mansouri/nativescript-couchbaselite/blob/master/tests/app/tests/couchbase.ts
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Mar 27, 2017https://github.com/NativeScript/android/issues/735#issuecomment-289417260
@nabil-mansourihttps://github.com/nabil-mansouri
petekanevhttps://github.com/petekanev
on Mar 27, 2017https://github.com/NativeScript/android/issues/735#event-1016431373
https://github.com/nabil-mansouri
nabil-mansourihttps://github.com/nabil-mansouri
on Mar 29, 2017https://github.com/NativeScript/android/issues/735#issuecomment-290005589
https://github.com/nabil-mansouri/nativescript-couchbaselite-demohttps://github.com/nabil-mansouri/nativescript-couchbaselite-demo
Plamen5kovhttps://github.com/Plamen5kov
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
on Mar 29, 2017https://github.com/NativeScript/android/issues/735#event-1019959669
https://github.com/NickIliev
NickIlievhttps://github.com/NickIliev
on Apr 6, 2017https://github.com/NativeScript/android/issues/735#issuecomment-292131270
@nabil-mansourihttps://github.com/nabil-mansouri
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Apr 27, 2017https://github.com/NativeScript/android/issues/735#issuecomment-297675152
@nabil-mansourihttps://github.com/nabil-mansouri
petekanevhttps://github.com/petekanev
completedhttps://github.com/NativeScript/android/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 27, 2017https://github.com/NativeScript/android/issues/735#event-1060156900
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/735
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/735
petekanevhttps://github.com/petekanev
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
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

Viewport: width=device-width


URLs of crawlers that visited me.