org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile()

Pentaho BI Platform Tracking | Golda David | 6 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

    While testing PDI-4791, I downloaded the kjb from the case and used File->Import from an XMl file got the following exception in the console. ERROR 30-11 14:36:28,525 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) 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.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1150) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6640) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:543) 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:110) Caused by: java.lang.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) ... 17 more Caused by: java.lang.NullPointerException at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(SourceFile:490) at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2595) at org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:42) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3742) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3442) at org.pentaho.di.ui.spoon.Spoon.importFile(Spoon.java:3401) ... 22 more

    Pentaho BI Platform Tracking | 6 years ago | Golda David
    org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile()
  2. 0

    While testing PDI-4791, I downloaded the kjb from the case and used File->Import from an XMl file got the following exception in the console. ERROR 30-11 14:36:28,525 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) 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.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1150) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6640) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:543) 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:110) Caused by: java.lang.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325) ... 17 more Caused by: java.lang.NullPointerException at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(SourceFile:490) at org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2595) at org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:42) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3742) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3442) at org.pentaho.di.ui.spoon.Spoon.importFile(Spoon.java:3401) ... 22 more

    Pentaho BI Platform Tracking | 6 years ago | Golda David
    org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile()
  3. 0

    When we have a step that should reference another file (eg: Job Executor step) but we don't fill the path for that other file, if we connect to the repository and try to import the file (having the step with empty path), the file is not imported and a NPE is thrown to the logs. Full stacktrace: {noformat} 12:35:03,423 ERROR [AbstractXulDomContainer] Error invoking method: spoon.importFile() java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:43) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:106) 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.Display.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.notifyListeners(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:1366) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:8012) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9267) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Caused by: java.lang.NullPointerException at org.pentaho.di.ui.spoon.TransFileListener.processLinkedJobs(TransFileListener.java:148) at org.pentaho.di.ui.spoon.TransFileListener.fixLinks(TransFileListener.java:133) at org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:104) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:4620) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:4280) at org.pentaho.di.ui.spoon.Spoon.importFile(Spoon.java:4221) ... 30 more 12:35:03,426 ERROR [AbstractXulComponent] Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: spoon.importFile() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:317) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:43) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:106) 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.Display.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.notifyListeners(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:1366) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:8012) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9267) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:692) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313) ... 25 more Caused by: java.lang.NullPointerException at org.pentaho.di.ui.spoon.TransFileListener.processLinkedJobs(TransFileListener.java:148) at org.pentaho.di.ui.spoon.TransFileListener.fixLinks(TransFileListener.java:133) at org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:104) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:4620) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:4280) at org.pentaho.di.ui.spoon.Spoon.importFile(Spoon.java:4221) ... 30 more 2017-03-21 12:35:03.536 java[83487:2263400] plugin com.getdropbox.dropbox.garcon invalidated {noformat}

    Pentaho BI Platform Tracking | 1 week ago | Paula Clemente
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree()
    2. org.pentaho.di
      Spoon.importFile
      1. org.pentaho.di.repository.pur.PurRepository.loadRepositoryDirectoryTree(SourceFile:490)
      2. org.pentaho.di.trans.TransMeta.loadXML(TransMeta.java:2595)
      3. org.pentaho.di.ui.spoon.TransFileListener.open(TransFileListener.java:42)
      4. org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3742)
      5. org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3442)
      6. org.pentaho.di.ui.spoon.Spoon.importFile(Spoon.java:3401)
      6 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    4. org.pentaho.ui
      SwtMenuitem$1.widgetSelected
      1. org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:325)
      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.SwtMenuitem.access$100(SwtMenuitem.java:27)
      5. org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:77)
      5 frames
    5. 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
    6. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1150)
      2. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6640)
      3. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:543)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    8. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)
      1 frame