org.pentaho.di.core.exception.KettleDatabaseException: Unable to get database metadata from this database connection at java.lang.Thread.run (Thread.java:745) at org.pentaho.di.ui.spoon.trans.TransGraph$27.run (TransGraph.java:3989) at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120) at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:606) at org.pentaho.di.core.database.Database.rollback (Database.java:826) at org.pentaho.di.core.database.Database.rollback (Database.java:834) at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2774)

Pentaho BI Platform Tracking | Ihar Chekan | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    "Getting started Transformation.ktr" fails on mavericks, while using shipped 1.7.0_60 java version. This is a mac-specific issue. Transformation works as expected while using java version 1.6 or 1.7.0_25. notice: If I run "Run all sample transformations" job - all samples pass. And if I run "Getting started Transformation.ktr" after the job - it will pass. After spoon restart the transformation is failing again. path: 1. Launch spoon, using 1.7.0_60 java version. 2. Open Sample "Getting started Transformation.ktr" and run it. Stacktrace: 2014/09/24 12:40:19 - Spoon - Launching transformation [Getting Started Transformation]... 2014/09/24 12:40:19 - Spoon - Started the transformation execution. 2014/09/24 12:40:20 - Getting Started Transformation - Dispatching started for transformation [Getting Started Transformation] 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : An error occurred intialising this step: 2014/09/24 12:40:20 - Write to Database.0 - Error occured while trying to connect to the database 2014/09/24 12:40:20 - Write to Database.0 - 2014/09/24 12:40:20 - Write to Database.0 - javax.naming.NoInitialContextException: Cannot instantiate class: org.osjava.sj.SimpleContextFactory [Root exception is java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory] 2014/09/24 12:40:20 - Write to Database.0 - Cannot instantiate class: org.osjava.sj.SimpleContextFactory 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Error initializing step [Write to Database] 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Step [Write to Database.0] failed to initialize! 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Unexpected error rolling back the database connection. 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 2014/09/24 12:40:20 - Write to Database.0 - Unable to get database metadata from this database connection 2014/09/24 12:40:20 - Write to Database.0 - at java.lang.Thread.run (Thread.java:745) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run (TransGraph.java:3989) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:606) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback (Database.java:826) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback (Database.java:834) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2774) 2014/09/24 12:40:20 - Write to Database.0 - 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2777) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback(Database.java:834) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback(Database.java:826) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:606) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1120) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run(TransGraph.java:3989) 2014/09/24 12:40:20 - Write to Database.0 - at java.lang.Thread.run(Thread.java:745) 2014/09/24 12:40:20 - Write to Database.0 - Caused by: java.lang.NullPointerException 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2774) 2014/09/24 12:40:20 - Write to Database.0 - ... 6 more 2014/09/24 12:40:20 - Spoon - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Getting Started Transformation: preparing transformation execution failed 2014/09/24 12:40:20 - Spoon - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : org.pentaho.di.core.exception.KettleException: 2014/09/24 12:40:20 - Spoon - We failed to initialize at least one step. Execution can not begin! 2014/09/24 12:40:20 - Spoon - 2014/09/24 12:40:20 - Spoon - 2014/09/24 12:40:20 - Spoon - at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1149) 2014/09/24 12:40:20 - Spoon - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run(TransGraph.java:3989) 2014/09/24 12:40:20 - Spoon - at java.lang.Thread.run(Thread.java:745) 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Errors detected! 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Errors detected!

    Pentaho BI Platform Tracking | 3 years ago | Ihar Chekan
    org.pentaho.di.core.exception.KettleDatabaseException: Unable to get database metadata from this database connection at java.lang.Thread.run (Thread.java:745) at org.pentaho.di.ui.spoon.trans.TransGraph$27.run (TransGraph.java:3989) at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120) at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:606) at org.pentaho.di.core.database.Database.rollback (Database.java:826) at org.pentaho.di.core.database.Database.rollback (Database.java:834) at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2774)
  2. 0

    "Getting started Transformation.ktr" fails on mavericks, while using shipped 1.7.0_60 java version. This is a mac-specific issue. Transformation works as expected while using java version 1.6 or 1.7.0_25. notice: If I run "Run all sample transformations" job - all samples pass. And if I run "Getting started Transformation.ktr" after the job - it will pass. After spoon restart the transformation is failing again. path: 1. Launch spoon, using 1.7.0_60 java version. 2. Open Sample "Getting started Transformation.ktr" and run it. Stacktrace: 2014/09/24 12:40:19 - Spoon - Launching transformation [Getting Started Transformation]... 2014/09/24 12:40:19 - Spoon - Started the transformation execution. 2014/09/24 12:40:20 - Getting Started Transformation - Dispatching started for transformation [Getting Started Transformation] 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : An error occurred intialising this step: 2014/09/24 12:40:20 - Write to Database.0 - Error occured while trying to connect to the database 2014/09/24 12:40:20 - Write to Database.0 - 2014/09/24 12:40:20 - Write to Database.0 - javax.naming.NoInitialContextException: Cannot instantiate class: org.osjava.sj.SimpleContextFactory [Root exception is java.lang.ClassNotFoundException: org.osjava.sj.SimpleContextFactory] 2014/09/24 12:40:20 - Write to Database.0 - Cannot instantiate class: org.osjava.sj.SimpleContextFactory 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Error initializing step [Write to Database] 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Step [Write to Database.0] failed to initialize! 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Unexpected error rolling back the database connection. 2014/09/24 12:40:20 - Write to Database.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 2014/09/24 12:40:20 - Write to Database.0 - Unable to get database metadata from this database connection 2014/09/24 12:40:20 - Write to Database.0 - at java.lang.Thread.run (Thread.java:745) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run (TransGraph.java:3989) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:606) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback (Database.java:826) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback (Database.java:834) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2774) 2014/09/24 12:40:20 - Write to Database.0 - 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2777) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback(Database.java:834) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.rollback(Database.java:826) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:606) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1120) 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run(TransGraph.java:3989) 2014/09/24 12:40:20 - Write to Database.0 - at java.lang.Thread.run(Thread.java:745) 2014/09/24 12:40:20 - Write to Database.0 - Caused by: java.lang.NullPointerException 2014/09/24 12:40:20 - Write to Database.0 - at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2774) 2014/09/24 12:40:20 - Write to Database.0 - ... 6 more 2014/09/24 12:40:20 - Spoon - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Getting Started Transformation: preparing transformation execution failed 2014/09/24 12:40:20 - Spoon - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : org.pentaho.di.core.exception.KettleException: 2014/09/24 12:40:20 - Spoon - We failed to initialize at least one step. Execution can not begin! 2014/09/24 12:40:20 - Spoon - 2014/09/24 12:40:20 - Spoon - 2014/09/24 12:40:20 - Spoon - at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1149) 2014/09/24 12:40:20 - Spoon - at org.pentaho.di.ui.spoon.trans.TransGraph$27.run(TransGraph.java:3989) 2014/09/24 12:40:20 - Spoon - at java.lang.Thread.run(Thread.java:745) 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Errors detected! 2014/09/24 12:40:20 - Getting Started Transformation - ERROR (version 5.2.0.0, build 1 from 2014-09-21_16-13-06 by buildguy) : Errors detected!

    Pentaho BI Platform Tracking | 3 years ago | Ihar Chekan
    org.pentaho.di.core.exception.KettleDatabaseException: Unable to get database metadata from this database connection at java.lang.Thread.run (Thread.java:745) at org.pentaho.di.ui.spoon.trans.TransGraph$27.run (TransGraph.java:3989) at org.pentaho.di.trans.Trans.prepareExecution (Trans.java:1120) at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose (TableOutput.java:606) at org.pentaho.di.core.database.Database.rollback (Database.java:826) at org.pentaho.di.core.database.Database.rollback (Database.java:834) at org.pentaho.di.core.database.Database.getDatabaseMetaData (Database.java:2774)
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 2 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.di.core.database.Database.getDatabaseMetaData()
    2. org.pentaho.di
      TransGraph$27.run
      1. org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:2774)
      2. org.pentaho.di.core.database.Database.rollback(Database.java:834)
      3. org.pentaho.di.core.database.Database.rollback(Database.java:826)
      4. org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:606)
      5. org.pentaho.di.trans.Trans.prepareExecution(Trans.java:1120)
      6. org.pentaho.di.ui.spoon.trans.TransGraph$27.run(TransGraph.java:3989)
      6 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame