Forum Discussion

jcabelloa's avatar
jcabelloa
Occasional Contributor
6 years ago

testrunner.sh does not recognize license file

I just installed and activated the PRO license on a linux machine where I installed areadyAPI.

From the GUI the licese is recognized and active.

I created a dummy test case and it runs good from GUI.

I then tried to execute it from command line using testrunner.sh and I got the following error:

soapui@Etan-SOAPUI:~/SmartBear/ReadyAPI-2.6.0/bin$ ./loadtestrunner.sh /home/AD/soapui/dummy-readyapi-project.xml
================================
=
= READY_API_HOME = /home/AD/soapui/SmartBear/ReadyAPI-2.6.0
=
================================
Configuring log4j from [/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/soapui-log4j.xml]
17:14:33,351 INFO [license] ReadyAPI 2.6.0 (build 2261) started - System properties: {OS=Linux, User name=soapui}
17:14:33,544 INFO [DefaultSoapUICore] SoapUI settings were initialized from [/home/AD/soapui/soapui-settings.xml]
17:14:33,564 INFO [SoapUIExtensionClassLoader] "/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/ext/postgresql-9.3-1102.jdbc41.jar" has been added to the classpath.
17:14:33,564 INFO [SoapUIExtensionClassLoader] "/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/ext/sqljdbc42.jar" has been added to the classpath.
17:14:33,597 INFO [DefaultSoapUICore] 2 JDBC drivers have been registered from the directory bin/ext: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver].
17:14:33,825 INFO [DefaultSoapUICore] Adding listeners from [/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/listeners/demo-listeners.xml]
17:14:36,092 INFO [BaseExecutionManager] Initialized base directory to keep executions to /home/AD/soapui/.readyapi/loadui/results
Configuring log4j from [/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/soapui-log4j.xml]
17:14:36,979 INFO [license] ReadyAPI 2.6.0 (build 2261) started - System properties: {OS=Linux, User name=soapui}
17:14:36,986 INFO [DefaultSoapUICore] SoapUI settings were initialized from [/home/AD/soapui/soapui-settings.xml]
17:14:36,987 INFO [SoapUIExtensionClassLoader] "/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/ext/postgresql-9.3-1102.jdbc41.jar" has been added to the classpath.
17:14:36,987 INFO [SoapUIExtensionClassLoader] "/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/ext/sqljdbc42.jar" has been added to the classpath.
17:14:37,072 INFO [DefaultSoapUICore] 2 JDBC drivers have been registered from the directory bin/ext: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver].
17:14:37,072 INFO [DefaultSoapUICore] Adding listeners from [/home/AD/soapui/SmartBear/ReadyAPI-2.6.0/bin/listeners/demo-listeners.xml]
17:14:38,344 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-uxm-plugin-1.1.0.jar]
17:14:38,345 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-mqtt-plugin-dist.jar]
17:14:39,264 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-jira-plugin-1.2.jar]
17:14:39,265 INFO [PluginManager] 3 plugins loaded in 938 ms
17:14:39,265 INFO [DefaultSoapUICore] All plugins loaded
17:14:39,305 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-mqtt-plugin-dist.jar]
17:14:39,306 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-uxm-plugin-1.1.0.jar]
17:14:39,674 INFO [PluginManager] Adding plugin from [/home/AD/soapui/.soapui/plugins/ready-jira-plugin-1.2.jar]
17:14:39,675 INFO [PluginManager] 3 plugins loaded in 370 ms
17:14:39,675 INFO [DefaultSoapUICore] All plugins loaded
17:14:39,705 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
17:14:39,708 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI
17:14:39,713 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
17:14:39,720 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: ETAN-SOAPUI
17:14:39,729 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: ETAN-SOAPUI
17:14:39,750 DEBUG [LicenseManagerServiceImpl] Valid license file found: /home/AD/soapui/.soapui/soapui.key, last modified: 2019-03-29T16:33:11.000+0000
17:14:39,858 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI
17:14:39,860 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI
17:14:39,866 DEBUG [LicenseManagerServiceImpl] License host for LoadUI: ETAN-SOAPUI
17:14:39,870 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for Secure
17:14:39,870 DEBUG [LicenseManagerServiceImpl] No license found for Secure
17:14:39,876 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV
17:14:39,881 DEBUG [LicenseManagerServiceImpl] License host for Secure: ETAN-SOAPUI
17:14:39,884 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV
No valid LoadUI license exists.
Please enter absolute path of the license file (.zip or .key):
17:14:39,890 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: ETAN-SOAPUI

