Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saving file: java.lang.NullPointerException #1

Open
diethardsteiner opened this issue May 28, 2014 · 1 comment
Open

Error saving file: java.lang.NullPointerException #1

diethardsteiner opened this issue May 28, 2014 · 1 comment

Comments

@diethardsteiner
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant