java.lang.reflect.InvocationTargetException: Error loading transformation

Pentaho BI Platform Tracking | Mat Lowery | 7 years ago
  1. 0

    Repro: * File > Import from an XML file. * samples/transformations/data-generator/Generate customer data.ktr. * Save file to enterprise repo. * Close it. * Attempt to reopen it. Get stack trace: java.lang.reflect.InvocationTargetException: Error loading transformation at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:83) 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:91) at org.pentaho.di.ui.spoon.Spoon.loadObjectFromRepository(Spoon.java:3362) at org.pentaho.di.ui.spoon.Spoon$19.open(Spoon.java:3337) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.openContent(BrowseController.java:360) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.onDoubleClick(BrowseController.java:572) 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:315) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.swt.tags.SwtTree.access$1800(SwtTree.java:93) at org.pentaho.ui.xul.swt.tags.SwtTree$10.doubleClick(SwtTree.java:500) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799) at org.eclipse.jface.util.SafeRunnable$3.run(SafeRunnable.java:154) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1061) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295) 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.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:300) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:256) at org.pentaho.di.ui.repository.repositoryexplorer.RepositoryExplorer.show(RepositoryExplorer.java:159) at org.pentaho.di.ui.spoon.Spoon.exploreRepository(Spoon.java:3346) 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:323) 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:24) at org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:74) 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:1185) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6645) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:538) 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) Caused by: org.pentaho.di.core.exception.KettleException: Unable to load transformation from path [/pentaho/tenant0/public/Generate customer data.ktr] Unexpected error reading step information from the repository For input string: "${NR_OF_ROWS}" at org.pentaho.di.repository.pur.PurRepository.loadTransformation(PurRepository.java:1609) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:79) ... 57 more Caused by: org.pentaho.di.core.exception.KettleException: Unexpected error reading step information from the repository For input string: "${NR_OF_ROWS}" at org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta.readRep(RowGeneratorMeta.java:420) at org.pentaho.di.repository.pur.TransDelegate.dataNodeToElement(TransDelegate.java:249) at org.pentaho.di.repository.pur.PurRepository.loadTransformation(PurRepository.java:1604) ... 58 more Caused by: java.lang.NumberFormatException: For input string: "${NR_OF_ROWS}" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:410) at java.lang.Long.valueOf(Long.java:525) at com.pentaho.repository.pur.data.node.DataProperty.getLong(DataProperty.java:30) at org.pentaho.di.repository.pur.RepositoryProxy.getStepAttributeInteger(RepositoryProxy.java:288) at org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta.readRep(RowGeneratorMeta.java:407) ... 60 more Is the problem with RowGeneratorMeta for allowing a save with an unresolved variable? Because the repository API cannot know what the correct data type (i.e. string vs. integer) is for a given step attribute. Per Jake, assigning directly to mcasters.

    Pentaho BI Platform Tracking | 7 years ago | Mat Lowery
    java.lang.reflect.InvocationTargetException: Error loading transformation
  2. 0

    Repro: * File > Import from an XML file. * samples/transformations/data-generator/Generate customer data.ktr. * Save file to enterprise repo. * Close it. * Attempt to reopen it. Get stack trace: java.lang.reflect.InvocationTargetException: Error loading transformation at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:83) 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:91) at org.pentaho.di.ui.spoon.Spoon.loadObjectFromRepository(Spoon.java:3362) at org.pentaho.di.ui.spoon.Spoon$19.open(Spoon.java:3337) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.openContent(BrowseController.java:360) at org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.onDoubleClick(BrowseController.java:572) 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:315) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131) at org.pentaho.ui.xul.swt.tags.SwtTree.access$1800(SwtTree.java:93) at org.pentaho.ui.xul.swt.tags.SwtTree$10.doubleClick(SwtTree.java:500) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799) at org.eclipse.jface.util.SafeRunnable$3.run(SafeRunnable.java:154) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1061) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295) 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.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:300) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:256) at org.pentaho.di.ui.repository.repositoryexplorer.RepositoryExplorer.show(RepositoryExplorer.java:159) at org.pentaho.di.ui.spoon.Spoon.exploreRepository(Spoon.java:3346) 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:323) 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:24) at org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:74) 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:1185) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6645) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:538) 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) Caused by: org.pentaho.di.core.exception.KettleException: Unable to load transformation from path [/pentaho/tenant0/public/Generate customer data.ktr] Unexpected error reading step information from the repository For input string: "${NR_OF_ROWS}" at org.pentaho.di.repository.pur.PurRepository.loadTransformation(PurRepository.java:1609) at org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:79) ... 57 more Caused by: org.pentaho.di.core.exception.KettleException: Unexpected error reading step information from the repository For input string: "${NR_OF_ROWS}" at org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta.readRep(RowGeneratorMeta.java:420) at org.pentaho.di.repository.pur.TransDelegate.dataNodeToElement(TransDelegate.java:249) at org.pentaho.di.repository.pur.PurRepository.loadTransformation(PurRepository.java:1604) ... 58 more Caused by: java.lang.NumberFormatException: For input string: "${NR_OF_ROWS}" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:410) at java.lang.Long.valueOf(Long.java:525) at com.pentaho.repository.pur.data.node.DataProperty.getLong(DataProperty.java:30) at org.pentaho.di.repository.pur.RepositoryProxy.getStepAttributeInteger(RepositoryProxy.java:288) at org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta.readRep(RowGeneratorMeta.java:407) ... 60 more Is the problem with RowGeneratorMeta for allowing a save with an unresolved variable? Because the repository API cannot know what the correct data type (i.e. string vs. integer) is for a given step attribute. Per Jake, assigning directly to mcasters.

    Pentaho BI Platform Tracking | 7 years ago | Mat Lowery
    java.lang.reflect.InvocationTargetException: Error loading transformation
  3. 0

    Error: Splitting failed. (on id number of node)

    GitHub | 4 years ago | arthurlutz
    java.lang.NumberFormatException: For input string: "'-1160'"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Catch parameter parsing exception in Spring 3.0 WebMVC

    Stack Overflow | 6 years ago | Jan
    java.lang.NumberFormatException: For input string: "dojo"
  6. 0

    Apache Karaf 2.3.1 Guides

    maven.org | 11 months ago
    org.apache.felix.gogo.commands.CommandException: Unable to convert argument ids with value '[xxx]' to type java.util.List<java.lang.Long>

  1. marcbouvierdav 2 times, last 3 months ago
  2. kuldeep 4 times, last 3 months ago
  3. Piz 2 times, last 4 months ago
  4. mortalman7 4 times, last 5 months ago
  5. bpbhat77 681 times, last 8 months ago
