org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException

Pentaho BI Platform Tracking | Aaron Phillips | 7 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

    Repro path: 1. start spoon 2. go to model perspective 3. add a DB connection (mine was to FoodMart db on MySQL) 4. select the DB as the datasource you want to model 5. You will then see a "Database explorer on connection" dialog 6. If you make no selection in this dialog, but hit OK, you will get the following stacktrace with an error dialog: org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:77) at org.pentaho.agilebi.pdi.modeler.TableModelerSource.generateDomain(TableModelerSource.java:58) at org.pentaho.agilebi.pdi.modeler.ModelerWorkspaceUtil.populateModelFromSource(ModelerWorkspaceUtil.java:79) at org.pentaho.agilebi.pdi.modeler.ModelerController.editDataSource(ModelerController.java:334) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:323) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton.access$100(SwtToolbarbutton.java:35) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton$1.widgetSelected(SwtToolbarbutton.java:82) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1213) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6680) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:559) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110) Caused by: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:127) at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:52) ... 25 more Caused by: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:96) ... 26 more

    Pentaho BI Platform Tracking | 7 years ago | Aaron Phillips
    org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException
  2. 0

    Repro path: 1. start spoon 2. go to model perspective 3. add a DB connection (mine was to FoodMart db on MySQL) 4. select the DB as the datasource you want to model 5. You will then see a "Database explorer on connection" dialog 6. If you make no selection in this dialog, but hit OK, you will get the following stacktrace with an error dialog: org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:77) at org.pentaho.agilebi.pdi.modeler.TableModelerSource.generateDomain(TableModelerSource.java:58) at org.pentaho.agilebi.pdi.modeler.ModelerWorkspaceUtil.populateModelFromSource(ModelerWorkspaceUtil.java:79) at org.pentaho.agilebi.pdi.modeler.ModelerController.editDataSource(ModelerController.java:334) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:323) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton.access$100(SwtToolbarbutton.java:35) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton$1.widgetSelected(SwtToolbarbutton.java:82) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1213) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6680) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:559) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110) Caused by: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:127) at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:52) ... 25 more Caused by: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:96) ... 26 more

    Pentaho BI Platform Tracking | 7 years ago | Aaron Phillips
    org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException
  3. 0

    Start Spoon. Go to File, select New, then Model. Click Select, then establish a connection to SampleData. Click OK, then OK, then navigate to the PUBLIC schema in Database Explorer. Right-click PUBLIC, select Model, then observe this NPE: INFO 27-05 11:15:13,454 - java.lang.NullPointerException org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:79) at org.pentaho.agilebi.pdi.modeler.TableModelerSource.generateDomain(TableModelerSource.java:59) at org.pentaho.agilebi.pdi.modeler.ModelerWorkspaceUtil.populateModelFromSource(ModelerWorkspaceUtil.java:96) at org.pentaho.agilebi.pdi.spoon.AgileBiDatabaseController.openModeler(AgileBiDatabaseController.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtMenuitem.access$100(SwtMenuitem.java:27) at org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:77) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:353) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:279) at org.pentaho.di.ui.core.database.dialog.XulDatabaseExplorerDialog.open(XulDatabaseExplorerDialog.java:92) at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.exploreDB(SpoonDBDelegate.java:183) at org.pentaho.agilebi.pdi.modeler.ModelerController.editDataSource(ModelerController.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:24) at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:111) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1147) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6587) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:544) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110) Caused by: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:127) at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:55) ... 46 more Caused by: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:96) ... 47 more

    Pentaho BI Platform Tracking | 7 years ago | Jem Matzan
    org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Start Spoon. Go to File, select New, then Model. Click Select, then establish a connection to SampleData. Click OK, then OK, then navigate to the PUBLIC schema in Database Explorer. Right-click PUBLIC, select Model, then observe this NPE: INFO 27-05 11:15:13,454 - java.lang.NullPointerException org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:79) at org.pentaho.agilebi.pdi.modeler.TableModelerSource.generateDomain(TableModelerSource.java:59) at org.pentaho.agilebi.pdi.modeler.ModelerWorkspaceUtil.populateModelFromSource(ModelerWorkspaceUtil.java:96) at org.pentaho.agilebi.pdi.spoon.AgileBiDatabaseController.openModeler(AgileBiDatabaseController.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtMenuitem.access$100(SwtMenuitem.java:27) at org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:77) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:353) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:279) at org.pentaho.di.ui.core.database.dialog.XulDatabaseExplorerDialog.open(XulDatabaseExplorerDialog.java:92) at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.exploreDB(SpoonDBDelegate.java:183) at org.pentaho.agilebi.pdi.modeler.ModelerController.editDataSource(ModelerController.java:321) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119) at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:24) at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:111) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1147) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6587) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:544) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:110) Caused by: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:127) at org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:55) ... 46 more Caused by: java.lang.NullPointerException at org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:96) ... 47 more

    Pentaho BI Platform Tracking | 7 years ago | Jem Matzan
    org.pentaho.agilebi.pdi.modeler.ModelerException: org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.NullPointerException
  6. 0

    Create Pentaho metadata Domain via API: Exception 'Properties ... not initialised!'

    Stack Overflow | 3 years ago | Trey Jonn
    org.pentaho.pms.core.exception.PentahoMetadataException: java.lang.RuntimeException: Properties, Kettle systems settings, not initialised!

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.metadata.automodel.AutoModeler.generateDomain()
    2. org.pentaho.metadata
      AutoModeler.generateDomain
      1. org.pentaho.metadata.automodel.AutoModeler.generateDomain(AutoModeler.java:96)
      1 frame
    3. org.pentaho.agilebi
      ModelerController.editDataSource
      1. org.pentaho.agilebi.pdi.modeler.ModelerSourceUtil.generateDomain(ModelerSourceUtil.java:52)
      2. org.pentaho.agilebi.pdi.modeler.TableModelerSource.generateDomain(TableModelerSource.java:58)
      3. org.pentaho.agilebi.pdi.modeler.ModelerWorkspaceUtil.populateModelFromSource(ModelerWorkspaceUtil.java:79)
      4. org.pentaho.agilebi.pdi.modeler.ModelerController.editDataSource(ModelerController.java:334)
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. org.pentaho.ui
      SwtToolbarbutton$1.widgetSelected
      1. org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:323)
      2. org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131)
      3. org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:119)
      4. org.pentaho.ui.xul.swt.tags.SwtToolbarbutton.access$100(SwtToolbarbutton.java:35)
      5. org.pentaho.ui.xul.swt.tags.SwtToolbarbutton$1.widgetSelected(SwtToolbarbutton.java:82)
      5 frames
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      5 frames
    7. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1213)
      2. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6680)
      3. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:559)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)
      1 frame