Skip to content

Instantly share code, notes, and snippets.

@Path("/hello") // this defines the path /hello
public Hello {
public String hello(){
return "Hello World";
}
}
[INFO] H2 database started in TCP server mode
2019-01-02 11:37:37,659 atlantis RemoteTestRunner[18627] INFO  [o.j.s.d.ShamrockAugmentor] (main) Beginning shamrock augmentation
2019-01-02 11:37:37,776 atlantis RemoteTestRunner[18627] INFO  [o.j.threads] (main) JBoss Threads version 3.0.0.Alpha4
2019-01-02 11:37:38,280 atlantis RemoteTestRunner[38;5;18
globals.getRouter().route().handler(context -> {
// only filter if we have a header, otherwise it will try to force auth, regardless if whether
// we want auth
if(context.request().getHeader(HttpHeaders.AUTHORIZATION) != null) {
System.err.println("Pause");
context.request().pause();
authHandler.handle(context);
}else
context.next();
});
SEVERE: Unexpected exception in route
java.lang.IllegalStateException: Request has already been read
at io.vertx.core.http.impl.HttpServerRequestImpl.checkEnded(HttpServerRequestImpl.java:437)
at io.vertx.core.http.impl.HttpServerRequestImpl.handler(HttpServerRequestImpl.java:203)
at io.vertx.core.http.HttpServerRequest.bodyHandler(HttpServerRequest.java:208)
at io.vertx.ext.web.impl.HttpServerRequestWrapper.bodyHandler(HttpServerRequestWrapper.java:188)
at io.vertx.reactivex.core.http.HttpServerRequest.bodyHandler(HttpServerRequest.java:302)
at net.redpipe.engine.dispatcher.VertxPluginRequestHandler.handle(VertxPluginRequestHandler.java:57)
at net.redpipe.engine.core.Server.lambda$13(Server.java:236)
public class TodobackendMongo {
private final static Logger LOG = LoggerFactory.getLogger(TodobackendMongo.class);
private final static JsonObject TEST_CONF = new JsonObject()
.put("http_port", 9090);
public static void main(String... args) {
final DeploymentOptions opts = new DeploymentOptions().setWorker(true);
@FroMage
FroMage / foo
Last active June 4, 2018 13:25
A wiki backup
update test
@FroMage
FroMage / stef
Created April 5, 2018 13:43
A wiki backup
# A new page
Feel-free to write in Markdown! asdasd
@FroMage
FroMage / Example page
Created April 5, 2018 13:35
A wiki backup
# Example page
Some text _here_.
here ici euh YES YES
bla SALUT
@FroMage
FroMage / Example page
Created April 5, 2018 13:12
A wiki backup
# Example page
Some text _here_.
here ici euh YES YES
bla SALUT
@FroMage
FroMage / Example page
Created April 5, 2018 13:11
A wiki backup
# Example page
Some text _here_.
here ici euh YES YES
bla SALUT