rpbouman / pentaho-pdi-plugin-jdbc-metadata

A transformation step for pentaho data integration that gives access to the various metadata resultsets of the JDBC DatabaseMetaData object.
Apache License 2.0
3 stars 8 forks source link

Error saving file: java.lang.NullPointerException #1

Open diethardsteiner opened 10 years ago

diethardsteiner commented 10 years ago

Environment: Fedora 20 PDI v5.0.1-stable java version "1.7.0_45" "Get JDBC Metadata" step plugin downloaded from marketplace

Error: When adding the Get JDBC Metadata step and then saving the transformation, I get following error message: Error saving file: java.lang.NullPointerException

Removing the step and then saving the file works.

This is what it shows in the Error details window: java.lang.NullPointerException at org.pentaho.di.steps.jdbcmetadata.JdbcMetaDataMeta.getXML(JdbcMetaDataMeta.java:787) at org.pentaho.di.trans.step.StepMeta.getXML(StepMeta.java:210) at org.pentaho.di.trans.step.StepMeta.getXML(StepMeta.java:189) at org.pentaho.di.trans.TransMeta.getXML(TransMeta.java:2650) at org.pentaho.di.trans.TransMeta.getXML(TransMeta.java:2476) at org.pentaho.di.ui.spoon.Spoon.saveMeta(Spoon.java:5419) at org.pentaho.di.ui.spoon.TransFileListener.save(TransFileListener.java:99) at org.pentaho.di.ui.spoon.Spoon.save(Spoon.java:5404) at org.pentaho.di.ui.spoon.Spoon.saveToFile(Spoon.java:4652) at org.pentaho.di.ui.spoon.Spoon.saveFile(Spoon.java:4610) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)

diethardsteiner commented 10 years ago

I reinstalled the plugin now using the files from github and this error does not occur any more. However, I'd like to point out the following:

Installing the plugin from the marketplace creates following folders: plugins/steps/jdbcMetaData plugins/steps/pentaho-pdi-plugin-jdbc-metadata

Uninstalling the plugin from the marketplace tries to remove plugins/steps/jdbcMetaData only

For some unknown reason both install and uninstall processes are in "Operation in progress ... " mode indefinitely. I don't know if this is something to do with the marketplace or with this plugin, but it should be checked. Files are downloaded and removed, so something is happening.