@Override public final SystemException transactionNoLongerActive() { final SystemException result = new SystemException(String.format(getLoggingLocale(), transactionNoLongerActive$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noMoreDestinations = "EJBCLIENT000409: No more destinations are available";
@Override public final SystemException negativeTxnTimeout() { final SystemException result = new SystemException(String.format(getLoggingLocale(), negativeTxnTimeout$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String alreadyAssociated = "WFTXN0007: A transaction is already associated with the current thread";
@Override public final SystemException commitOnImported() { final SystemException result = new SystemException(String.format(getLoggingLocale(), commitOnImported$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String rollbackOnImported = "WFTXN0032: Rollback not allowed on imported transaction";
@Override public final SystemException expectedParameter(final int expected, final int actual) { final SystemException result = new SystemException(String.format(getLoggingLocale(), expectedParameter$str(), expected, actual)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String expectedParameterXa = "WFTXN0052: Expected parameter with ID 0x%02x, got parameter with ID 0x%02x instead";
@Override public final SystemException protocolError() { final SystemException result = new SystemException(String.format(getLoggingLocale(), protocolError$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String operationInterrupted = "WFTXN0015: The protocol operation was interrupted locally";
@Override public final SystemException rollbackOnImported() { final SystemException result = new SystemException(String.format(getLoggingLocale(), rollbackOnImported$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String multipleProvidersRegistered = "WFTXN0033: Multiple remote transaction providers registered on endpoint: %s";
@Override public final SystemException connectionInterrupted() { final SystemException result = new SystemException(String.format(getLoggingLocale(), connectionInterrupted$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unknownResponse = "WFTXN0044: Unknown response received from peer";
@Override public final SystemException peerSystemException() { final SystemException result = new SystemException(String.format(getLoggingLocale(), peerSystemException$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String peerSecurityException = "WFTXN0013: The peer threw a SecurityException; see peer logs for more information";
@Override public final SystemException operationInterrupted() { final SystemException result = new SystemException(String.format(getLoggingLocale(), operationInterrupted$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String transactionRolledBackByPeer = "WFTXN0016: The remote peer rolled back the transaction";
@Override public final SystemException unknownResponse() { final SystemException result = new SystemException(String.format(getLoggingLocale(), unknownResponse$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String responseFailed = "WFTXN0045: Failed to receive a response from peer";
@Override public final SystemException couldNotEnlist() { final SystemException result = new SystemException(String.format(getLoggingLocale(), couldNotEnlist$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidTransactionConnection = "WFTXN0069: Connection does not match the transaction; the connection may have closed";
@Override public final SystemException suspendedCannotCreateNew() { final SystemException result = new SystemException(String.format(getLoggingLocale(), suspendedCannotCreateNew$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String suspendedCannotImportXa = "WFTXN0083: Cannot import a new transaction on a suspended server";
@Override public final SystemException failedToReceive(final IOException e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), failedToReceive$str())); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToSend = "WFTXN0011: Failed to send protocol message to remote peer";
@Override public final SystemException failedToSend(final Exception e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), failedToSend$str())); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String peerSystemException = "WFTXN0012: The peer threw a SystemException; see peer logs for more information";
@Override public final SystemException failedToAcquireConnection(final IOException reason) { final SystemException result = new SystemException(String.format(getLoggingLocale(), failedToAcquireConnection$str())); result.initCause(reason); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String duplicateEnlistment = "WFTXN0022: The resource manager for remote connection to %s was already enlisted in a transaction";
@Override public final SystemException connectionFailed(final Throwable cause) { final SystemException result = new SystemException(String.format(getLoggingLocale(), connectionFailed$str())); result.initCause(cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String connectionInterrupted = "WFTXN0043: Connection to remote transaction service interrupted";
@Override public final SystemException unexpectedException(final Exception e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), unexpectedException$str())); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unknownTransactionType = "WFTXN0086: Unexpected transaction type encountered; expected %s but encountered %s";
@Override public final SystemException createXAResourceRecoveryFileFailed(final Path filePath, final IOException e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), createXAResourceRecoveryFileFailed$str(), filePath)); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String appendXAResourceRecoveryFileFailed = "WFTXN0092: Failed to append xa resource (%s) to xa recovery file: %s";
@Override public final SystemException setTimeoutFailed(final int timeout, final XAException e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), setTimeoutFailed$str(), timeout)); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String locationAlreadyInitialized = "WFTXN0090: Cannot assign location \"%s\" to transaction because it is already located at \"%s\"";
@Override public final SystemException appendXAResourceRecoveryFileFailed(final URI uri, final Path filePath, final IOException e) { final SystemException result = new SystemException(String.format(getLoggingLocale(), appendXAResourceRecoveryFileFailed$str(), uri, filePath)); result.initCause(e); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String deleteXAResourceRecoveryFileFailed = "WFTXN0093: Failed to delete xa recovery registry file %s on removal of %s";