Skip to content
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

Remove dependency on SVM class #747

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Feb 4, 2019

This dependency caused:

java.lang.ClassNotFoundException: com.oracle.svm.core.jdk.UnsupportedFeatureError

when using the RestClient in HotSpot mode

@geoand
Copy link
Contributor Author

geoand commented Feb 4, 2019

Also see: quarkusio/quarkus-quickstarts#34

throw new IllegalArgumentException(baseUrl + " requires SSL support but it is disabled. You probably have set shamrock.ssl.native to false.");
} catch (Exception e) {
if ("com.oracle.svm.core.jdk.UnsupportedFeatureError".equals(e.getClass().getCanonicalName())) {
throw new IllegalArgumentException(baseUrl + " requires SSL support but it is disabled. You probably have set shamrock.ssl.native to false.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. By the way, could you also fix it to not swallow the original exception and add it as a cause?

Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, I will do that!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Although CI seemed to be failing for some reason (I did a build locally and everything was OK - I didn't try native however)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also ran the native test this time locally and everything seemed fine

@geoand
Copy link
Contributor Author

geoand commented Feb 5, 2019

Can someone please post the CI output? I don't have access to it.

@gsmet
Copy link
Member

gsmet commented Feb 5, 2019

Hum. Apparently, when you have a cause, it's automatically unwrapped (at least in the case we have here). Thus the original error message is gone and the test checking the message fails.

So let's remove the cause for now and if you could squash everything and rebase, that would be perfect.

Thanks!

This dependency caused:

java.lang.ClassNotFoundException:
com.oracle.svm.core.jdk.UnsupportedFeatureError

when using the RestClient in HotSpot mode
@geoand
Copy link
Contributor Author

geoand commented Feb 5, 2019

@gsmet PR rebased with the cause removed

@gsmet
Copy link
Member

gsmet commented Feb 5, 2019

Thanks. Sorry about the noise, I didn't expect this unwrapping.

Will merge once CI is clear.

@geoand
Copy link
Contributor Author

geoand commented Feb 5, 2019

@gsmet No reason to be sorry :)

@gsmet gsmet changed the title Remove dependency on SVM class. Remove dependency on SVM class Feb 5, 2019
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passed, let's merge.

@gsmet gsmet merged commit 941c218 into quarkusio:master Feb 5, 2019
@gsmet gsmet added this to the 0.8.0 milestone Feb 5, 2019
@geoand
Copy link
Contributor Author

geoand commented Feb 5, 2019

Thanks!

@geoand geoand deleted the restclient-svm-exception branch February 5, 2019 12:42
maxandersen pushed a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
Was originally tested in an unclean test environment which hid
the problem of performing a zero-install run on Windows when
using Cygwin/GitBash/etc

Fixes quarkusio#746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants