pega-tracerviewer
pega-tracerviewer copied to clipboard
Unable to run on Mac using java 1.8.0_202
I recently upgraded computers and Java got upgraded from 1.5 to 1.8. When I run the command "java -Xms512M -Xmx1G -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar pega-tracerviewer-3.0.jar" I get a null pointer exception immediately.
021-08-13 09:14:10,361 [INFO ] [ main] ( com.pega.gcs.tracerviewer.TracerViewer) - Default Locale: en_US args length: 0
2021-08-13 09:14:11,990 [ERROR] [ AWT-EventQueue-0] ( com.pega.gcs.tracerviewer.TracerViewer) - TracerViewer error reading command line arguments.
java.lang.NullPointerException: null
at java.awt.Window.init(Window.java:497) ~[?:1.8.0_202]
at java.awt.Window.
Hi, Can you try using the v3.3.0 from the releases. let me know if that helps/works. Thanks
I had similar issue. I fixed by updating the line 48 in the pega-tracerviewer unix script file to:
# Add default JVM options here. You can also use JAVA_OPTS and PEGA_TRACERVIEWER_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Duser.dir=$APP_HOME" "-Dfile.encoding=UTF-8" "-Xms512M" "-Xmx1G" "-XX:+UseG1GC" "-XX:+UseConcMarkSweepGC" "-XX:+IgnoreUnrecognizedVMOptions"'
To fix: Unrecognized VM option 'UseParNewGC' https://stackoverflow.com/questions/49962437/unrecognized-vm-option-useparnewgc-error-could-not-create-the-java-virtual
To fix: Unrecognized VM option 'UseConcMarkSweepGC' https://stackoverflow.com/questions/65546614/unrecognized-vm-option-useconcmarksweepgc-when-running-sample-project
With the above code change, TracerViewer is running fine for me in Mac
java -version java version "16.0.1" 2021-04-20 Java(TM) SE Runtime Environment (build 16.0.1+9-24) Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)