Mac 在 Pentaho DI 中打开转换时出错

Error opening transformations in Pentaho DI in Mac

我已经安装了 Pentaho DI,它对我有用,但并不总是有效。

Pentaho DI 只允许我打开 3 个转换,当我尝试再打开一个(在菜单中)时,window 没有出现。

此外,当我按下一个打开对话框的按钮时,出现如下错误:

java.lang.NullPointerException
at org.eclipse.swt.widgets.FileDialog.panel_shouldShowFilename(Unknown Source)
at org.eclipse.swt.widgets.Display.dialogProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSSavePanel.setAccessoryView(Unknown Source)
at org.eclipse.swt.widgets.FileDialog.open(Unknown Source)
at org.pentaho.di.ui.job.entries.shell.JobEntryShellDialog.widgetSelected(JobEntryShellDialog.java:690)
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.job.entries.shell.JobEntryShellDialog.open(JobEntryShellDialog.java:714)
at org.pentaho.di.ui.spoon.delegates.SpoonJobDelegate.editJobEntry(SpoonJobDelegate.java:259)
at org.pentaho.di.ui.spoon.Spoon.editJobEntry(Spoon.java:8564)
at org.pentaho.di.ui.spoon.job.JobGraph.editEntry(JobGraph.java:2836)
at org.pentaho.di.ui.spoon.job.JobGraph.mouseDoubleClick(JobGraph.java:633)
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:1339)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7939)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9214)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:653)
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:606)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)

我不知道可以是什么。 Java 版本可能?

什么版本? Pentaho 6.0.0 无法在 mac 上运行。 6.0.1 修复了它

从 stack-trace 我看到当你在你的转型中 double-click 在 JobEntry 步骤时发生:

at org.pentaho.di.ui.spoon.Spoon.editJobEntry(Spoon.java:8564)
at org.pentaho.di.ui.spoon.job.JobGraph.editEntry(JobGraph.java:2836)
at org.pentaho.di.ui.spoon.job.JobGraph.mouseDoubleClick(JobGraph.java:633)

正在尝试打开文件对话框以响应此操作:

at org.eclipse.swt.widgets.FileDialog.open(Unknown Source)
at org.pentaho.di.ui.job.entries.shell.JobEntryShellDialog.widgetSelected(JobEntryShellDialog.java:690

然后抛出NPE。所以它不是 java 版本。很可能您没有使用存储库来存储 transformation/jobs,或者使用它但存储库中的某些项目可能仍然具有指向文件系统或任何其他链接的链接。

当不同的转换引用相同的文件,或者一个转换从存储库打开,另一个从文件系统打开,具有相同的名称但试图引用一个作业条目时,可能会出现这种情况。

没有人比你更了解你独特的环境。如果您可以使用 job/transformation 示例重现此 NPE,我建议在 jira.pentaho.org for 'Data Integration' 项目中打开错误。