You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ vertx run RerouteExample.java &
$ curl http://localhost:8081/some/path
You'll end up with a StackOverflow error
Unexpected exception in route
java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.io.PrintWriter.<init>(PrintWriter.java:116)
at java.io.PrintWriter.<init>(PrintWriter.java:100)
at java.util.logging.SimpleFormatter.format(SimpleFormatter.java:155)
at java.util.logging.StreamHandler.publish(StreamHandler.java:211)
at java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:116)
at java.util.logging.Logger.log(Logger.java:738)
at io.vertx.core.logging.JULLogDelegate.log(JULLogDelegate.java:162)
at io.vertx.core.logging.JULLogDelegate.log(JULLogDelegate.java:166)
at io.vertx.core.logging.JULLogDelegate.error(JULLogDelegate.java:66)
at io.vertx.core.logging.Logger.error(Logger.java:70)
at io.vertx.ext.web.impl.RoutingContextImplBase.unhandledFailure(RoutingContextImplBase.java:106)
at io.vertx.ext.web.impl.RoutingContextImpl.checkHandleNoMatch(RoutingContextImpl.java:102)
at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:94)
at io.vertx.ext.web.impl.RoutingContextImpl.doFail(RoutingContextImpl.java:347)
at io.vertx.ext.web.impl.RoutingContextImpl.fail(RoutingContextImpl.java:124)
at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:84)
at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:93)
at io.vertx.ext.web.impl.RoutingContextImplBase.restart(RoutingContextImplBase.java:63)
at io.vertx.ext.web.impl.RoutingContextImpl.reroute(RoutingContextImpl.java:277)
at io.vertx.ext.web.RoutingContext.reroute(RoutingContext.java:354)
at VertxPrincipal.lambda$start$2(VertxPrincipal.java:28)
at io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:220)
at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:78)
at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:93)
at VertxPrincipal.lambda$start$0(VertxPrincipal.java:19)
The text was updated successfully, but these errors were encountered:
Here is a simple example extract from the document at:
http://vertx.io/docs/vertx-web/java/#_reroute
If you run it like this:
$ vertx run RerouteExample.java & $ curl http://localhost:8081/some/path
You'll end up with a StackOverflow error
The text was updated successfully, but these errors were encountered: