@Override public String toString() { return this.getClass().getSimpleName() + "[errorType=" + type + " message=" + getMessage() + "]"; } }
@Override public ActiveMQBuffer getBodyBuffer() { try { checkBuffer(); } catch (ActiveMQException e) { throw new RuntimeException(e.getMessage(), e); } return writableBuffer; }
switch (me.getType()) { case CONNECTION_TIMEDOUT: je = new JMSException(me.getMessage()); break; je = new javax.jms.IllegalStateException(me.getMessage()); break; je = new JMSException(me.getMessage()); break; je = new InvalidSelectorException(me.getMessage()); break; je = new JMSException(me.getMessage()); break; je = new javax.jms.IllegalStateException(me.getMessage()); break; je = new InvalidDestinationException(me.getMessage()); break; je = new InvalidDestinationException(me.getMessage()); break; je = new JMSSecurityException(me.getMessage()); break;
@Override public void setJMSCorrelationIDAsBytes(final byte[] correlationID) throws JMSException { try { MessageUtil.setJMSCorrelationIDAsBytes(message, correlationID); } catch (ActiveMQException e) { JMSException ex = new JMSException(e.getMessage()); ex.initCause(e); throw ex; } }
@Override public void encodeRest(final ActiveMQBuffer buffer) { buffer.writeInt(exception.getType().getCode()); buffer.writeNullableString(exception.getMessage()); }
@Override public void fail(final ActiveMQException me, String scaleDownTargetNodeID) { synchronized (failLock) { if (destroyed) { return; } destroyed = true; } if (!(me instanceof ActiveMQRemoteDisconnectException)) { ActiveMQClientLogger.LOGGER.connectionFailureDetected(me.getMessage(), me.getType()); } try { transportConnection.forceClose(); } catch (Throwable e) { ActiveMQClientLogger.LOGGER.failedForceClose(e); } // Then call the listeners callFailureListeners(me, scaleDownTargetNodeID); callClosingListeners(); internalClose(); for (Channel channel : channels.values()) { channel.returnBlocking(me); } }
@Override public String toString() { return this.getClass().getSimpleName() + "[errorType=" + type + " message=" + getMessage() + "]"; } }
@Override public String toString() { return this.getClass().getSimpleName() + "[errorType=" + type + " message=" + getMessage() + "]"; } }
@Override public String toString() { return this.getClass().getSimpleName() + "[errorType=" + type + " message=" + getMessage() + "]"; } }
@Override public ActiveMQBuffer getBodyBuffer() { try { checkBuffer(); } catch (ActiveMQException e) { throw new RuntimeException(e.getMessage(), e); } return writableBuffer; }
@Override public ActiveMQBuffer getBodyBuffer() { try { checkBuffer(); } catch (ActiveMQException e) { throw new RuntimeException(e.getMessage(), e); } return writableBuffer; }
@Override public ActiveMQBuffer getBodyBuffer() { try { checkBuffer(); } catch (ActiveMQException e) { throw new RuntimeException(e.getMessage(), e); } return writableBuffer; }
@Override public void connectionException(Object connectionID, ActiveMQException me) { RemotingConnection connection = connectionMap.get(connectionID); if (connection != null) { log.info("Connection " + connection.getRemoteAddress() + " exception: " + me.getMessage()); connection.fail(me); } else { log.error("Connection with id " + connectionID + " not found in connectionException"); } }
@Override public boolean removeMessage(final long messageID) throws Exception { checkStarted(); clearIO(); try { return queue.deleteReference(messageID); } catch (ActiveMQException e) { throw new IllegalStateException(e.getMessage()); } finally { blockOnIO(); } }
@Override public void setJMSCorrelationIDAsBytes(final byte[] correlationID) throws JMSException { try { MessageUtil.setJMSCorrelationIDAsBytes(message, correlationID); } catch (ActiveMQException e) { JMSException ex = new JMSException(e.getMessage()); ex.initCause(e); throw ex; } }
@Override public void setJMSCorrelationIDAsBytes(final byte[] correlationID) throws JMSException { try { MessageUtil.setJMSCorrelationIDAsBytes(message, correlationID); } catch (ActiveMQException e) { JMSException ex = new JMSException(e.getMessage()); ex.initCause(e); throw ex; } }
@Override public void deleteAddress(String name, boolean force) throws Exception { checkStarted(); clearIO(); try { server.removeAddressInfo(new SimpleString(name), null, force); } catch (ActiveMQException e) { throw new IllegalStateException(e.getMessage()); } finally { blockOnIO(); } }
@Override public void encodeRest(final ActiveMQBuffer buffer) { buffer.writeInt(exception.getType().getCode()); buffer.writeNullableString(exception.getMessage()); }
@Override public void encodeRest(final ActiveMQBuffer buffer) { buffer.writeInt(exception.getType().getCode()); buffer.writeNullableString(exception.getMessage()); }
@Override public void encodeRest(final ActiveMQBuffer buffer) { buffer.writeInt(exception.getType().getCode()); buffer.writeNullableString(exception.getMessage()); }