Differences

This shows you the differences between two versions of the page.

Link to this comparison view

irc:1456527600 [2017/05/27 13:44] (current)
Line 1: Line 1:
 +[10:35:31] *** ChanServ sets mode: +o temporalfox
 +
 +[13:14:30] *** ChanServ sets mode: +o temporal_
 +
 +[13:27:15] *** ChanServ sets mode: +o temporalfox
 +
 +[16:28:46] <​dns_>​ Hi there! Is it possible to crate reroute from failure handler? I my SinglePageApplication I have a lot of application'​s URL and server should send index.html on these requests..
 +
 +[16:30:31] <​dns_>​ if I do this, vertx send me this: at TestWebServer.lambda$start$0(TestWebServer.java:​32) ​        at io.vertx.ext.web.impl.RouteImpl.handleFailure(RouteImpl.java:​227) ​        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:​76) ​        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:​93) ​        at io.vertx.ext.web.impl.RoutingContextImplBase.restart(RoutingContextImplBase.jav
 +
 +[16:32:26] <​dns_>​ I tried to send the same index.html page but failureHandler doesn'​t know about WebRoot directory and print "File not found"​(
 +
 +[16:35:40] <​dns_>​ stack: http://​pastebin.com/​eZ4VZeiS
 +
 +[16:39:49] <​dns_>​ so.. this has more lines: http://​pastebin.com/​SNyX6QrA
 +
 +[17:06:51] <​dns_>​ hmm.. if I set right directory error sounds like "​java.lang.IllegalStateException:​ Response has already been written"​ if I use sendFile method
 +
 +[18:03:51] <​dns_>​ posted this: https://​groups.google.com/​forum/?​fromgroups=#​!topic/​vertx/​uISbEZxdPgw