public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { rep.save( meta, versionComment, new ProgressMonitorAdapter( monitor ) ); } catch ( KettleException e ) { throw new InvocationTargetException( e, BaseMessages.getString( PKG, "TransSaveProgressDialog.Exception.ErrorSavingTransformation" ) + e.toString() ); } } };
public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { db = new Database( Spoon.loggingObject, dbMeta ); try { db.connect(); String sql = dbMeta.getDatabaseInterface().getSelectCountStatement( tableName ); RowMetaAndData row = db.getOneRow( sql ); size = row.getRowMeta().getInteger( row.getData(), 0 ); if ( monitor.isCanceled() ) { throw new InvocationTargetException( new Exception( "This operation was cancelled!" ) ); } } catch ( KettleException e ) { throw new InvocationTargetException( e, "Couldn't get a result because of an error :" + e.toString() ); } finally { db.disconnect(); } } };
public void dispose( StepMetaInterface smi, StepDataInterface sdi ) { meta = (LDAPOutputMeta) smi; data = (LDAPOutputData) sdi; if ( data.connection != null ) { try { // Close connection data.connection.close(); } catch ( KettleException e ) { logError( BaseMessages.getString( PKG, "LDAPOutput.Exception.ErrorDisconecting", e.toString() ) ); } } super.dispose( smi, sdi ); }
public void dispose( StepMetaInterface smi, StepDataInterface sdi ) { meta = (LDAPInputMeta) smi; data = (LDAPInputData) sdi; if ( data.connection != null ) { try { // close connection data.connection.close(); } catch ( KettleException e ) { logError( BaseMessages.getString( PKG, "LDAPInput.Exception.ErrorDisconecting", e.toString() ) ); } } data.attributesBinary = null; super.dispose( smi, sdi ); }
public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { db = new Database( Spoon.loggingObject, dbMeta ); try { db.connect(); if ( limit > 0 ) { db.setQueryLimit( limit ); } rows = db.getFirstRows( tableName, limit, new ProgressMonitorAdapter( monitor ) ); rowMeta = db.getReturnRowMeta(); } catch ( KettleException e ) { throw new InvocationTargetException( e, "Couldn't find any rows because of an error :" + e.toString() ); } finally { db.disconnect(); } } };
public void dispose( StepMetaInterface smi, StepDataInterface sdi ) { if ( log.isBasic() ) { logBasic( "Finished reading query, closing connection." ); } try { closePreviousQuery(); } catch ( KettleException e ) { logError( "Unexpected error closing query : " + e.toString() ); setErrors( 1 ); stopAll(); } finally { if ( data.db != null ) { data.db.disconnect(); } } super.dispose( smi, sdi ); }
report.append( BaseMessages.getString( PKG, "DatabaseMeta.report.ConnectionWithPartError", databaseMeta.getName(), partitioningInformation[i].getPartitionId(), e.toString() ) + Const.CR ); report.append( Const.getStackTracker( e ) + Const.CR ); report.append( BaseMessages.getString( PKG, "DatabaseMeta.report.ConnectionError", databaseMeta .getName() ) + e.toString() + Const.CR ); report.append( Const.getStackTracker( e ) + Const.CR ); success = false;
tmpExporter = rep.getExporter(); } catch ( KettleException e ) { log.logError( RepositoryExportProgressDialog.class.toString(), "Error creating repository: " + e.toString() ); log.logError( Const.getStackTracker( e ) ); new ErrorDialog( shell, BaseMessages.getString( PKG, "RepositoryExportDialog.ErrorExport.Title" ), BaseMessages
public void dispose( StepMetaInterface smi, StepDataInterface sdi ) { meta = (ExcelInputMeta) smi; data = (ExcelInputData) sdi; if ( data.workbook != null ) { data.workbook.close(); } if ( data.file != null ) { try { data.file.close(); } catch ( Exception e ) { // Ignore close errors } } try { data.errorHandler.close(); } catch ( KettleException e ) { if ( log.isDebug() ) { logDebug( BaseMessages.getString( PKG, "ExcelInput.Error.CouldNotCloseErrorHandler", e.toString() ) ); logDebug( Const.getStackTracker( e ) ); } } super.dispose( smi, sdi ); } }
new ErrorDialog( shell, BaseMessages.getString( PKG, "System.Dialog.Error.Title" ), BaseMessages .getString( PKG, "SimpleMappingDialog.Exception.ErrorGettingMappingSourceAndTargetFields", e .toString() ), e );
errorMessage = e.toString();
if ( getStepMeta().isDoingErrorHandling() ) { sendToErrorRow = true; errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "AccessInput.ErrorInStepRunning", e.getMessage() ) );
if ( getStepMeta().isDoingErrorHandling() ) { sendToErrorRow = true; errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "LDIFInput.ErrorInStepRunning", e.getMessage() ) );
errorMessage = e.toString(); } else {
errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "FuzzyMatch.Log.ErrorInStepRunning" ) + e.getMessage() );
if ( getStepMeta().isDoingErrorHandling() ) { sendToErrorRow = true; errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "PropertyInput.ErrorInStepRunning", e.getMessage() ) );
if ( getStepMeta().isDoingErrorHandling() ) { sendToErrorRow = true; errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "SalesforceInput.log.Exception", e.getMessage() ) );
errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "DynamicSQLRow.Log.ErrorInStepRunning" ) + e.getMessage() );
errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "NumberRange.Log.ErrorInStepRunning" ) + e.getMessage() );
if ( getStepMeta().isDoingErrorHandling() ) { sendToErrorRow = true; errorMessage = e.toString(); } else { logError( BaseMessages.getString( PKG, "TableExists.ErrorInStepRunning" + " : " + e.getMessage() ) );