Pentaho

 View Only

 PDI Startup fail unde MacOs Catalina

  • Pentaho
  • Kettle
  • Pentaho
  • Pentaho Data Integration PDI
Francois Lejeune's profile image
Francois Lejeune posted 07-18-2020 13:34

Hi guys,

 

Have some trouble to start PDI under Mac OS Catalina.

 

Have searched a lot of things and I am still not able to start it.

I have checked this and it seems to be ok:

 

DEBUG: _PENTAHO_JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home

DEBUG: _PENTAHO_JAVA=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home/bin/java

 

Also, I have manually updated security rules to start the app with the .app.

Just after the login screen the app crash with throwing this error:

2020/07/18 15:14:11 - Pentaho Data Integration - Le niveau de la trace est : DébogageGraphics2D from BufferedImage lacks BUFFERED_IMAGE hint2020/07/18 15:14:12 - Pentaho Data Integration - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : PDI a rencontré une erreur inattendue: veuillez fermer toutes les fenêtres avant d'arrêter PDI! 2020/07/18 15:14:12 - Pentaho Data Integration - null2020/07/18 15:14:12 - Pentaho Data Integration - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : java.lang.NullPointerException2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Control.internal_new_GC(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.graphics.GC.<init>(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.graphics.GC.<init>(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.custom.CTabFolder.updateTabHeight(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.custom.CTabFolder.runUpdate(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.custom.CTabItem.getBounds(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.custom.CTabFolder.onPaint(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.custom.CTabFolder$1.handleEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Control.drawWidget(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Widget.drawRect(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Display.applicationProc(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)2020/07/18 15:14:12 - Pentaho Data Integration - at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1385)2020/07/18 15:14:12 - Pentaho Data Integration - at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7968)2020/07/18 15:14:12 - Pentaho Data Integration - at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9350)2020/07/18 15:14:12 - Pentaho Data Integration - at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)2020/07/18 15:14:12 - Pentaho Data Integration - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)2020/07/18 15:14:12 - Pentaho Data Integration - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)2020/07/18 15:14:12 - Pentaho Data Integration - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)2020/07/18 15:14:12 - Pentaho Data Integration - at java.lang.reflect.Method.invoke(Method.java:498)2020/07/18 15:14:12 - Pentaho Data Integration - at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)java.lang.NullPointerExceptionat org.eclipse.swt.widgets.Control.internal_new_GC(Unknown Source)at org.eclipse.swt.graphics.GC.<init>(Unknown Source)at org.eclipse.swt.graphics.GC.<init>(Unknown Source)at org.eclipse.swt.custom.CTabFolder.updateTabHeight(Unknown Source)at org.eclipse.swt.custom.CTabFolder.runUpdate(Unknown Source)at org.eclipse.swt.custom.CTabItem.getBounds(Unknown Source)at org.eclipse.swt.custom.CTabFolder.onPaint(Unknown Source)at org.eclipse.swt.custom.CTabFolder$1.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.Control.drawWidget(Unknown Source)at org.eclipse.swt.widgets.Widget.drawRect(Unknown Source)at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Unknown Source)at org.eclipse.swt.widgets.Display.applicationProc(Unknown Source)at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(Unknown Source)at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1385)at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7968)at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9350)at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)2020/07/18 15:14:13 - Pentaho Data Integration - Pentaho Data Integration a terminé.stopping

Have tried to start it with:

  • open Data\ Integration.app/
  • sh spoon.sh

 

Have installed Xcode and homebrew to avoid may be needed dependencies.

 

But ... No more ideas

 

Thanks to all of you

 


#PentahoDataIntegrationPDI
#Pentaho
#Kettle
Sergio Ribeiro's profile image
Sergio Ribeiro

Hello @Francois Lejeune​,

 

Check the installed SWT version: you may need to update it.

 

Regards,

 

Sérgio Ribeiro

Porto - Portugal

 

 

Francois Lejeune's profile image
Francois Lejeune

Many thanks to you.

 

After several attempt, I found the one needed which is:

  • swt-3.6.1-cocoa-macosx-x86_64.jar

 

Found here: http://www.java2s.com/Code/Jar/s/Downloadswt361cocoamacosxx8664jar.htm

 

Now, everything is running very well.

 

Thanks again.

Marko Mitic's profile image
Marko Mitic

Hi Sergio,

 

Could you explain in details how to update SWT on PDI 9 ? Why is not correct version of SWT already bundled to PDI eclipse ?

 

Thanks in Advance,

Marko

Francois Lejeune's profile image
Francois Lejeune

@Marko Mitic​ Hi !

 

I don't know why it's needed to update it, but you need to:

 

It should now launch PDI9 even with the .app

 

 

Sergio Ribeiro's profile image
Sergio Ribeiro

Hi @Marko Mitic​,

 

I'm not a mac person, but I did some Google searching and reached this page:

https://medium.com/@causticrez/pentaho-data-integration-9-0-swt-error-splash-window-ca71841184a6

 

Hope it helps.

 

Regards,

 

Sérgio Ribeiro

Porto - Portugal

 

Matt Velez's profile image
Matt Velez

Here's how I did it:

 

  1. Go here: https://download.eclipse.org/eclipse/downloads/index.html#Latest_Release
  2. Click the latest version number (it was 4.16 for me)
  3. Click 'SWT Binary and Source' on the left sidebar.
  4. Download and unzip the Mac version.
  5. Move the swt.jar file in the archive to the data-integration/libswt/osx64 folder.
  6. Run PDI.

 

Sergio Ribeiro's profile image
Sergio Ribeiro

Hello @Marko Mitic​ and @Matt Velez​,

 

I have answered yesterday but, don't know why, it's pending review... let's hope this goes through immediately 😊

On that answer, I've pointed to a blog entry (maybe that's the reason for the "pending review") that I found by googling were the writer had a similar problem and where he described the actions that fixed his problem.

It's slightly different to Matt's resolution, but it seems to get to the same final result.

 

Regards,

 

Sérgio Ribeiro

Porto - Portugal

 

Marko Mitic's profile image
Marko Mitic

Hi @Sergio Ribeiro​ and @Matt Velez​ 

 

I fixed like Matt explained. Still I can not understand why is not packaged latest version of SWT into PDI 9 ? PDI version is marked as stable and can not be simple started on latest Mac OS X ?

Anyway, different bug (probably again related with swt) is when user want to edit or even create new Database connection (stacktrace is below). (e.g. New Connection Wizard working). Maybe is not related to "topic" but could be in relation with current issue.

 

Thanks in advance to Sergio and Matt.

Regards,

Marko

 

java.lang.NullPointerExceptionat org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:113)at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:61)at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.editConnection(SpoonDBDelegate.java:96)at org.pentaho.di.ui.spoon.Spoon.editConnection(Spoon.java:2725)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:313)at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:157)at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:141)at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:43)at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:106)at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4385)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3789)at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1385)at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7968)at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9350)at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:711)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)

 

 

Itamar Tafarello's profile image
Itamar Tafarello

Hi ,

My current settings :

macOS Catalina v10.15.7

/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk

The steps were explained in Spanish in the article above posted by Sergio.

 

I had the same issue and these are the steps I took to fix:

1) download the newest PDI 9.1

2) download the newest jar file for macox from maven repository

https://mvnrepository.com/artifact/org.eclipse.platform/org.eclipse.swt.cocoa.macosx.x86_64/3.115.03)

3) delete the swt.jar file from the directory ../data-integration/libswt/osx64

4) add the new file downloaded in the step 2 into the folder, no need to rename the file.

5) run ./spoon.sh

 

Result:

Mauro Conte's profile image
Mauro Conte

I don't know if you solved, I recently have a lot of problems with this program

I wrote the steps that allowed me to solve problems in this discussion

https://community.hitachivantara.com/s/question/0D52S00008BUAViSAP/pdi-will-not-start-under-macos-catalina-1015

Matheus Brito's profile image
Matheus Brito

Thank you very much!

You helped a lot!