14 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.NumberFormatException

    For input string: "${NR_OF_ROWS}"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.valueOf
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Long.parseLong(Long.java:410)
    3. java.lang.Long.valueOf(Long.java:525)
    3 frames
  3. com.pentaho.repository
    DataProperty.getLong
    1. com.pentaho.repository.pur.data.node.DataProperty.getLong(DataProperty.java:30)
    1 frame
  4. org.pentaho.di
    TransLoadProgressDialog$1.run
    1. org.pentaho.di.repository.pur.RepositoryProxy.getStepAttributeInteger(RepositoryProxy.java:288)
    2. org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta.readRep(RowGeneratorMeta.java:407)
    3. org.pentaho.di.repository.pur.TransDelegate.dataNodeToElement(TransDelegate.java:249)
    4. org.pentaho.di.repository.pur.PurRepository.loadTransformation(PurRepository.java:1604)
    5. org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog$1.run(TransLoadProgressDialog.java:79)
    5 frames
  5. 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
  6. org.pentaho.di
    BrowseController.onDoubleClick
    1. org.pentaho.di.ui.trans.dialog.TransLoadProgressDialog.open(TransLoadProgressDialog.java:91)
    2. org.pentaho.di.ui.spoon.Spoon.loadObjectFromRepository(Spoon.java:3362)
    3. org.pentaho.di.ui.spoon.Spoon$19.open(Spoon.java:3337)
    4. org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.openContent(BrowseController.java:360)
    5. org.pentaho.di.ui.repository.repositoryexplorer.controllers.BrowseController.onDoubleClick(BrowseController.java:572)
    5 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. org.pentaho.ui
    SwtTree$10.doubleClick
    1. org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:315)
    2. org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:131)
    3. org.pentaho.ui.xul.swt.tags.SwtTree.access$1800(SwtTree.java:93)
    4. org.pentaho.ui.xul.swt.tags.SwtTree$10.doubleClick(SwtTree.java:500)
    4 frames
  9. JFace
    OpenStrategy$1.handleEvent
    1. org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799)
    2. org.eclipse.jface.util.SafeRunnable$3.run(SafeRunnable.java:154)
    3. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
    4. org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797)
    5. org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1061)
    6. org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173)
    7. org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237)
    8. org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
    9. org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295)
    9 frames
  10. 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
  11. JFace
    Window.open
    1. org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    2. org.eclipse.jface.window.Window.open(Window.java:796)
    2 frames
  12. org.pentaho.ui
    SwtDialog.show
    1. org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:300)
    2. org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:256)
    2 frames
  13. org.pentaho.di
    Spoon.exploreRepository
    1. org.pentaho.di.ui.repository.repositoryexplorer.RepositoryExplorer.show(RepositoryExplorer.java:159)
    2. org.pentaho.di.ui.spoon.Spoon.exploreRepository(Spoon.java:3346)
    2 frames
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  15. org.pentaho.ui
    SwtMenuitem$1.widgetSelected
    1. org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:323)
    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:24)
    5. org.pentaho.ui.xul.swt.tags.SwtMenuitem$1.widgetSelected(SwtMenuitem.java:74)
    5 frames
  16. 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
  17. org.pentaho.di
    Spoon.main
    1. org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1185)
    2. org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6645)
    3. org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:538)
    3 frames
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  19. org.pentaho.commons
    Launcher.main
    1. org.pentaho.commons.launcher.Launcher.main(Launcher.java:110)
    1 frame