JavaPhoenixChannels icon indicating copy to clipboard operation
JavaPhoenixChannels copied to clipboard

All exceptions thrown in background

Open metalwihen opened this issue 8 years ago • 1 comments

The Java Phoenix Client library has crashed my android app a number of times because of exceptions thrown in the background. I temporarily fixed the crashing by catching all exceptions but that doesn't really fix the issue. While the app no longer crashed for users, I made it a point to log all the exceptions so that I can better identify the root cause.

I'm pasting the list of exceptions here in case anyone is interested. This is a list of all the exceptions after over a week on production (in order from highest frequency to least frequency):

  • java.net.SocketTimeoutException
    • connect timed out
    • timeout
    • Read timed out
    • connect timed out at
  • java.io.EOFException
  • javax.net.ssl.SSLException
    • Read error: ssl=0x7a36fd6c40: I/O error during system call, Software caused connection abort
    • Read error: ssl=0x55b9c933b0: I/O error during system call, Connection timed out
  • java.net.SocketException
    • Socket is closed
  • java.lang.IllegalStateException
    • closed
  • java.net.UnknownHostException
    • Unable to resolve host : No address associated with hostname
  • java.io.InterruptedIOException
    • thread interrupted
  • java.lang.IllegalStateException
    • Task already scheduled or cancelled
  • java.io.IOException
    • closed

metalwihen avatar Feb 24 '17 10:02 metalwihen

All of the above thrown from the following 4 methods in the Socket class: onClose(), onFailure(), onMessage(), onOpen()

metalwihen avatar Feb 24 '17 10:02 metalwihen