New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gateway] improve stacktrace for port already in use for the http service #1354

Closed
NicolasGeraud opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@NicolasGeraud
Member

NicolasGeraud commented Jul 2, 2018

Start 2 local gateways without changing the default http service port (18082)
The stacktrace is :

11:27:22.149 [vert.x-eventloop-thread-5] [] ERROR io.vertx.core.impl.ContextImpl - Unhandled exception
java.lang.NullPointerException: null
	at io.gravitee.gateway.services.http.HttpServer.lambda$doStart$1(HttpServer.java:96)
	at io.vertx.core.http.impl.HttpServerImpl.lambda$null$4(HttpServerImpl.java:374)
	at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:339)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:748) 

A message saying 'Port already in use` would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment