@Override public final BatchRuntimeException noBatchEnvironmentFound(final ClassLoader cl) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), noBatchEnvironmentFound$str(), cl)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unauthorized = "WFLYBATCH000020: Permission denied. User %s does not have %s permissions.";
@Override public final BatchRuntimeException failToObtainConnection(final Throwable cause, final Object connectionSource, final Object props) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToObtainConnection2$str(), connectionSource, props), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToLoadSqlProperties = "JBERET000623: Failed to load sql properties %s";
@Override public final BatchRuntimeException failToLoadSqlProperties(final Throwable cause, final String sqlFile) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToLoadSqlProperties$str(), sqlFile), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToCreateTables = "JBERET000624: Failed to create tables for batch job repository database product name %s with DDL %s";
@Override public final BatchRuntimeException unexpectedXmlElement(final String element, final Location location) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), unexpectedXmlElement$str(), element, location)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToGetAttribute = "JBERET000628: Failed to get XML attribute '%s' at location %s";
@Override public final BatchRuntimeException batchEnvironmentNotFound() { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), batchEnvironmentNotFound$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String scriptNotInvocable = "JBERET000641: The script is not Invocable: %s";
@Override public final BatchRuntimeException scriptNotInvocable(final String scriptContent) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), scriptNotInvocable$str(), scriptContent)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToCreateCacheManager = "JBERET000642: Failed to create cache manager: %s";
@Override public final BatchRuntimeException stepReachedStartLimit(final String stepName, final int startLimit, final int startCount) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), stepReachedStartLimit$str(), stepName, startLimit, startCount)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidCheckpointPolicy = "JBERET000614: Invalid chunk checkpoint-policy %s. It must be either item or custom.";
@Override public final BatchRuntimeException failToRunQuery(final Throwable cause, final String sql) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToRunQuery$str(), sql), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unexpectedXmlElement = "JBERET000627: Unexpected XML element '%s' at location %s";
@Override public final BatchRuntimeException jobExecutionAlreadyExists(final long jobExecutionId) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), jobExecutionAlreadyExists$str(), jobExecutionId)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noSuchJobException = "JBERET000632: The specified job with the name %s does not exist.";
@Override public final BatchRuntimeException failToGetNextId(final Throwable th, final String key) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToGetNextId$str(), key), th); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String splitExecutionTimeout = "JBERET000644: Execution of split %s timed out after %s seconds";
@Override public final BatchRuntimeException failedToSerialize(final Throwable cause, final Serializable value) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failedToSerialize$str(), value), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToDeserialize = "JBERET000653: Failed to deserialize: %s";
@Override public final BatchRuntimeException failedToDeserialize(final Throwable cause, final Serializable value) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failedToDeserialize$str(), value), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failedToGetJdbcRepository = "JBERET000654: Failed to get JdbcRepository.";
@Override public final BatchRuntimeException failToInjectProperty(final Throwable th, final String v, final Field f) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToInjectProperty$str(), v, f), th); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToLookupDataSource = "JBERET000621: Failed to look up datasource by jndi name %s.";
@Override public final BatchRuntimeException failToLookupDataSource(final Throwable cause, final String dataSourceName) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToLookupDataSource$str(), dataSourceName), cause); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToObtainConnection1 = "JBERET000622: Failed to obtain connection from %s";
@Override public final BatchRuntimeException cannotHaveBothNextAttributeAndElement(final Location location, final String nextAttributeValue) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), cannotHaveBothNextAttributeAndElement$str(), location, nextAttributeValue)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String jobInstanceAlreadyExists = "JBERET000630: The job instance: %s already exists in the job repository and cannot be added again.";
@Override public final BatchRuntimeException cannotHaveBothScriptAndRef(final String ref) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), cannotHaveBothScriptAndRef$str(), ref)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String invalidScriptAttributes = "JBERET000637: Invalid script attributes: type = %s, src = %s";
@Override public final BatchRuntimeException failToCreateCacheManager(final Throwable th, final String description) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), failToCreateCacheManager$str(), description), th); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String failToGetNextId = "JBERET000643: Failed to get next id number: %s";
@Override public final BatchRuntimeException splitExecutionTimeout(final String splitId, final long timeoutSeconds) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), splitExecutionTimeout$str(), splitId, timeoutSeconds)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String noSuchJobInstance = "JBERET000645: No job instance %s";
@Override public final BatchRuntimeException noBatchEnvironmentFound(final ClassLoader cl) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), noBatchEnvironmentFound$str(), cl)); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String unauthorized = "WFLYBATCH000020: Permission denied. User %s does not have %s permissions.";
@Override public final BatchRuntimeException invalidConfigProperty(final Throwable throwable, final String key, final String value) { final BatchRuntimeException result = new BatchRuntimeException(String.format(getLoggingLocale(), invalidConfigProperty$str(), key, value), throwable); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String cycleInheritance = "JBERET000634: Cycles detected in job element inheritance: %s";