-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
resteasy-vertx example exception #427
Labels
Comments
I think we should remove this example from the Fine with you @vietj ? |
Use annotation-driven is wonderful idea,it can let you just focus on the business,with future. - v - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Questions
in https://github.com/vert-x3/vertx-examples/tree/4.x/resteasy-examples/src/main/java/io/vertx/examples/resteasy/helloworld
Serve.java ,After the start, visit http feedback:
java.lang.NoSuchMethodError: io.vertx.core.http.HttpServerRequest.rawMethod()Ljava/lang/String;
jdk1.8
`
`
i find bug is resteasy-vertx used vertx3.x version. exception from org.jboss.resteasy.plugins.server.vertx.VertxRequestHandler. handle(HttpServerRequest request)
here method
`public void handle(HttpServerRequest request) {
request.bodyHandler((buff) -> {
Context ctx = this.vertx.getOrCreateContext();
ResteasyUriInfo uriInfo = VertxUtil.extractUriInfo(request, this.servletMappingPrefix);
ResteasyHttpHeaders headers = VertxUtil.extractHttpHeaders(request);
HttpServerResponse response = request.response();
VertxHttpResponse vertxResponse = new VertxHttpResponse(response, this.dispatcher.getProviderFactory());
VertxHttpRequest vertxRequest = new VertxHttpRequest(ctx, headers, uriInfo, request.rawMethod(), this.dispatcher.getDispatcher(), vertxResponse, false);
if (buff.length() > 0) {
ByteBufInputStream in = new ByteBufInputStream(buff.getByteBuf());
vertxRequest.setInputStream(in);
}
try {
this.dispatcher.service(ctx, request, response, vertxRequest, vertxResponse, true);
} catch (Failure var11) {
vertxResponse.setStatus(var11.getErrorCode());
} catch (Exception var12) {
vertxResponse.setStatus(500);
LogMessages.LOGGER.error(Messages.MESSAGES.unexpected(), var12);
}
`
The text was updated successfully, but these errors were encountered: