EmittingThread(HttpEmitterConfig config) { super("HttpPostEmitter-" + instanceCounter.incrementAndGet()); setDaemon(true); timeoutLessThanMinimumException = new TimeoutException( "Timeout less than minimum [" + config.getMinHttpTimeoutMillis() + "] ms." ); // To not showing and writing nonsense and misleading stack trace in logs. timeoutLessThanMinimumException.setStackTrace(new StackTraceElement[]{}); }
@Override public final TimeoutException timedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), timedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String transactionNoLongerActive = "EJBCLIENT000408: Inflowed transaction is no longer active";
@Override public final TimeoutException failToCompleteTaskBeforeTimeOut(final long timeout, final TimeUnit unit) { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), failToCompleteTaskBeforeTimeOut$str(), timeout, unit)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String taskWasCancelled = "WFLYEJB0203: Task was cancelled";
@Override public final TimeoutException operationTimedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), operationTimedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String operationCancelled = "JBTHR00004: Operation was cancelled";
@Override public final TimeoutException opTimedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), opTimedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String propReadForbidden = "XNIO001005: Not allowed to read non-XNIO properties";
EmittingThread(HttpEmitterConfig config) { super("HttpPostEmitter-" + instanceCounter.incrementAndGet()); setDaemon(true); timeoutLessThanMinimumException = new TimeoutException( "Timeout less than minimum [" + config.getMinHttpTimeoutMillis() + "] ms." ); // To not showing and writing nonsense and misleading stack trace in logs. timeoutLessThanMinimumException.setStackTrace(new StackTraceElement[]{}); }
EmittingThread(HttpEmitterConfig config) { super("HttpPostEmitter-" + instanceCounter.incrementAndGet()); setDaemon(true); timeoutLessThanMinimumException = new TimeoutException( "Timeout less than minimum [" + config.getMinHttpTimeoutMillis() + "] ms." ); // To not showing and writing nonsense and misleading stack trace in logs. timeoutLessThanMinimumException.setStackTrace(new StackTraceElement[]{}); }
EmittingThread(HttpEmitterConfig config) { super("HttpPostEmitter-" + instanceCounter.incrementAndGet()); setDaemon(true); timeoutLessThanMinimumException = new TimeoutException( "Timeout less than minimum [" + config.getMinHttpTimeoutMillis() + "] ms." ); // To not showing and writing nonsense and misleading stack trace in logs. timeoutLessThanMinimumException.setStackTrace(new StackTraceElement[]{}); }
EmittingThread(HttpEmitterConfig config) { super("HttpPostEmitter-" + instanceCounter.incrementAndGet()); setDaemon(true); timeoutLessThanMinimumException = new TimeoutException( "Timeout less than minimum [" + config.getMinHttpTimeoutMillis() + "] ms." ); // To not showing and writing nonsense and misleading stack trace in logs. timeoutLessThanMinimumException.setStackTrace(new StackTraceElement[]{}); }
@Override public final TimeoutException operationTimedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), operationTimedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String operationCancelled = "JBTHR00004: Operation was cancelled";
@Override public final TimeoutException timedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), timedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String transactionNoLongerActive = "EJBCLIENT000408: Inflowed transaction is no longer active";
@Override public final TimeoutException operationTimedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), operationTimedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String operationCancelled = "JBTHR00004: Operation was cancelled";
@Override public final TimeoutException opTimedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), opTimedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String propReadForbidden = "XNIO001005: Not allowed to read non-XNIO properties";
@Override public final TimeoutException timedOut() { final TimeoutException result = new TimeoutException(String.format(getLoggingLocale(), timedOut$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String transactionNoLongerActive = "EJBCLIENT000408: Inflowed transaction is no longer active";
TimeoutException timeoutException = new TimeoutException(timeoutErrorMessage); if (e.getStackTrace() != null) { timeoutException.setStackTrace(e.getStackTrace());
TimeoutException timeoutException = new TimeoutException(timeoutErrorMessage); if (e.getStackTrace() != null) { timeoutException.setStackTrace(e.getStackTrace());