@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() { end(); } }); } catch (IOException e) { log.error(e); } } });
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() { end(); } }); } catch (IOException e) { log.error(e); } } });
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }
@Override public void run() { try { serverMessageInterceptor.handleEvent(new Event() { @Override public void run() throws IOException { mh.handle(dis, correlationId); } }); } catch (Throwable t) { if (correlationId != 0x00) { Exception response; if (t instanceof IOException) { response = (Exception) t; } else if (t instanceof JMRuntimeException) { response = (Exception) t; } else { response = new IOException("Internal server error."); log.warn("Unexpected internal error", t); } sendIOException(response); } else { log.error("null correlationId so error not sent to client", t); } } finally { IoUtils.safeClose(dis); } }