SmartBear / soapui

SoapUI is a free and open source cross-platform functional testing solution for APIs and web services.
http://www.soapui.org
Other
1.58k stars 611 forks source link

Cannot change the workspace folder in SoapUI 5.7.2 #813

Open smfukaya opened 5 months ago

smfukaya commented 5 months ago

I'm not sure if is related to https://github.com/SmartBear/soapui/issues/534, with SoapUI 5.7.2, when I create a new workspace or try to switch workspace, the dialog window only lists the "Documents" folder, buttons up one level and home don't work, and I cannot enter any folder neither by double clicking them nor by pressing the ENTER key.

2024-06-17_09-56-28-SoapUI 4 7 2 - New workspace

2024-06-17_09-56-41-SoapUI 4 7 2 - Switch workspace

My soapui-errors.log contains some errors that are similar to the https://bugs.openjdk.org/browse/JDK-8305072

smfukaya commented 5 months ago

The issue only happens when you start SoapUI by soapui.bat. I compared the system properties (Help menu -> System Properties) between launching it by the soapui.bat and SoapUI-5.7.2.exe, and found out that the latter adds the VM parameter java.util.Arrays.useLegacyMergeSort=true (stored in the SoapUI-5.7.2.vmoptions file).

So I add -Djava.util.Arrays.useLegacyMergeSort=true to line 32 of the soapui.bat and the problem was fixed.

rem JVM parameters, modify as appropriate
set JAVA_OPTS=-Xms128m -Xmx1024m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\" -splash:SoapUI-Spashscreen.png -Djava.util.Arrays.useLegacyMergeSort=true

Perhaps that parameter should be included in the missing (couldn't find it in the repository) soapui.properties file referred by the JAVA_OPTS command.