-
Notifications
You must be signed in to change notification settings - Fork 409
Update java http client dependency to 4.0.0 issue #155 #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update java http client dependency to 4.0.0 issue #155 #162
Conversation
The tests were failing on my end, even in master, didn't know how to fix them. The code looks good in my opinion @thinkingserious |
Have you installed Prism for you local tests? |
Awesome, that solved the issue, now, how do I get travis to work? :P
|
Don't worry about the Travis builds, this issue will resolve this problem. Thank you for verifying! |
Kindly try to merge this as soon as possible! Based off Git Issue. Please try to use the latest Http Client. Thanks a bunch! |
Hello @belfazt, This issue has finally risen to the top of our queue! The java-http-client is now at v4.1.0. Could you please update your PR? Thanks! Elmer |
Updating PR |
|
a69c81a
to
a513999
Compare
I think I've already signed a CLA agreement |
More swag! Thanks :)
…On May 18, 2017 8:02 PM, "Elmer Thomas" ***@***.***> wrote:
Hello @belfazt <https://github.com/belfazt>,
Thanks again for the PR!
We want to show our appreciation by sending you some swag. Could you
please fill out this form <https://dx.sendgrid.com/swag> so we can send
it to you? Thanks!
Team SendGrid DX
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEBStPCDRI2NLGHHrzZyyxpY6tZKSteOks5r7OoPgaJpZM4KbrHB>
.
|
Well deserved! |
hi, I'm getting java.lang.NoClassDefFoundError: com/sendgrid/SendGridResponseHandler but the mail is being sent. |
Hello @YeisonMelo, Could you please provide the following details:
Thanks! With Best Regards, Elmer |
Hi,
|
Hi @YeisonMelo, I think there is trouble with redundant dependencies. What happens if you remove all the dependencies to httpcomponents? e.g. just have: <dependency>
<groupId>com.sendgrid</groupId>
<artifactId>sendgrid-java</artifactId>
<version>4.0.1</version>
</dependency> |
hi thank you for helping. Only keep the sengrid-java dependency was one of my first tries but after doing it the problem remained with the same behaviour. I have simplified my code to be able to use the version 2.2.2 and it works but from the version 3.0.0 the problem appears. I need to use the version 3.0.0 or higher with my project. |
Do you have any other dependencies that use the apache dependencies? I've seen cases where duplicate conflicting versions of apache were installed because of that. |
looks like that can be the problem is a very big project so I isolated the module that uses sendgrid an have been able to send the email without the error. |
is there any way to use send grid without the httpclient dependencies? I found dependencies in the project with different versions that the one send grid includes(4.5.2) but I can't remove them or upgrade them to 4.5.2 without making other modules fail. |
Hello @YeisonMelo, I'm not sure how to solve your specific issue, but it seems these threads might point you in the right direction: https://stackoverflow.com/questions/19659425/conflicting-library-version-in-a-java-maven-project With Best Regards, Elmer |
I solve the problem thank you! 🎉 here my thoughts. The initial version 3.2.0 was failing for some problem in the jar file, it was looking for the class SendGridResponseHandler but wasn't able to find it during running time even when it was there, I checked the jar by myself. I read in other blogs that the jar 3.2.0 had some problem... Then I update to the last version 4.0.1, then my problem was with dependencies since I was importing versions of httpclient and httpcore that were not compatible with send grid 4.0.1 so I made sure sendgrid was the first one importing the httpclient and httcore dependencies placing the sendgrid dependency at the begging of the pom file, the links @thinkingserious shared helped me to understand that this was happening. |
That's awesome, thanks for sharing your results @YeisonMelo! |
No description provided.