java.lang.Exception: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper

Pentaho BI Platform Tracking | Will Gorman | 10 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

    When executing an MQL Query in the MQL Query Editor, I received the exception below. Kettle has a dependency on org.pentaho.core.util.DatasourceHelper, which exists within the pentaho core jar, and is no longer included as part of the metadata project. We'll need to either re-include pentaho-core.ar into the metadata project, or separate out the DatasourceHelper and it''s dependencies into another Jar (Note that DatasourceHelper relies on org.pentaho.messages.Messages) java.lang.Exception: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper at org.pentaho.pms.demo.QueryBuilderDialog.executeQuery(QueryBuilderDialog.java:418) at org.pentaho.pms.demo.QueryBuilderDialog.access$5(QueryBuilderDialog.java:402) at org.pentaho.pms.demo.QueryBuilderDialog$7.widgetSelected(QueryBuilderDialog.java:183) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.pms.editor.MetaEditor.testQR(MetaEditor.java:3708) at org.pentaho.pms.editor.MetaEditor$42.widgetSelected(MetaEditor.java:1207) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898) at org.pentaho.pms.editor.MetaEditor.readAndDispatch(MetaEditor.java:787) at org.pentaho.pms.editor.MetaEditor.main(MetaEditor.java:3569) Caused by: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper at be.ibridge.kettle.core.database.Database.initWithJNDI(Database.java:305) at be.ibridge.kettle.core.database.Database.connectUsingClass(Database.java:330) at be.ibridge.kettle.core.database.Database.normalConnect(Database.java:281) at be.ibridge.kettle.core.database.Database.connect(Database.java:246) at be.ibridge.kettle.core.database.Database.connect(Database.java:208) at be.ibridge.kettle.core.database.Database.connect(Database.java:198) at org.pentaho.pms.demo.QueryBuilderDialog.executeSQL(QueryBuilderDialog.java:356) at org.pentaho.pms.demo.QueryBuilderDialog.executeQuery(QueryBuilderDialog.java:415) ... 18 more

    Pentaho BI Platform Tracking | 10 years ago | Will Gorman
    java.lang.Exception: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper
  2. 0

    When executing an MQL Query in the MQL Query Editor, I received the exception below. Kettle has a dependency on org.pentaho.core.util.DatasourceHelper, which exists within the pentaho core jar, and is no longer included as part of the metadata project. We'll need to either re-include pentaho-core.ar into the metadata project, or separate out the DatasourceHelper and it''s dependencies into another Jar (Note that DatasourceHelper relies on org.pentaho.messages.Messages) java.lang.Exception: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper at org.pentaho.pms.demo.QueryBuilderDialog.executeQuery(QueryBuilderDialog.java:418) at org.pentaho.pms.demo.QueryBuilderDialog.access$5(QueryBuilderDialog.java:402) at org.pentaho.pms.demo.QueryBuilderDialog$7.widgetSelected(QueryBuilderDialog.java:183) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.pms.editor.MetaEditor.testQR(MetaEditor.java:3708) at org.pentaho.pms.editor.MetaEditor$42.widgetSelected(MetaEditor.java:1207) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898) at org.pentaho.pms.editor.MetaEditor.readAndDispatch(MetaEditor.java:787) at org.pentaho.pms.editor.MetaEditor.main(MetaEditor.java:3569) Caused by: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper at be.ibridge.kettle.core.database.Database.initWithJNDI(Database.java:305) at be.ibridge.kettle.core.database.Database.connectUsingClass(Database.java:330) at be.ibridge.kettle.core.database.Database.normalConnect(Database.java:281) at be.ibridge.kettle.core.database.Database.connect(Database.java:246) at be.ibridge.kettle.core.database.Database.connect(Database.java:208) at be.ibridge.kettle.core.database.Database.connect(Database.java:198) at org.pentaho.pms.demo.QueryBuilderDialog.executeSQL(QueryBuilderDialog.java:356) at org.pentaho.pms.demo.QueryBuilderDialog.executeQuery(QueryBuilderDialog.java:415) ... 18 more

    Pentaho BI Platform Tracking | 10 years ago | Will Gorman
    java.lang.Exception: java.lang.NoClassDefFoundError: org/pentaho/core/util/DatasourceHelper

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/pentaho/core/util/DatasourceHelper

      at be.ibridge.kettle.core.database.Database.initWithJNDI()
    2. be.ibridge.kettle
      Database.connect
      1. be.ibridge.kettle.core.database.Database.initWithJNDI(Database.java:305)
      2. be.ibridge.kettle.core.database.Database.connectUsingClass(Database.java:330)
      3. be.ibridge.kettle.core.database.Database.normalConnect(Database.java:281)
      4. be.ibridge.kettle.core.database.Database.connect(Database.java:246)
      5. be.ibridge.kettle.core.database.Database.connect(Database.java:208)
      6. be.ibridge.kettle.core.database.Database.connect(Database.java:198)
      6 frames
    3. org.pentaho.pms
      QueryBuilderDialog$7.widgetSelected
      1. org.pentaho.pms.demo.QueryBuilderDialog.executeSQL(QueryBuilderDialog.java:356)
      2. org.pentaho.pms.demo.QueryBuilderDialog.executeQuery(QueryBuilderDialog.java:415)
      3. org.pentaho.pms.demo.QueryBuilderDialog.access$5(QueryBuilderDialog.java:402)
      4. org.pentaho.pms.demo.QueryBuilderDialog$7.widgetSelected(QueryBuilderDialog.java:183)
      4 frames
    4. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898)
      5 frames
    5. JFace
      Window.open
      1. org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
      2. org.eclipse.jface.window.Window.open(Window.java:796)
      2 frames
    6. org.pentaho.pms
      MetaEditor$42.widgetSelected
      1. org.pentaho.pms.editor.MetaEditor.testQR(MetaEditor.java:3708)
      2. org.pentaho.pms.editor.MetaEditor$42.widgetSelected(MetaEditor.java:1207)
      2 frames
    7. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1097)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3226)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2898)
      5 frames
    8. org.pentaho.pms
      MetaEditor.main
      1. org.pentaho.pms.editor.MetaEditor.readAndDispatch(MetaEditor.java:787)
      2. org.pentaho.pms.editor.MetaEditor.main(MetaEditor.java:3569)
      2 frames