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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Jem Matzan,
  • 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
    via by Jem Matzan,
  • 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
    via by Aaron Phillips,
  • 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
    via by Aaron Phillips,
    • 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
    No Bugmate found.