Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: error while running ktr using standalone java

  1. #1
    Join Date
    Aug 2008
    Posts
    3

    Default error while running ktr using standalone java

    hi iam running the attched suppliertransformation.ktr using java as follows

    String ktrfilename="C:\\Users\\sk20306\\Desktop\\KSIVATRANS\\suppliertransformation.ktr";

    System.out.println("Kx got"
    + " ktrfilename is :"+ktrfilename);
    System.setProperty("pentaho.kettle.home","D:\\data-integration");
    System.setProperty("pentaho.kettle.plugins.dir","D:\\data-integration\\plugins");
    EnvUtil.environmentInit();


    // TransMeta transMeta = buildTransform();
    TransMeta transMeta = new TransMeta(ktrfilename);
    //Trans trans = buildTransform();
    Trans trans = new Trans(transMeta);

    trans.execute(null); // You can pass arguments instead of null.
    trans.waitUntilFinished();
    System.out.println("Kx transformation is executed :");
    if (trans.getErrors() > 0) {
    throw new RuntimeException(
    "There were errors during transformation execution.");
    }
    } catch (KettleException e) {
    // TODO Put your exception-handling code here.
    e.printStackTrace();
    System.out.println(e);

    }

    but im getting the following error, i included all the jars in data-intergration/lib please help me

    Kx got ktrfilename is :C:\Users\sk20306\Desktop\KSIVATRANS\123.ktr
    INFO 26-11 14:01:10,126 - Using "C:\Users\sk20306\AppData\Local\Temp\vfs_cache" as temporary files store.
    org.pentaho.di.core.exception.KettleXMLException:
    Error reading object from XML file

    Unable to load step info from XML step nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.



    at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2833)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2329)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2294)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2281)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2258)
    at org.pentaho.di.trans.TransMeta.<init>(TransMeta.java:2233)
    at KssTransform.runTransformation(KssTransform.java:69)
    at KssTransform.main(KssTransform.java:50)
    Caused by: org.pentaho.di.core.exception.KettleXMLException:
    Unable to load step info from XML step nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


    at org.pentaho.di.trans.step.StepMeta.<init>(StepMeta.java:295)
    at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2486)
    ... 7 more
    Caused by: org.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.

    at org.pentaho.di.trans.step.StepMeta.<init>(StepMeta.java:237)
    ... 8 more
    org.pentaho.di.core.exception.KettleXMLException:
    Error reading object from XML file

    Unable to load step info from XML step nodeorg.pentaho.di.core.exception.KettleStepLoaderException:
    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.


    Unable to load class for step/plugin with id [TextFileOutput]. Check if the plugin is available in the plugins subdirectory of the Kettle distribution.
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.