Differences

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

Link to this comparison view

irc:1456786800 [2017/05/27 13:44] (current)
Line 1: Line 1:
 +[08:10:16] *** ChanServ sets mode: +o temporal_
 +
 +[12:45:31] <​dns_>​ hi there! Could you please help me with failurehandler for route(). I use example from documentation but it doesn'​t work(( I have an error "​Response has already been written"​ when I use response.setStatusCode(statusCode).end("​Sorry! Not today"​);​
 +
 +[12:46:12] <​dns_>​ looks like I have to use write() method only
 +
 +[13:35:17] <​dns_>​ any suggestions?​))
 +
 +[13:44:19] <​pmlopes>​ hi @dns_ the error you get is because you already wrote something to the response, once you write something that data is already on the wire to the client and cannot be pulled back. You can only send data once or set the response mode to chunk and use several write calls
 +
 +[13:50:55] <​dns_>​ Is it possible to fully redefine response data in case of error?
 +
 +[13:53:03] <​dns_>​ I mean redefine status code to 200 and body to index.html content
 +
 +[14:12:23] <​dns_>​ Damnt ((( I used System.out.println and output from that used as a response body((
 +
 +[14:14:27] <​pmlopes>​ @dns_ if you want to redifine status and body you need to buffer the response which will slow down your application and require more memory
 +
 +[14:24:40] <​dns_>​ hmm.. It is interesting what use angular developers for support application routing on the server side. I mean sending back index.html page for any undefined route.. Please don't answer "​Node.js"​ ))
 +
 +[17:24:25] *** ChanServ sets mode: +o temporalfox
 +
 +[18:22:42] <​Narigo>​ Hi there, I'd like to try out a snapshot version of the underlying driver for vertx-mysql-postgresql. If I use a -SNAPSHOT version, maven tells me that it cannot resolve it. I remember in Gradle that I had to add the snapshots repository - do I have to do something like that in maven as well?
 +
 +[18:23:25] *** ChanServ sets mode: +o temporalfox
 +
 +[18:23:51] <​Narigo>​ temporalfox,​ you know that, I'm sure :)
 +
 +[18:23:53] <​Narigo>​ Hi there, I'd like to try out a snapshot version of the underlying driver for vertx-mysql-postgresql. If I use a -SNAPSHOT version, maven tells me that it cannot resolve it. I remember in Gradle that I had to add the snapshots repository - do I have to do something like that in maven as well?
 +
 +[18:24:10] <​temporalfox>​ yes
 +
 +[18:24:17] <​temporalfox>​ in .m2/​settings.xml
 +
 +[18:24:39] <​temporalfox>​ http://​stackoverflow.com/​questions/​7715321/​how-to-download-snapshot-version-from-maven-snapshot-repository
 +
 +[18:25:16] <​Narigo>​ thanks a lot! :)
 +
 +[20:06:26] <​aesteve>​ hi everyone
 +
 +[20:08:45] <​temporalfox>​ hi aesteve
 +
 +[20:08:54] <​temporalfox>​ how are you doing ?
 +
 +[20:09:05] <​aesteve>​ fine and you ? How are you ?
 +
 +[20:10:06] <​temporalfox>​ doing good
 +
 +[21:07:19] <​AlexLehm>​ aesteve: did you get the proxy code running?
 +
 +[21:07:27] <​AlexLehm>​ i might offer some help how to do that
 +
 +[21:07:41] <​aesteve>​ yes AlexLehm , thanks for your help
 +
 +[21:08:35] <​aesteve>​ I had to battle with the WiFi and the 504 which added to the confusion, but at the end of the day I got it working