java.lang.reflect.InvocationTargetException: Error loading job

Pentaho BI Platform Tracking | Jens Bleuel | 6 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    1 unregistered visitors

    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