--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/e3f01831-ddc0-4e0f-988e-237c3566a8be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Connected to the target VM, address: '127.0.0.1:45505', transport: 'socket'
Aug 26, 2016 7:11:40 AM io.vertx.ext.web.impl.RoutingContextImplBase
SEVERE: Unexpected exception in route
java.lang.IllegalStateException: Request has already been read
at io.vertx.core.http.impl.HttpServerRequestImpl.checkEnded(HttpServerRequestImpl.java:426)
at io.vertx.core.http.impl.HttpServerRequestImpl.setExpectMultipart(HttpServerRequestImpl.java:312)
at io.vertx.ext.web.impl.HttpServerRequestWrapper.setExpectMultipart(HttpServerRequestWrapper.java:192)
at us.juggl.vertx.blocking.ExampleVerticle.blockingHandler(ExampleVerticle.java:77)
at io.vertx.ext.web.impl.BlockingHandlerDecorator.lambda$handle$0(BlockingHandlerDecorator.java:48)
at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:303)
at io.vertx.core.impl.OrderedExecutorFactory$OrderedExecutor.lambda$new$0(OrderedExecutorFactory.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
07:28:58-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
07:28:58-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
07:28:59-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
{
"status" : "OK",
"type" : "blocking",
"email" : "john...@comecompany.com"
}
07:29:03-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
07:29:04-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
07:29:05-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
{
"status" : "OK",
"type" : "blocking",
"email" : "john...@comecompany.com"
}
07:29:09-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
07:29:10-dphillips@ideapad-~/Videos$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=john.doe%40comecompany.com' http://localhost:1080/blocking && echo
Internal Server Error
@Override
public void start() throws Exception {
Router router = Router.router(vertx);
router.post("/blocking*").handler(this::setExpectMultipart);
router.post("/nonblocking*").handler(this::nonBlockingHandler);
router.post("/blockingA").blockingHandler(this::blockingHandlerA, false);
router.post("/blockingB").blockingHandler(this::blockingHandlerB, false);
router.post("/blockingC").blockingHandler(this::blockingHandlerC, false);
router.post("/blockingPA").blockingHandler(this::blockingHandlerA);
router.post("/blockingPB").blockingHandler(this::blockingHandlerB);
router.post("/blockingPC").blockingHandler(this::blockingHandlerC);
vertx.createHttpServer().requestHandler(router::accept).listen(1080);
}
void setExpectMultipart(RoutingContext ctx) {
ctx.request().setExpectMultipart(true);
ctx.request().exceptionHandler(this::execptionHandler);
ctx.response().exceptionHandler(this::execptionHandler);
ctx.next();
}
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/cbWEsWUW86k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/414bb9bd-a02f-4a0d-8cc0-e6fcb0c8ef8c%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cfd20b6f-f8a7-4b57-8c76-0156ed0ae1dc%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CAJw%2B4NDzjMaLM9EjueBKg%3DwBpJWB%3DLCk2iR-Wnv2Mhtm2%3DJSjA%40mail.gmail.com.