domgiles / swingbench-public

Public repository for swingbench to support the creation of issues and a location to download latest builds
73 stars 20 forks source link

issue with results2pdf.bat on windows JDK17 #38

Closed dbarkin closed 1 year ago

dbarkin commented 1 year ago

F:\SSL_Project\swingbench30092022\swingbench\winbin>results2pdf.bat -c 20230327-1315-NOSSL-results.xml -o 20230327-1315-NOSSL-results.pdf -debug Application : Results2Pdf Author : Dominic Giles Version : 2.7.0.1189 3:07:19 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults () Starting creation of document 3:07:19 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults () Outputting configuration 3:07:19 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults () Outputting results overview 3:07:20 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults () CPU reading exist too, outputting those 3:07:20 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults () Outputting overview charts 3:07:20 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults createTPSAreaChart() Adding image to pdf 3:07:20 PM FINE [14] com.dom.benchmarking.swingbench.results.ParseResults main() An unexpected error occured Cannot invoke "com.itextpdf.text.Image.scaleAbsolute(float, float)" because "graph" is null java.lang.NullPointerException: Cannot invoke "com.itextpdf.text.Image.scaleAbsolute(float, float)" because "graph" is null at com.dom.benchmarking.swingbench.results.ParseResults.createCPUAreaChart(ParseResults.java:436) at com.dom.benchmarking.swingbench.results.ParseResults.(ParseResults.java:217) at com.dom.benchmarking.swingbench.results.ParseResults.main(ParseResults.java:574) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.commons.launcher.ChildMain.run(ChildMain.java:228)

Error : An unexpected error occured. Please see the following message Cannot invoke "com.itextpdf.text.Image.scaleAbsolute(float, float)" because "graph" is null

F:\SSL_Project\swingbench30092022\swingbench\winbin>java -version java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)

dbarkin commented 1 year ago

Issue related to corrupted load test configuration xml file.