我通过IntelliJ idea运行Kettle 8.3源代码,无法实例化类org.pentaho.di.engine.ui.RunConfigurationLifecycleListener,java版本是JDK8,我可以使用maven build install成功编译可执行应用程序,但不能直接通过idea IDE运行它。

2019/05/06 14:33:03 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : Unexpected error loading class for plugin
2019/05/06 14:33:03 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : org.pentaho.di.core.exception.KettlePluginException:
2019/05/06 14:33:03 - General - Unable to instantiate class
2019/05/06 14:33:03 - General - org.pentaho.di.engine.ui.RunConfigurationLifecycleListener
2019/05/06 14:33:03 - General -
2019/05/06 14:33:03 - General -     at org.pentaho.di.core.plugins.PluginRegistry.loadClass(PluginRegistry.java:501)
2019/05/06 14:33:03 - General -     at org.pentaho.di.ui.core.PropsUI.init(PropsUI.java:210)
2019/05/06 14:33:03 - General -     at org.pentaho.di.core.Props.<init>(Props.java:233)
2019/05/06 14:33:03 - General -     at org.pentaho.di.ui.core.PropsUI.<init>(PropsUI.java:176)
2019/05/06 14:33:03 - General -     at org.pentaho.di.ui.core.PropsUI.init(PropsUI.java:129)
2019/05/06 14:33:03 - General -     at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:687)
2019/05/06 14:33:03 - General - Caused by: java.lang.InstantiationException: org.pentaho.di.engine.ui.RunConfigurationLifecycleListener
2019/05/06 14:33:03 - General -     at java.lang.Class.newInstance(Class.java:427)
2019/05/06 14:33:03 - General -     at org.pentaho.di.core.plugins.PluginRegistry.loadClass(PluginRegistry.java:496)
2019/05/06 14:33:03 - General -     ... 5 more
2019/05/06 14:33:03 - General - Caused by: java.lang.NoSuchMethodException: org.pentaho.di.engine.ui.RunConfigurationLifecycleListener.<init>()
2019/05/06 14:33:03 - General -     at java.lang.Class.getConstructor0(Class.java:3082)
2019/05/06 14:33:03 - General -     at java.lang.Class.newInstance(Class.java:412)
2019/05/06 14:33:03 - General -     ... 6 more
2019/05/06 14:33:03 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : Unexpected error loading class for plugin
2019/05/06 14:33:03 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : org.pentaho.di.core.exception.KettlePluginException:
.
.
.
.
2019/05/06 14:33:26 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : Error starting Spoon shell
2019/05/06 14:33:26 - General - ERROR (version Unknown, build 0 from 2019/05/06 14:32:32.256 by Administrator) : java.lang.NullPointerException
2019/05/06 14:33:26 - General -     at org.pentaho.di.core.extension.ExtensionPointMap.callExtensionPoint(ExtensionPointMap.java:151)
2019/05/06 14:33:26 - General -     at org.pentaho.di.core.extension.ExtensionPointHandler.callExtensionPoint(ExtensionPointHandler.java:45)
2019/05/06 14:33:26 - General -     at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9189)
2019/05/06 14:33:26 - General -     at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:709)

最佳答案

将“项目设置”中的maven更改为与从命令行构建它时所使用的相同。之后,我遇到了不同的ClassNotFound异常,但是在不同模块中更改pom.xml允许我通过IDE启动Spoon。

10-04 12:06