Examples of KettleException


Examples of org.pentaho.di.core.exception.KettleException

          for (int i = 0; i < bytes.length; i++) {
            Object rItem = arr.get(i);
            if (rItem instanceof Number) {
              bytes[i] = ((Number) rItem).byteValue();
            } else {
              throw new KettleException("Found a non-number in Binary field " + outField.getName() + ": " + rItem.toString());
            }
          }
          javaValue = bytes;
          break;
        case ValueMeta.TYPE_BIGNUMBER:
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

        return false;
      }

    } catch (EvalFailedException e) {
      if (!data.forcedHalt) {
        throw new KettleException(e);
      }
      // transformation has been stopped
      return false;
    } catch (ThreadKill e) {
      if (!data.forcedHalt) {
        throw new KettleException(e);
      }
      // transformation has been stopped
      return false;
    }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

      // save gem home
      rep.saveStepAttribute(id_transformation, id_step, "gem_home", gemHome);
     
     
    } catch (Exception e) {
      throw new KettleException(BaseMessages.getString(PKG, "RubyStep.Exception.UnableToSaveStepInfoToRepository") + id_step, e);
    }
  } 
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

      // load gem home
      gemHome = Const.NVL(rep.getStepAttributeString(id_step, "gem_home"),"");
     
     
    } catch (Exception e) {
      throw new KettleException(BaseMessages.getString(PKG, "RubyStep.Exception.UnexpectedErrorInReadingStepInfo"), e);
    }
  }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

      AccessKey = rep.getJobEntryAttributeString(id_jobentry, ACCESSKEY);
      PrivateKey = rep.getJobEntryAttributeString(id_jobentry, PRIVATEKEY);
      S3Bucket = rep.getJobEntryAttributeString(id_jobentry, S3BUCKET);
      FilenameToSend = rep.getJobEntryAttributeString(id_jobentry, FILENAMETOSEND);
    } catch (KettleException dbe) {
      throw new KettleException(
          "Unable to load job entry for type file exists from the repository for id_jobentry="
              + id_jobentry, dbe);
    }
  }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

      rep.saveJobEntryAttribute(id_job, getID(), ACCESSKEY, AccessKey);
      rep.saveJobEntryAttribute(id_job, getID(), PRIVATEKEY, PrivateKey);
      rep.saveJobEntryAttribute(id_job, getID(), S3BUCKET, S3Bucket);
      rep.saveJobEntryAttribute(id_job, getID(), FILENAMETOSEND, FilenameToSend);
    } catch (KettleDatabaseException dbe) {
      throw new KettleException(
          "unable to save jobentry of type 'file exists' to the repository for id_job="
              + id_job, dbe);
    }
  }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

    {
      return transformation.getXML().getBytes("UTF8");
    }
    catch (UnsupportedEncodingException e)
    {
      throw new KettleException(e);
    }
  }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

      entry.addPropertyChangeListener("validated", new PreviewChangeListener());
      return entry;
    }
    catch (ReportDataFactoryException e)
    {
      throw new KettleException(e);
    }

  }
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

  {
    try{
      rep.saveStepAttribute(id_transformation, id_step, "outputfield", outputField); //$NON-NLS-1$
    }
    catch(Exception e){
      throw new KettleException("Unable to save step into repository: "+id_step, e);
    }
  }   
View Full Code Here

Examples of org.pentaho.di.core.exception.KettleException

  public void readRep(Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases) throws KettleException  {
    try{
      outputField  = rep.getStepAttributeString(id_step, "outputfield"); //$NON-NLS-1$
    }
    catch(Exception e){
      throw new KettleException("Unable to load step from repository", e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.