try {
if ( debug ) {
Logger.debug( PentahoSystem.class, "System Listener Start: " + systemListener.getClass().getName() ); //$NON-NLS-1$
}
if ( !systemListener.startup( session ) ) {
throw new PentahoSystemException( Messages.getInstance().getErrorString(
"PentahoSystem.ERROR_0014_STARTUP_FAILURE", systemListener.getClass().getName() ) ); //$NON-NLS-1$
}
if ( debug ) {
Logger
.debug( PentahoSystem.class, "System Listener Complete: " + systemListener.getClass().getName() ); //$NON-NLS-1$
}
} catch ( Throwable e ) {
throw new PentahoSystemException( Messages.getInstance().getErrorString(
"PentahoSystem.ERROR_0014_STARTUP_FAILURE", systemListener.getClass().getName() ), e ); //$NON-NLS-1$
} finally {
PentahoSystem.systemExitPoint(); // commit transaction
}
return null;
}
} );
} catch ( Exception e ) {
if ( e instanceof PentahoSystemException ) {
throw (PentahoSystemException) e;
} else {
throw new PentahoSystemException( e );
}
}
}
}