-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add a rest-client example #34
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
Conversation
9996797
to
f84db2d
Compare
@gsmet Currently I can't get this work even with no https involved: I'm seeing:
The even weirder thing is that when I use Any idea what might be going on? |
Here is the complete stack trace:
If I remember correctly it's the same issue I had initially. |
Hum actually not, mine was really about SSL. This one looks related to Arc. @mkouba any idea? |
I'll take a look in few mins... |
I think I know the culprit: https://github.com/jbossas/protean-shamrock/blob/c9d8a344ac897e6c6b18bc2b72c607219111e0cc/extensions/rest-client/runtime/src/main/java/org/jboss/shamrock/restclient/runtime/RestClientBase.java#L26 It seems like the RestClientBase "depends" on an SVM class which won't be there when running the JAR. |
@gsmet Would you like me to open a PR in Protean that will catch an Exception and check for the class name as a String? |
Protean PR ready: quarkusio/quarkus#747 |
Now that the fix has been merged, https should be working just fine with this example |
README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpicking s/Rest/REST/g
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
So... I wanted to use it as the base for my SSL guide and then discovered that the tests were not run for native images. I fixed that but it definitely does not work in native mode. I fixed a few issues already but there are a few more I need to understand and fix. Please do not merge for now. @geoand Your code is OK so feel free to start writing the guide. The issues are in Shamrock itself. |
@gsmet Sounds good. I am pretty busy this week, but I believe I'll be able to squeeze in the guide :) |
@gsmet Since the guides are supposed to link to the quickstart, should we perhaps postpone the RESTClient guide? |
You can write still write it, we will just merge them both at the same time. I hope I will get it done by the end of today. |
Will do then 😉 |
@geoand got it working with native now so I added a commit to enable native testing and merged. Thanks again. |
Sounds great 👍 |
So I guess we can now merge quarkusio/quarkus#791? |
Working on it as we speak :) |
Awesome :) |
Follows up on #17 since the PR needed to be opened against development