René's URL Explorer Experiment


Title: java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Email · Issue #652 · sendgrid/sendgrid-java · GitHub

Open Graph Title: java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Email · Issue #652 · sendgrid/sendgrid-java

X Title: java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Email · Issue #652 · sendgrid/sendgrid-java

Description: Issue Summary On run time I always get classNotFoundException basically on every class from com.sendgrid package. Has anyone else run into this that could shed some light as to why this is happening? I am on the latest version 4.6.7 Any ...

Open Graph Description: Issue Summary On run time I always get classNotFoundException basically on every class from com.sendgrid package. Has anyone else run into this that could shed some light as to why this is happenin...

X Description: Issue Summary On run time I always get classNotFoundException basically on every class from com.sendgrid package. Has anyone else run into this that could shed some light as to why this is happenin...

Opengraph URL: https://github.com/sendgrid/sendgrid-java/issues/652

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Email","articleBody":"\u003c!--\r\nIf this is a feature request, make sure you search Issues for an existing request before creating a new one!\r\n\r\nPlease utilize the template below to help us resolve your issue.\r\n\r\nNote that many issues can be resolved by updating to the latest version.\r\n-->\r\n\r\n### Issue Summary\r\nOn run time I always get classNotFoundException basically on every class from com.sendgrid package. Has anyone else run into this that could shed some light as to why this is happening? I am on the latest version 4.6.7 \r\n\r\nAny help is appreciated. TY\r\n\r\n\r\n### Code Snippet\r\n```java\r\nimport com...Notification;\r\nimport com...NotificationSendException;\r\nimport com...EmailNotificationClientInterface;\r\nimport com...NotificationResponse;\r\nimport com.sendgrid.Method;\r\nimport com.sendgrid.Request;\r\nimport com.sendgrid.Response;\r\nimport com.sendgrid.SendGrid;\r\nimport com.sendgrid.helpers.mail.Mail;\r\nimport com.sendgrid.helpers.mail.objects.Content;\r\nimport com.sendgrid.helpers.mail.objects.Email;\r\n\r\nimport java.io.IOException;\r\n\r\npublic class SendGridEmailNotificationService implements EmailNotificationClientInterface {\r\n\r\n\t@Override\r\n\tpublic NotificationResponse sendEmailNotification(Notification notification) throws NotificationSendException, IOException {\r\n\t\tContent content = new Content(\"text/plain\", \"and easy to do anywhere, even with Java\");\r\n\t\tEmail from = new Email(\"test@example.com\");\r\n\t\tString subject = \"Sending with SendGrid is Fun\";\r\n\t\tEmail to = new Email(\"belezi@intelycare.com\");\r\n\t\tMail mail = new Mail(from, subject, to, content);\r\n\t\tSendGrid sg = new SendGrid(System.getenv(\"SENDGRID_API_KEY\"));\r\n\t\tRequest request = new Request();\r\n\r\n\t\tResponse response = new Response();\r\n\r\n\t\ttry {\r\n\t\t\trequest.setMethod(Method.POST);\r\n\t\t\trequest.setEndpoint(\"mail/send\");\r\n\t\t\trequest.setBody(mail.build());\r\n\t\t\tresponse = sg.api(request);\r\n\t\t\tif (response.getStatusCode() == 200) {\r\n\r\n\t\t\t}\r\n\t\t\tSystem.out.println(response.getStatusCode());\r\n\t\t\tSystem.out.println(response.getBody());\r\n\t\t\tSystem.out.println(response.getHeaders());\r\n\t\t} catch (IOException ex) {\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t\treturn this.processResponse(notification, response);\r\n\t}\r\n\r\n\tprivate NotificationResponse processResponse(Notification notification, Response response){\r\n\t\tNotificationResponse notificationResponse = new NotificationResponse();\r\n\t\tnotificationResponse.setErred(notification.getErredNotification());\r\n\t\tnotificationResponse.setSent(!notification.getErredNotification());\r\n\t\treturn notificationResponse;\r\n\t}\r\n}\r\n\r\n```\r\n\r\npom.xml file\r\n### Code Snippet\r\n```java\r\n\u003cdependency>\r\n\t\t\t\u003cgroupId>com.sendgrid\u003c/groupId>\r\n\t\t\t\u003cartifactId>java-http-client\u003c/artifactId>\r\n\t\t\t\u003cversion>4.3.6\u003c/version>\r\n\t\t\u003c/dependency>\r\n\t\t\u003cdependency>\r\n\t\t\t\u003cgroupId>com.sendgrid\u003c/groupId>\r\n\t\t\t\u003cartifactId>sendgrid-java\u003c/artifactId>\r\n\t\t\t\u003cversion>4.6.7\u003c/version>\r\n\t\t\u003c/dependency>\r\n```\r\n\r\n### Exception/Log\r\n```\r\nERROR [2020-10-20 20:35:24,287] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 98ade0ddcde6ee9c\r\n! java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Content\r\n! at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)\r\n! at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\r\n! at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)\r\n! ... 64 common frames omitted\r\n! Causing: java.lang.NoClassDefFoundError: com/sendgrid/helpers/mail/objects/Content\r\n```\r\n\r\n### Technical details:\r\n* sendgrid-java version: 4.6.7\r\n* java version:\r\n\r\n","author":{"url":"https://github.com/belezi","@type":"Person","name":"belezi"},"datePublished":"2020-10-20T20:42:38Z","url":"https://github.com/sendgrid/sendgrid-java/issues/652"}

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:db971b67-795f-c2b5-33e4-ed07a06c229e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD68:3A8A4C:6D2BA:8F72E:6B06214A
html-safe-nonced2e4b7b8c129e139096bd068e5564701c40fa03af81c598f804c746086532073
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDY4OjNBOEE0Qzo2RDJCQTo4RjcyRTo2QjA2MjE0QSIsInZpc2l0b3JfaWQiOiI0ODkzOTM4ODc1NjQwNDU1NDk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac889164f1ac65f215d87947cbce4961b799392b5373f04e1cbb3f0cdfae56e46d
hovercard-subject-tagissue:725929354
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/sendgrid/sendgrid-java/652/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a03b620070f03034bdf152841df696f2d7907a753e11677889f01a12241bf983/sendgrid/sendgrid-java/issues/652
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a03b620070f03034bdf152841df696f2d7907a753e11677889f01a12241bf983/sendgrid/sendgrid-java/issues/652
og:image:altIssue Summary On run time I always get classNotFoundException basically on every class from com.sendgrid package. Has anyone else run into this that could shed some light as to why this is happenin...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebelezi
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-preview
go-importgithub.com/sendgrid/sendgrid-java git https://github.com/sendgrid/sendgrid-java.git
octolytics-dimension-user_id181234
octolytics-dimension-user_loginsendgrid
octolytics-dimension-repository_id12328480
octolytics-dimension-repository_nwosendgrid/sendgrid-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12328480
octolytics-dimension-repository_network_root_nwosendgrid/sendgrid-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
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/sendgrid/sendgrid-java/issues/652#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsendgrid%2Fsendgrid-java%2Fissues%2F652
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%2Fsendgrid%2Fsendgrid-java%2Fissues%2F652
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=sendgrid%2Fsendgrid-java
Reloadhttps://github.com/sendgrid/sendgrid-java/issues/652
Reloadhttps://github.com/sendgrid/sendgrid-java/issues/652
Reloadhttps://github.com/sendgrid/sendgrid-java/issues/652
sendgridhttps://github.com/sendgrid
sendgrid-javahttps://github.com/sendgrid/sendgrid-java
Codehttps://github.com/sendgrid/sendgrid-java
Issues22 (22)https://github.com/sendgrid/sendgrid-java/issues
Pull requests9 (9)https://github.com/sendgrid/sendgrid-java/pulls
Actionshttps://github.com/sendgrid/sendgrid-java/actions
Security and qualityhttps://github.com/sendgrid/sendgrid-java/security
Insightshttps://github.com/sendgrid/sendgrid-java/insights
https://github.com/sendgrid/sendgrid-java
New issuehttps://github.com/login?return_to=https://github.com/sendgrid/sendgrid-java/issues/652
New issuehttps://github.com/login?return_to=https://github.com/sendgrid/sendgrid-java/issues/652
java.lang.ClassNotFoundException: com.sendgrid.helpers.mail.objects.Emailhttps://github.com/sendgrid/sendgrid-java/issues/652#top
status: help wantedhttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22status%3A%20help%20wanted%22
type: bughttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/belezi
belezihttps://github.com/belezi
on Oct 20, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issue-725929354
https://github.com/thinkingserious
thinkingserioushttps://github.com/thinkingserious
on Oct 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-713312295
@belezihttps://github.com/belezi
thinkingserioushttps://github.com/thinkingserious
status: help wantedhttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22status%3A%20help%20wanted%22
type: bughttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
on Oct 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#event-3901924439
https://github.com/DianeBustamante
DianeBustamantehttps://github.com/DianeBustamante
on Oct 27, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-717230115
https://github.com/DianeBustamante
DianeBustamantehttps://github.com/DianeBustamante
on Oct 30, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-719809639
https://github.com/zionc44
zionc44https://github.com/zionc44
on Nov 20, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731450647
https://github.com/DianeBustamante
DianeBustamantehttps://github.com/DianeBustamante
on Nov 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731484744
https://github.com/sendgrid/sendgrid-javahttps://github.com/sendgrid/sendgrid-java
https://github.com/zionc44
zionc44https://github.com/zionc44
on Nov 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731606315
https://github.com/sendgrid/sendgrid-javahttps://github.com/sendgrid/sendgrid-java
https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java/4.6.7https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java/4.6.7
https://github.com/DianeBustamante
DianeBustamantehttps://github.com/DianeBustamante
on Nov 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731623764
https://github.com/sendgrid/sendgrid-javahttps://github.com/sendgrid/sendgrid-java
https://github.com/zionc44
zionc44https://github.com/zionc44
on Nov 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731625784
https://github.com/sendgrid/sendgrid-javahttps://github.com/sendgrid/sendgrid-java
https://github.com/DianeBustamante
DianeBustamantehttps://github.com/DianeBustamante
on Nov 21, 2020https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-731628094
https://github.com/priyav26
priyav26https://github.com/priyav26
on Jan 28, 2021https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-768836264
https://github.com/kamalbahadur
kamalbahadurhttps://github.com/kamalbahadur
on Mar 16, 2021https://github.com/sendgrid/sendgrid-java/issues/652#issuecomment-800639438
Sign up for freehttps://github.com/signup?return_to=https://github.com/sendgrid/sendgrid-java/issues/652
Sign in to commenthttps://github.com/login?return_to=https://github.com/sendgrid/sendgrid-java/issues/652
status: help wantedhttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22status%3A%20help%20wanted%22
type: bughttps://github.com/sendgrid/sendgrid-java/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%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

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.