Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/eb15f8545e3382351e20 to your computer and use it in GitHub Desktop.
Save jrichardsz/eb15f8545e3382351e20 to your computer and use it in GitHub Desktop.
Error produced when a transformation that uses a jndi datasource is invoked from java : javax.naming.NoInitialContextException: Cannot instantiate class: org.osjava.sj.SimpleContextFactory [Root exception is java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory]
2015/10/06 12:26:36 - transformation_with_jndi - Dispatching started for transformation [transformation_with_jndi]
2015/10/06 12:26:36 - Table input.0 - ERROR (version 5.0.0.1.19046, build 1 from 2013-09-11_13-51-13 by buildguy) : An error occurred, processing will be stopped:
2015/10/06 12:26:36 - Table input.0 - Error occured while trying to connect to the database
2015/10/06 12:26:36 - Table input.0 -
2015/10/06 12:26:36 - Table input.0 - javax.naming.NoInitialContextException: Cannot instantiate class: org.osjava.sj.SimpleContextFactory [Root exception is java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory]
2015/10/06 12:26:36 - Table input.0 - Cannot instantiate class: org.osjava.sj.SimpleContextFactory
2015/10/06 12:26:36 - transformation_with_jndi - ERROR (version 5.0.0.1.19046, build 1 from 2013-09-11_13-51-13 by buildguy) : Something went wrong while trying to stop the transformation: org.pentaho.di.core.exception.KettleDatabaseException:
2015/10/06 12:26:36 - transformation_with_jndi - Unable to get database metadata from this database connection
2015/10/06 12:26:36 - transformation_with_jndi - at java.lang.Thread.run (null:-1)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.StepInitThread.run (StepInitThread.java:65)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.init (TableInput.java:363)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.BaseStep.stopAll (BaseStep.java:2605)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.Trans.stopAll (Trans.java:1729)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.stopRunning (TableInput.java:303)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.cancelQuery (Database.java:640)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2653)
2015/10/06 12:26:36 - transformation_with_jndi - ERROR (version 5.0.0.1.19046, build 1 from 2013-09-11_13-51-13 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2015/10/06 12:26:36 - transformation_with_jndi - Unable to get database metadata from this database connection
2015/10/06 12:26:36 - transformation_with_jndi - at java.lang.Thread.run (null:-1)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.StepInitThread.run (StepInitThread.java:65)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.init (TableInput.java:363)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.BaseStep.stopAll (BaseStep.java:2605)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.Trans.stopAll (Trans.java:1729)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.stopRunning (TableInput.java:303)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.cancelQuery (Database.java:640)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2653)
2015/10/06 12:26:36 - transformation_with_jndi -
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2655)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.cancelQuery(Database.java:640)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.stopRunning(TableInput.java:303)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.Trans.stopAll(Trans.java:1729)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.BaseStep.stopAll(BaseStep.java:2605)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.steps.tableinput.TableInput.init(TableInput.java:363)
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.trans.step.StepInitThread.run(StepInitThread.java:65)
2015/10/06 12:26:36 - transformation_with_jndi - at java.lang.Thread.run(Unknown Source)
2015/10/06 12:26:36 - transformation_with_jndi - Caused by: java.lang.NullPointerException
2015/10/06 12:26:36 - transformation_with_jndi - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2653)
2015/10/06 12:26:36 - transformation_with_jndi - ... 7 more
2015/10/06 12:26:36 - Table input.0 - ERROR (version 5.0.0.1.19046, build 1 from 2013-09-11_13-51-13 by buildguy) : Error initializing step [Table input]
2015/10/06 12:26:36 - transformation_with_jndi - ERROR (version 5.0.0.1.19046, build 1 from 2013-09-11_13-51-13 by buildguy) : Step [Table input.0] failed to initialize!
2015/10/06 12:26:36 - Table input.0 - Finished reading query, closing connection.
org.pentaho.di.core.exception.KettleException:
We failed to initialize at least one step. Execution can not begin!
at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1068)
at org.pentaho.di.trans.Trans.execute(Trans.java:578)
at org.jricharsz.pentaho.test.ktr.jndi.ExecuteSimpleTransformationWithJndiDatasource.main(ExecuteSimpleTransformationWithJndiDatasource.java:38)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment