Hi,
I have developed transformations in spoon and now I want to execute the same through java. I have set the logging parameters such as Log Connection, Log Table name etc;for transformation from the transformation settings. When I run the transformation from Spoon,the logging works and transformation ends successfully.
But when I execute the same KTR in java, I get the following error:
Exception in thread "main" java.lang.IncompatibleClassChangeError: Class org.pentaho.di.core.logging.TransLogTable does not implement the requested interface org.pentaho.di.core.logging.LogTableCoreInterface
at org.pentaho.di.core.database.Database.writeLogRecord(Database.java:3166)
at org.pentaho.di.trans.Trans.beginProcessing(Trans.java:2286)
at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:974)
at org.pentaho.di.trans.Trans.execute(Trans.java:607)
at com.nri.dwh.etl.LoadandExecuteTransformations.runTransformation(LoadandExecuteTransformations.java:31)
Moreover, is there a way to redirect the logs in a log file instead of database? I am using logback.xml which is almost similar to log4j.xml.
I have attached the logback.xml file herewith.
I have developed transformations in spoon and now I want to execute the same through java. I have set the logging parameters such as Log Connection, Log Table name etc;for transformation from the transformation settings. When I run the transformation from Spoon,the logging works and transformation ends successfully.
But when I execute the same KTR in java, I get the following error:
Exception in thread "main" java.lang.IncompatibleClassChangeError: Class org.pentaho.di.core.logging.TransLogTable does not implement the requested interface org.pentaho.di.core.logging.LogTableCoreInterface
at org.pentaho.di.core.database.Database.writeLogRecord(Database.java:3166)
at org.pentaho.di.trans.Trans.beginProcessing(Trans.java:2286)
at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:974)
at org.pentaho.di.trans.Trans.execute(Trans.java:607)
at com.nri.dwh.etl.LoadandExecuteTransformations.runTransformation(LoadandExecuteTransformations.java:31)
Moreover, is there a way to redirect the logs in a log file instead of database? I am using logback.xml which is almost similar to log4j.xml.
I have attached the logback.xml file herewith.