* We need to catch checked and unchecked exceptions here so we can create an ActionSequeceException with
* contextual information, including the root cause. Allowing unchecked exceptions to pass through would
* prevent valuable feedback in the log or response.
*/
} catch ( Throwable t ) {
throw new ActionInitializationException( Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0016_COMPONENT_INITIALIZE_FAILED" ), t, //$NON-NLS-1$
session.getName(), instanceId, getActionSequence().getSequenceName(), component.getActionDefinition() );
}
if ( !initResult ) {
status = IRuntimeContext.RUNTIME_STATUS_INITIALIZE_FAIL;
audit( MessageTypes.COMPONENT_EXECUTE_FAILED, MessageTypes.VALIDATION, Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0016_COMPONENT_INITIALIZE_FAILED" ), 0 ); //$NON-NLS-1$
if ( doneListener != null ) {
doneListener.actionComplete( this );
}
throw new ActionInitializationException( Messages.getInstance().getErrorString(
"RuntimeContext.ERROR_0016_COMPONENT_INITIALIZE_FAILED" ), //$NON-NLS-1$
session.getName(), instanceId, getActionSequence().getSequenceName(), component.getActionDefinition() );
}
try {