java.lang.reflect.InvocationTargetException: Error loading job

Pentaho BI Platform Tracking | Paul Stoellberger | 7 years ago
  1. 0

    when i try to open transformation / jobs via the "Explore repository" on a file based repository i always get following exception: For a job in the root directory: Unable to get object information for object with id=/Job 1.kjb String index out of range: -2 java.lang.reflect.InvocationTargetException: Error loading job at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run(JobLoadProgressDialog.java:94) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495) at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog.open(JobLoadProgressDialog.java:102) ........ Caused by: org.pentaho.di.core.exception.KettleException: Unable to get object information for object with id=/Job 1.kjb String index out of range: -2 at org.pentaho.di.repository.filerep.KettleFileRepository.getObjectInformation(KettleFileRepository.java:1128) at org.pentaho.di.repository.filerep.KettleFileRepository.loadJob(KettleFileRepository.java:1133) at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run(JobLoadProgressDialog.java:87) ... 48 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(Unknown Source) at java.lang.String.substring(Unknown Source) at org.pentaho.di.repository.filerep.KettleFileRepository.getObjectInformation(KettleFileRepository.java:1121) ... 50 more When i try to load a transformation of a subfolder i get: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:381) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog.open(TransLoadProgressDialog.java:110) at org.pentaho.di.ui.spoon.Spoon.loadObjectFromRepository(Spoon.java:3283) at org.pentaho.di.ui.spoon.Spoon.access$1800(Spoon.java:291) at org.pentaho.di.ui.spoon.Spoon$19.open(Spoon.java:3225) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.openContent(BrowseController.java:310) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.onDoubleClick(BrowseController.java:593) ........... Caused by: java.lang.NullPointerException at org.pentaho.di.repository.filerep.KettleFileRepository.loadTransformation(KettleFileRepository.java:1139) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:95) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) ... 47 more

    Pentaho BI Platform Tracking | 7 years ago | Paul Stoellberger
    java.lang.reflect.InvocationTargetException: Error loading job
  2. 0

    when i try to open transformation / jobs via the "Explore repository" on a file based repository i always get following exception: For a job in the root directory: Unable to get object information for object with id=/Job 1.kjb String index out of range: -2 java.lang.reflect.InvocationTargetException: Error loading job at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run(JobLoadProgressDialog.java:94) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495) at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog.open(JobLoadProgressDialog.java:102) ........ Caused by: org.pentaho.di.core.exception.KettleException: Unable to get object information for object with id=/Job 1.kjb String index out of range: -2 at org.pentaho.di.repository.filerep.KettleFileRepository.getObjectInformation(KettleFileRepository.java:1128) at org.pentaho.di.repository.filerep.KettleFileRepository.loadJob(KettleFileRepository.java:1133) at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run(JobLoadProgressDialog.java:87) ... 48 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(Unknown Source) at java.lang.String.substring(Unknown Source) at org.pentaho.di.repository.filerep.KettleFileRepository.getObjectInformation(KettleFileRepository.java:1121) ... 50 more When i try to load a transformation of a subfolder i get: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:381) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog.open(TransLoadProgressDialog.java:110) at org.pentaho.di.ui.spoon.Spoon.loadObjectFromRepository(Spoon.java:3283) at org.pentaho.di.ui.spoon.Spoon.access$1800(Spoon.java:291) at org.pentaho.di.ui.spoon.Spoon$19.open(Spoon.java:3225) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.openContent(BrowseController.java:310) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.onDoubleClick(BrowseController.java:593) ........... Caused by: java.lang.NullPointerException at org.pentaho.di.repository.filerep.KettleFileRepository.loadTransformation(KettleFileRepository.java:1139) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:95) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) ... 47 more

    Pentaho BI Platform Tracking | 7 years ago | Paul Stoellberger
    java.lang.reflect.InvocationTargetException: Error loading job
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I ran the CE 4.0 stable build, connected to an existing db repository (not enterprise) tried to open an existing transform and got an exception (see below) I assumed my existing repos may be corrupt so I created a new one (MySQL) via Spoon repository dialog. Created a new 1 step transform (a table input that did a select * on a small table) Press toolbar save button, named transform "Stable Test" in the root folder. - Succeeded Closed my transform, pressed the file open button on toolbar, selected the file I just saved, got the same exception. java.lang.reflect.InvocationTargetException: Error loading transformation at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:102) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog.open(TransLoadProgressDialog.java:110) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3452) at org.pentaho.di.ui.spoon.Spoon.openFile(Spoon.java:3392) 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.SwtToolbarbutton.access$100(SwtToolbarbutton.java:36) at org.pentaho.ui.xul.swt.tags.SwtToolbarbutton$1.widgetSelected(SwtToolbarbutton.java:83) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) 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:1147) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6586) 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) 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 apple.launcher.LaunchRunner.run(LaunchRunner.java:115) at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50) at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52) Caused by: org.pentaho.di.core.exception.KettleException: An error occured reading a transformation from the repository This file doesn't exist : Stable Test

    Pentaho BI Platform Tracking | 6 years ago | Doug Moran
    java.lang.reflect.InvocationTargetException: Error loading transformation

    1 unregistered visitors
    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.reflect.InvocationTargetException

      Error loading job

      at org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run()
    2. org.pentaho.di
      JobLoadProgressDialog$1.run
      1. org.pentaho.di.ui.job.dialog.JobLoadProgressDialog$1.run(JobLoadProgressDialog.java:94)
      1 frame
    3. JFace
      ProgressMonitorDialog.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
      3. org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)
      3 frames
    4. org.pentaho.di
      JobLoadProgressDialog.open
      1. org.pentaho.di.ui.job.dialog.JobLoadProgressDialog.open(JobLoadProgressDialog.java:102)
      1 frame