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

Network disconnects are not handled gracefully #5

Open
GoogleCodeExporter opened this issue Nov 14, 2015 · 1 comment
Open

Network disconnects are not handled gracefully #5

GoogleCodeExporter opened this issue Nov 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Connect to a broker
2. Subscribe and begin receiving messages
3. Cause the network connection to be lost

What is the expected output? What do you see instead?
The library should either handle the exception and try to reconnect until 
successful or pass the exception up to the main application.  Instead the 
application crashes because it fails to handle the exception.

What version of the product are you using? On what operating system?
0.5 on Android 2.3

Please provide any additional information below.

Exception:
FATAL EXCEPTION: Thread-11
pk.aamir.stompj.StompJRuntimeException: BufferedInputStream is closed
at pk.aamir.stompj.internal.FrameReceiver.getLine(FrameReceiver.java:82 at 
pk.aamir.stompj.internal.FrameReceiver.processInComingFrame(FrameReceiver.java:5
5) at pk.aamir.stompj.internal.FrameReceiver.run(FrameReceiver.java:50)
Caused by: java.io.IOException: BufferedInputStream is closed at 
java.io.BufferedInputStream.streamClosed(BufferedInputStream.java:116)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:221)
    at pk.aamir.stompj.internal.FrameReceiver.getLine(FrameReceiver.java:71)
   ... 2 more


Original issue reported on code.google.com by john.fer...@gmail.com on 12 Oct 2011 at 2:39

@GoogleCodeExporter
Copy link
Author

Any news?

Original comment by thomas.a...@gmail.com on 15 Feb 2012 at 3:22

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

No branches or pull requests

1 participant