devonfw / ide

Tool to automate setup and update of development environment (esp. for Java projects).
Apache License 2.0
33 stars 101 forks source link

GCViewer is not working properly on MacOSX #1227

Open jan-vcapgemini opened 12 months ago

jan-vcapgemini commented 12 months ago

Expected behavior

As a devonfw-ide MacOSX user I want to install GCViewer, so that I can use it for my projects.

Actual behavior

installation worked but terminal is reporting tons of exceptions after the application was started.

com.tagtraum.perf.gcviewer.view.util.OSXAdapter setHandler
[SCHWERWIEGEND Mac OS X Adapter could not talk to EAWT:
java.lang.IllegalAccessException: class com.tagtraum.perf.gcviewer.util.OSXAdapter cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @4ca1042e
...
com.tagtraum.perf.gcviewer.view.util.OSXAdapter setAboutHandler
[SCHWERWIEGEND OSXAdapter could not access the About Menu
java.lang.NullpointerException: cannot invoke "Object.getClass()" because "com.tagtraum.perf.gcviewer.view.util.OSXAdapter.macOSXApplication" is null
...
com.tagtraum.perf.gcviewer.view.util.OSXSupport getOSXApplication
[SCHWERWIEGEND getOSXApplication() failed
java.com.IllegalAccessException: class com.tagtraum.perf.gcviewer.util.OSXSUpport cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @4ca1042e
...
com.tagtraum.perf.gcviewer.view.util.OSXSupport initializeMacOSX
[SCHWERWIEGEND failed to perform OS X initialization
java.com.NullpointerException: cannot invoke "Object.getClass()" because "application" is null

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. Run devon gcviewer

Comments/Hints:

Affected version:

hohwille commented 12 months ago

Did you try to downgrade java before calling GCViewer? Maybe GCViewer does not work with recent Java (see #1178).