Streaming Exception - Connection timed out



I have developed a java application that implements v3.1.1 of the api.

The app has been streaming data successfully for a few weeks.

Today, I received the following exception and no more interactions have been received since:- Connection timed out: no further information:
at Method) ~[na:1.7.0_51]
at Source) ~[na:1.7.0_51]
at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at$AbstractNioUnsafe.finishConnect( ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at ~[netty-all-4.0.20.Final.jar:4.0.20.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$ [netty-all-4.0.20.Final.jar:4.0.20.Final]
at Source) [na:1.7.0_51]

Looking at your example code, it says “do something useful”:-

public static class ErrorHandler extends ErrorListener {
    public void exceptionCaught(Throwable t) {
        //do something useful...

If an exception is caught, what do you recommend? Should I always re subscribe to my stream(s)?




As mentioned in the duplicate of this question at, the Java client should handle all reconnections automatically; you shouldn't need to code for that within your application