René's URL Explorer Experiment


Title: Static binding generator crash build-time: clazz is null causes app to crash · Issue #665 · NativeScript/android · GitHub

Open Graph Title: Static binding generator crash build-time: clazz is null causes app to crash · Issue #665 · NativeScript/android

X Title: Static binding generator crash build-time: clazz is null causes app to crash · Issue #665 · NativeScript/android

Description: Please, provide the details below: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes. Tell us about the problem Recently cleaned out my project directory and now I'm having thes...

Open Graph Description: Please, provide the details below: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes. Tell us about the problem Recently cleaned out my p...

X Description: Please, provide the details below: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes. Tell us about the problem Recently cleaned out my p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Static binding generator crash build-time: clazz is null causes app to crash","articleBody":"## Please, provide the details below:\r\n\r\n### Did you verify this is a real problem by searching [Stack Overflow](http://stackoverflow.com/questions/tagged/nativescript) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nYes.\r\n\r\n### Tell us about the problem\r\nRecently cleaned out my project directory and now I'm having these build issues:\r\n```\r\n:asbg:generateInterfaceNamesList\r\n:asbg:traverseJsFiles\r\n:asbg:runAstParser\r\nRunning full build\r\nfinished with reading lines with js files\r\n:asbg:generateBindings\r\njava.lang.IllegalArgumentException: clazz is null\r\n\tat org.nativescript.staticbindinggenerator.ClassInfo.\u003cinit>(ClassInfo.java:25)\r\n\tat org.nativescript.staticbindinggenerator.ClassInfo.\u003cinit>(ClassInfo.java:20)\r\n\tat org.nativescript.staticbindinggenerator.ClassInfo.getSuperclass(ClassInfo.java:132)\r\n\tat com.tns.bindings.Dump.isApplicationClass(Dump.java:626)\r\n\tat com.tns.bindings.Dump.getSupportedMethods(Dump.java:323)\r\n\tat com.tns.bindings.Dump.generateProxy(Dump.java:211)\r\n\tat com.tns.bindings.ProxyGenerator.generateProxy(ProxyGenerator.java:36)\r\n\tat org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:87)\r\n\tat org.nativescript.staticbindinggenerator.Main.main(Main.java:15)\r\n:mergeF0F1F2F3DebugShaders\r\n:compileF0F1F2F3DebugShaders\r\n:generateF0F1F2F3DebugAssets\r\n:mergeF0F1F2F3DebugAssets\r\n```\r\nwhich results in the app crashing on launch.\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n```\r\n┌──────────────────┬─────────────────┬────────────────┬─────────────┐\r\n│ Component        │ Current version │ Latest version │ Information │\r\n│ nativescript     │ 2.4.2           │ 2.4.2          │ Up to date  │\r\n│ tns-core-modules │ 2.4.3           │ 2.4.3          │ Up to date  │\r\n│ tns-android      │ 2.4.1           │ 2.4.1          │ Up to date  │\r\n│ tns-ios          │ 2.4.0           │ 2.4.0          │ Up to date  │\r\n└──────────────────┴─────────────────┴────────────────┴─────────────┘\r\n```\r\n\r\n### Did the error happen while the app was being constructed? (buildtime error)\r\nYes. I tried doing `--log trace` but it flooded my terminal memory and couldn't capture it 😦 \r\nThe app builds and deploys to device no problem.\r\n\r\n### Did the error happen while the app was executing? (runtime error)\r\nYes,\r\n```\r\n12-22 14:42:25.493 17606 17606 W System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: \r\n12-22 14:42:25.493 17606 17606 W System.err: Error calling module function \r\n12-22 14:42:25.493 17606 17606 W System.err: Error calling module function \r\n12-22 14:42:25.493 17606 17606 W System.err: Error: java.lang.ClassNotFoundException: com.tns.NativeScriptActivity\r\n12-22 14:42:25.493 17606 17606 W System.err:     java.lang.Class.classForName(Native Method)\r\n12-22 14:42:25.493 17606 17606 W System.err:     java.lang.Class.forName(Class.java:324)\r\n12-22 14:42:25.493 17606 17606 W System.err:     java.lang.Class.forName(Class.java:285)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.Runtime.getClassForName(Runtime.java:947)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.ClassResolver.resolveClass(ClassResolver.java:50)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.Runtime.resolveClass(Runtime.java:565)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.Runtime.runModule(Native Method)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.Runtime.runModule(Runtime.java:514)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.Runtime.run(Runtime.java:509)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.app.ActivityThread.handleBindApplication(ActivityThread.java:4751)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.app.ActivityThread.-wrap1(ActivityThread.java)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.os.Handler.dispatchMessage(Handler.java:102)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.os.Looper.loop(Looper.java:148)\r\n12-22 14:42:25.493 17606 17606 W System.err:     android.app.ActivityThread.main(ActivityThread.java:5461)\r\n12-22 14:42:25.493 17606 17606 W System.err:     java.lang.reflect.Method.invoke(Native Method)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n12-22 14:42:25.493 17606 17606 W System.err:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n12-22 14:42:25.493 17606 17606 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.tns.NativeScriptActivity\" on path: DexPathList[[zip file \"/data/app/com.gethuman.android-1/base.apk\"],nativeLibraryDirectories=[/data/app/com.gethuman.android-1/lib/arm, /data/app/com.gethuman.android-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]\r\n12-22 14:42:25.493 17606 17606 W System.err:     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.Class.classForName(Native Method)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.Class.forName(Class.java:324)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.Class.forName(Class.java:285)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.Runtime.getClassForName(Runtime.java:947)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.ClassResolver.resolveClass(ClassResolver.java:50)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.Runtime.resolveClass(Runtime.java:565)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.Runtime.runModule(Native Method)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.Runtime.runModule(Runtime.java:514)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.Runtime.run(Runtime.java:509)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:17)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.app.ActivityThread.handleBindApplication(ActivityThread.java:4751)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.app.ActivityThread.-wrap1(ActivityThread.java)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.os.Handler.dispatchMessage(Handler.java:102)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.os.Looper.loop(Looper.java:148)\r\n12-22 14:42:25.494 17606 17606 W System.err:     android.app.ActivityThread.main(ActivityThread.java:5461)\r\n12-22 14:42:25.494 17606 17606 W System.err:     java.lang.reflect.Method.invoke(Native Method)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n12-22 14:42:25.494 17606 17606 W System.err:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n12-22 14:42:25.494 17606 17606 W System.err: File: \"/data/data/com.gethuman.android/files/internal/ts_helpers.js, line: 104, column: 28\r\n12-22 14:42:25.494 17606 17606 W System.err: StackTrace: \r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'Interfaces.target.interfaces', file:'/data/data/com.gethuman.android/files/internal/ts_helpers.js', line: 104, column: 29\r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'__decorate', file:'/data/data/com.gethuman.android/files/app/services/delegate/delegate.js', line: 10, column: 95\r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'', file:'/data/data/com.gethuman.android/files/app/services/delegate/delegate.js', line: 84, column: 12\r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'require', file:'', line: 1, column: 266\r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'', file:'/data/data/com.gethuman.android/files/app/main.js', line: 9, column: 1\r\n12-22 14:42:25.494 17606 17606 W System.err: \tFrame: function:'require', file:'', line: 1, column: 266\r\n```\r\nNot sure what all that means 🤐 \r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nCreating a new blank project does not produce this error; but I am extending the activity:\r\n```typescript\r\n@JavaProxy('com.tns.NativeScriptActivity')\r\nclass Activity extends android.app.Activity {}\r\n```\r\n\r\nI'm in the midst of trial and error removing parts of the app trying to get it to build. lol","author":{"url":"https://github.com/roblav96","@type":"Person","name":"roblav96"},"datePublished":"2016-12-22T19:48:59Z","url":"https://github.com/NativeScript/android/issues/665"}

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:3b692d16-36b7-175b-8b8d-cd540085534f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAFD8:3F8AB1:34E43D5:4338BBE:6B01C80A
html-safe-noncede1344b1741dc104ce9e4745a95d36a4a3634512ba703c45b6bb9f9805b60e19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkQ4OjNGOEFCMTozNEU0M0Q1OjQzMzhCQkU6NkIwMUM4MEEiLCJ2aXNpdG9yX2lkIjoiODc3OTE3OTM2OTc3NzE4NjgyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac18b6bec4b566069cb7c9f0de4d2b947f5f4cc92eac3f0d5b07bd0e3e927969d8
hovercard-subject-tagissue:197253405
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/665/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e4b2a9b225a86b4b3077992a5cb2f7d34120116d78ece3a0b21689a946c859e7/NativeScript/android/issues/665
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e4b2a9b225a86b4b3077992a5cb2f7d34120116d78ece3a0b21689a946c859e7/NativeScript/android/issues/665
og:image:altPlease, provide the details below: Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo? Yes. Tell us about the problem Recently cleaned out my p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameroblav96
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/android/issues/665#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fissues%2F665
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%2F665
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/665
Reloadhttps://github.com/NativeScript/android/issues/665
Reloadhttps://github.com/NativeScript/android/issues/665
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues107 (107)https://github.com/NativeScript/android/issues
Pull requests27 (27)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/665
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/665
Static binding generator crash build-time: clazz is null causes app to crashhttps://github.com/NativeScript/android/issues/665#top
https://github.com/petekanev
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
2.5.0-RChttps://github.com/NativeScript/android/milestone/21
https://github.com/roblav96
roblav96https://github.com/roblav96
on Dec 22, 2016https://github.com/NativeScript/android/issues/665#issue-197253405
Stack Overflowhttp://stackoverflow.com/questions/tagged/nativescript
other open issues in this repohttps://github.com/NativeScript/nativescript/issues
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Dec 22, 2016https://github.com/NativeScript/android/issues/665#issuecomment-268886013
@roblav96https://github.com/roblav96
https://github.com/roblav96
roblav96https://github.com/roblav96
on Dec 22, 2016https://github.com/NativeScript/android/issues/665#issuecomment-268897642
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Dec 22, 2016https://github.com/NativeScript/android/issues/665#issuecomment-268904245
@roblav96https://github.com/roblav96
https://github.com/roblav96
roblav96https://github.com/roblav96
on Dec 27, 2016https://github.com/NativeScript/android/issues/665#issuecomment-269263953
bradmartin/nativescript-snackbar#16https://github.com/bradmartin/nativescript-snackbar/issues/16
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Jan 6, 2017https://github.com/NativeScript/android/issues/665#issuecomment-270889312
@roblav96https://github.com/roblav96
Plamen5kovhttps://github.com/Plamen5kov
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
on Jan 6, 2017https://github.com/NativeScript/android/issues/665#event-914132339
petekanevhttps://github.com/petekanev
on Jan 10, 2017https://github.com/NativeScript/android/issues/665#event-917420737
petekanevhttps://github.com/petekanev
on Jan 10, 2017https://github.com/NativeScript/android/issues/665#event-917504760
https://github.com/petekanev
petekanevhttps://github.com/petekanev
on Jan 10, 2017https://github.com/NativeScript/android/issues/665#issuecomment-271577335
petekanevhttps://github.com/petekanev
on Jan 11, 2017https://github.com/NativeScript/android/issues/665#event-918790310
Merge pull request #679 from NativeScript/pete/sbg-fix-665https://github.com/NativeScript/android/commit/385359c3956b63b0e87ca6b06c88418e8260e7f6
#679https://github.com/NativeScript/android/pull/679
385359chttps://github.com/NativeScript/android/commit/385359c3956b63b0e87ca6b06c88418e8260e7f6
petekanevhttps://github.com/petekanev
2.5.0-RChttps://github.com/NativeScript/android/milestone/21
on Jan 13, 2017https://github.com/NativeScript/android/issues/665#event-922152960
petekanevhttps://github.com/petekanev
completedhttps://github.com/NativeScript/android/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 13, 2017https://github.com/NativeScript/android/issues/665#event-922160517
https://github.com/roblav96
roblav96https://github.com/roblav96
on Jan 13, 2017https://github.com/NativeScript/android/issues/665#issuecomment-272466341
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/android/issues/665
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/android/issues/665
petekanevhttps://github.com/petekanev
bughttps://github.com/NativeScript/android/issues?q=state%3Aopen%20label%3A%22bug%22
2.5.0-RChttps://github.com/NativeScript/android/milestone/21
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.