java.lang.NullPointerException

Pentaho BI Platform Tracking | Chris Deptula | 4 years ago
  1. 0

    I am using a File Based Repository. In my job, I have a sub-job that I select using the "Repository: specify by name" option. I then rather than hard coding the directory to the job I switch the directory to use the ${Internal.Job.Repository.Directory} parameter. The job runs correctly and is able to process the parameter and run the correct sub-job. However, if I right click on the job entry an select "Open Job" I get the error. This error does not occur if the directory path is hard coded. Sorry, I was unable to load the job from the repository. java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.makeTabName(SpoonTabsDelegate.java:427) at org.pentaho.di.ui.spoon.job.JobGraph.openJob(JobGraph.java:2386) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2208) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2223) 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: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:85) 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:1221) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8304) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580) 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)

    Pentaho BI Platform Tracking | 4 years ago | Chris Deptula
    java.lang.NullPointerException
  2. 0

    I am using a File Based Repository. In my job, I have a sub-job that I select using the "Repository: specify by name" option. I then rather than hard coding the directory to the job I switch the directory to use the ${Internal.Job.Repository.Directory} parameter. The job runs correctly and is able to process the parameter and run the correct sub-job. However, if I right click on the job entry an select "Open Job" I get the error. This error does not occur if the directory path is hard coded. Sorry, I was unable to load the job from the repository. java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.makeTabName(SpoonTabsDelegate.java:427) at org.pentaho.di.ui.spoon.job.JobGraph.openJob(JobGraph.java:2386) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2208) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2223) 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: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:85) 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:1221) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8304) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580) 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)

    Pentaho BI Platform Tracking | 4 years ago | Chris Deptula
    java.lang.NullPointerException
  3. 0

    I have created a simple job in my repository: START --> TransTEST --> END and the transformation TransTEST. I can opent TransTEST from the repository explorer, but when i try to open it from my job using rightclick-->open transformation i obtain: java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.findTabForTransformation(SpoonTabsDelegate.java:313) at org.pentaho.di.ui.spoon.job.JobGraph.openTransformation(JobGraph.java:2276) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2204) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2211) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:135) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) 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:1161) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6725) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)

    Pentaho BI Platform Tracking | 6 years ago | mirko
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue: Right-clicking a transformation in a job and choosing "Open transformation" causes an exception : "Sorry, an error occurred loading the new transformation from the repository:" Clicking the "Details" button gives me : java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.findTabForTransformation(SpoonTabsDelegate.java:313) at org.pentaho.di.ui.spoon.job.JobGraph.openTransformation(JobGraph.java:2274) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2202) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2209) 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:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:135) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) 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:1157) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6658) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) 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) How to repeat : Create a new repository on a new database connection. Create a new transformation. Add a Generate Rows step. Save the transformation as "Transformation 1" in the repository. Create a new job. Add and connect a Start step, Transformation step and Success step. Edit the job entry for the Transformation step and set it to "Transformation 1" created above. Save the job as "Job 1". Run the job to ensure all is working. In the job editor, right-click the transformation step and choose "Open transformation" from the context menu. The error should be displayed. Additional : Opening the transformation from the File menu works fine. Only the context menu fails.

    Pentaho BI Platform Tracking | 6 years ago | Paul Keenan
    java.lang.NullPointerException
  6. 0

    Issue: Right-clicking a transformation in a job and choosing "Open transformation" causes an exception : "Sorry, an error occurred loading the new transformation from the repository:" Clicking the "Details" button gives me : java.lang.NullPointerException at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.findTabForTransformation(SpoonTabsDelegate.java:313) at org.pentaho.di.ui.spoon.job.JobGraph.openTransformation(JobGraph.java:2274) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2202) at org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2209) 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:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:135) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) 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:1157) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6658) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:545) 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) How to repeat : Create a new repository on a new database connection. Create a new transformation. Add a Generate Rows step. Save the transformation as "Transformation 1" in the repository. Create a new job. Add and connect a Start step, Transformation step and Success step. Edit the job entry for the Transformation step and set it to "Transformation 1" created above. Save the job as "Job 1". Run the job to ensure all is working. In the job editor, right-click the transformation step and choose "Open transformation" from the context menu. The error should be displayed. Additional : Opening the transformation from the File menu works fine. Only the context menu fails.

    Pentaho BI Platform Tracking | 6 years ago | Joey Smith
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.makeTabName()
    2. org.pentaho.di
      JobGraph.launchStuff
      1. org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate.makeTabName(SpoonTabsDelegate.java:427)
      2. org.pentaho.di.ui.spoon.job.JobGraph.openJob(JobGraph.java:2386)
      3. org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2208)
      4. org.pentaho.di.ui.spoon.job.JobGraph.launchStuff(JobGraph.java:2223)
      4 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
      JfaceMenuitem$1.run
      1. org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329)
      2. org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139)
      3. org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123)
      4. org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26)
      5. org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:85)
      5 frames
    5. JFace
      ActionContributionItem$5.handleEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      2. org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
      3. org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
      4. org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
      4 frames
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
      2. org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
      3. org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
      4 frames
    7. org.pentaho.di
      Spoon.main
      1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1221)
      2. org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7044)
      3. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8304)
      4. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:580)
      4 frames
    8. 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
    9. org.pentaho.commons
      Launcher.main
      1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
      1 frame