Skip to content
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

NPE in NetServerMetricsImpl #37

Closed
gokl opened this issue Jun 22, 2016 · 0 comments
Closed

NPE in NetServerMetricsImpl #37

gokl opened this issue Jun 22, 2016 · 0 comments

Comments

@gokl
Copy link

gokl commented Jun 22, 2016

Hi,

I have logged several NPEs during a time where there were network problems on our servers.

We are doing HTTP requests with the Vertx HttpClient. The exceptions led to handlers not being called anymore, neither exception handler nor other handlers. And this led to a effectively dead verticle.

To me it looks like remoteAddress was null, but I have no idea how that could have happened. I cannot reproduce it. If you have an idea please let me know.

Here is the stacktrace I have:

io.vertx.core.impl.ContextImpl 'Unhandled exception'
java.lang.NullPointerException
        at io.vertx.ext.dropwizard.impl.NetServerMetricsImpl.connected(NetServerMetricsImpl.java:60)
        at io.vertx.ext.dropwizard.impl.HttpClientMetricsImpl.connected(HttpClientMetricsImpl.java:68)
        at io.vertx.ext.dropwizard.impl.HttpClientMetricsImpl.connected(HttpClientMetricsImpl.java:33)
        at io.vertx.core.http.impl.ClientConnection.<init>(ClientConnection.java:92)
        at io.vertx.core.http.impl.HttpClientImpl.createConn(HttpClientImpl.java:815)
        at io.vertx.core.http.impl.HttpClientImpl.lambda$connected$74(HttpClientImpl.java:808)
        at io.vertx.core.impl.ContextImpl.lambda$wrapTask$18(ContextImpl.java:333)
        at io.vertx.core.impl.OrderedExecutorFactory$OrderedExecutor.lambda$new$265(OrderedExecutorFactory.java:91)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

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

No branches or pull requests

1 participant