Menu

#8 RuntimeExceptions in a PacketListener

open
nobody
None
5
2013-02-19
2001-07-30
j h
No

When a RuntimeException is thrown in
PacketListener.receivedPacket() it is caught in
com.microstar.SAXDriver.parse(InputSource) and re-
thrown as a SAXException.
And then the SAXException is caught in
InputStreamHandler.run() and causes disconnection.

So the client knows nothing about the RuntimeException
and gets unexpectedly disconnected.

This should be improved IMO.

Discussion


Log in to post a comment.