René's URL Explorer Experiment


Title: Show better error message when Model class isn't abstract · Issue #56 · JavaWebStack/orm · GitHub

Open Graph Title: Show better error message when Model class isn't abstract · Issue #56 · JavaWebStack/orm

X Title: Show better error message when Model class isn't abstract · Issue #56 · JavaWebStack/orm

Description: Describe the Bug When you extend the ORM Model to your own Model and forget to set it to abstract, you get an Exception saying Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.getType()" b...

Open Graph Description: Describe the Bug When you extend the ORM Model to your own Model and forget to set it to abstract, you get an Exception saying Exception in thread "main" java.lang.NullPointerException: Cannot invo...

X Description: Describe the Bug When you extend the ORM Model to your own Model and forget to set it to abstract, you get an Exception saying Exception in thread "main" java.lang.NullPointerException: C...

Opengraph URL: https://github.com/JavaWebStack/orm/issues/56

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Show better error message when Model class isn't abstract","articleBody":"**Describe the Bug**\r\nWhen you extend the ORM Model to your own Model and forget to set it to abstract, you get an Exception saying\r\n```\r\nException in thread \"main\" java.lang.NullPointerException: Cannot invoke \"java.lang.reflect.Field.getType()\" because the return value of \"org.javawebstack.orm.TableInfo.getField(String)\" is null\r\n\tat org.javawebstack.orm.TableInfo.getIdType(TableInfo.java:282)\r\n\tat org.javawebstack.orm.TableInfo.analyzeTable(TableInfo.java:95)\r\n\tat org.javawebstack.orm.TableInfo.constructInfo(TableInfo.java:61)\r\n\tat org.javawebstack.orm.TableInfo.\u003cinit\u003e(TableInfo.java:56)\r\n\tat org.javawebstack.orm.Repo.\u003cinit\u003e(Repo.java:35)\r\n\tat org.javawebstack.orm.ORM.register(ORM.java:25)\r\n\tat org.javawebstack.orm.ORM.register(ORM.java:37)\r\n\r\n```\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Forget to set your model class to abstract\r\n\r\n**Expected behavior**\r\nMaybe show some better error message which indicates that your base model isn't abstract yet.\r\n\r\n**Environment Information:**\r\n - Java Language Level 21\r\n- ORM Version            1.0.3-SNAPSHOT\r\n\r\n","author":{"url":"https://github.com/maherp1","@type":"Person","name":"maherp1"},"datePublished":"2024-05-27T18:29:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/56/orm/issues/56"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3d593fd0-cf8a-d9f8-02d0-52463c30ebe9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE03C:3B14FD:78BF8F:A19125:697CF8B6
html-safe-nonce15193ee636dabf5c59bd1e6d6c1a7001b15764cae6c5a2310df6b29c045219d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDNDOjNCMTRGRDo3OEJGOEY6QTE5MTI1OjY5N0NGOEI2IiwidmlzaXRvcl9pZCI6IjIxMDMyNzc4MjM0Mjk3NjkzOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1911ccbdbd4020dc7797ad1c5a1f2f296c2a5bb38bc29b6faaf7396985ff69b9
hovercard-subject-tagissue:2319622471
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/JavaWebStack/orm/56/issue_layout
twitter:imagehttps://opengraph.githubassets.com/14576daefbdf38bb2219a20a3e85d4f741cada79519e05c3ae5f34822443edac/JavaWebStack/orm/issues/56
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/14576daefbdf38bb2219a20a3e85d4f741cada79519e05c3ae5f34822443edac/JavaWebStack/orm/issues/56
og:image:altDescribe the Bug When you extend the ORM Model to your own Model and forget to set it to abstract, you get an Exception saying Exception in thread "main" java.lang.NullPointerException: Cannot invo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaherp1
hostnamegithub.com
expected-hostnamegithub.com
Nonef881497c2da7944950a5bb453d011e0fcc22d452c6305316a31d8ee9ea4449b3
turbo-cache-controlno-preview
go-importgithub.com/JavaWebStack/orm git https://github.com/JavaWebStack/orm.git
octolytics-dimension-user_id73674659
octolytics-dimension-user_loginJavaWebStack
octolytics-dimension-repository_id308479502
octolytics-dimension-repository_nwoJavaWebStack/orm
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id308479502
octolytics-dimension-repository_network_root_nwoJavaWebStack/orm
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
release04aa8f9ec799fb01abd96ff759aec742f97c517e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/JavaWebStack/orm/issues/56#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaWebStack%2Form%2Fissues%2F56
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaWebStack%2Form%2Fissues%2F56
Sign up https://patch-diff.githubusercontent.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=JavaWebStack%2Form
Reloadhttps://patch-diff.githubusercontent.com/JavaWebStack/orm/issues/56
Reloadhttps://patch-diff.githubusercontent.com/JavaWebStack/orm/issues/56
Reloadhttps://patch-diff.githubusercontent.com/JavaWebStack/orm/issues/56
JavaWebStack https://patch-diff.githubusercontent.com/JavaWebStack
ormhttps://patch-diff.githubusercontent.com/JavaWebStack/orm
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FJavaWebStack%2Form
Fork 1 https://patch-diff.githubusercontent.com/login?return_to=%2FJavaWebStack%2Form
Star 6 https://patch-diff.githubusercontent.com/login?return_to=%2FJavaWebStack%2Form
Code https://patch-diff.githubusercontent.com/JavaWebStack/orm
Issues 7 https://patch-diff.githubusercontent.com/JavaWebStack/orm/issues
Pull requests 2 https://patch-diff.githubusercontent.com/JavaWebStack/orm/pulls
Actions https://patch-diff.githubusercontent.com/JavaWebStack/orm/actions
Projects 0 https://patch-diff.githubusercontent.com/JavaWebStack/orm/projects
Security 0 https://patch-diff.githubusercontent.com/JavaWebStack/orm/security
Insights https://patch-diff.githubusercontent.com/JavaWebStack/orm/pulse
Code https://patch-diff.githubusercontent.com/JavaWebStack/orm
Issues https://patch-diff.githubusercontent.com/JavaWebStack/orm/issues
Pull requests https://patch-diff.githubusercontent.com/JavaWebStack/orm/pulls
Actions https://patch-diff.githubusercontent.com/JavaWebStack/orm/actions
Projects https://patch-diff.githubusercontent.com/JavaWebStack/orm/projects
Security https://patch-diff.githubusercontent.com/JavaWebStack/orm/security
Insights https://patch-diff.githubusercontent.com/JavaWebStack/orm/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JavaWebStack/orm/issues/56
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JavaWebStack/orm/issues/56
Show better error message when Model class isn't abstracthttps://patch-diff.githubusercontent.com/JavaWebStack/orm/issues/56#top
bugSomething isn't workinghttps://github.com/JavaWebStack/orm/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/maherp1
https://github.com/maherp1
maherp1https://github.com/maherp1
on May 27, 2024https://github.com/JavaWebStack/orm/issues/56#issue-2319622471
bugSomething isn't workinghttps://github.com/JavaWebStack/orm/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.