17:17:34,719 INFO [LicenseFileUtil] Trying to install license(s) for [loadUI] from file 
17:17:34,720 INFO [license] ReadyAPI 2.6.0 shutting down
17:17:34,721 ERROR [LoadUIProjectRunner] com.smartbear.ready.license.exception.InvalidLicenseException: The license file does not have a '.key' extension. File name was ''.
17:17:34,721 ERROR [SoapUI] An error occurred [The license file does not have a '.key' extension. File name was ''.], see error log for details
17:17:34,721 ERROR [errorlog] com.smartbear.ready.license.exception.InvalidLicenseException: The license file does not have a '.key' extension. File name was ''.
com.smartbear.ready.license.exception.InvalidLicenseException: The license file does not have a '.key' extension. File name was ''.
at com.smartbear.ready.license.util.LicenseFileUtil.a(LicenseFileUtil.java:431) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.util.LicenseFileUtil.b(LicenseFileUtil.java:408) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.util.LicenseFileUtil.c(LicenseFileUtil.java:436) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.util.LicenseFileUtil.b(LicenseFileUtil.java:348) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.util.LicenseFileUtil.validateAndInstallLicensesFromFile(LicenseFileUtil.java:101) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.headless.HeadlessLicenseInstaller.installLicense(HeadlessLicenseInstaller.java:36) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.license.LicenseManagerServiceImpl.promptForLicenseInHeadlessMode(LicenseManagerServiceImpl.java:285) ~[ready-api-license-2.6.0.jar:2.6.0]
at com.smartbear.ready.cmd.runner.loaduicommandlinerunner.LoadUIProjectRunner.runRunner(LoadUIProjectRunner.java:71) ~[ready-api-runners-2.6.0.jar:?]
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:293) ~[ready-api-runners-2.6.0.jar:?]
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:174) [ready-api-runners-2.6.0.jar:?]
at com.smartbear.ready.cmd.runner.loaduicommandlinerunner.LoadUIProjectRunner.main(LoadUIProjectRunner.java:36) [ready-api-runners-2.6.0.jar:?]
com.smartbear.ready.license.exception.InvalidLicenseException: The license file does not have a '.key' extension. File name was ''.
at com.smartbear.ready.license.util.LicenseFileUtil.a(LicenseFileUtil.java:431)
at com.smartbear.ready.license.util.LicenseFileUtil.b(LicenseFileUtil.java:408)
at com.smartbear.ready.license.util.LicenseFileUtil.c(LicenseFileUtil.java:436)
at com.smartbear.ready.license.util.LicenseFileUtil.b(LicenseFileUtil.java:348)
at com.smartbear.ready.license.util.LicenseFileUtil.validateAndInstallLicensesFromFile(LicenseFileUtil.java:101)
at com.smartbear.ready.license.headless.HeadlessLicenseInstaller.installLicense(HeadlessLicenseInstaller.java:36)
at com.smartbear.ready.license.LicenseManagerServiceImpl.promptForLicenseInHeadlessMode(LicenseManagerServiceImpl.java:285)
at com.smartbear.ready.cmd.runner.loaduicommandlinerunner.LoadUIProjectRunner.runRunner(LoadUIProjectRunner.java:71)
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:293)
at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:174)
at com.smartbear.ready.cmd.runner.loaduicommandlinerunner.LoadUIProjectRunner.main(LoadUIProjectRunner.java:36)