Ask a Question

Licence issue

sbu89
Regular Visitor

Licence issue

Hi,

 

I am trying to run the test cases on my project using command line. From the cli it runs fine, but when i use a container installed on the same machine as that of ready api, i get the below error
Test execution of Run APIM ReadyAPI Tests completed with errors. Embedded message: Return value for program was a non-zero value [-1]: OpenJDK 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release. 20:51:25.928 [main] DEBUG com.smartbear.ready.license - Default license portal endpoint: https://login.slm.manage.smartbear.com:443 20:51:25.940 [main] DEBUG com.smartbear.ready.license - Default license API endpoint: https://api.slm.manage.smartbear.com:443 Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-3.9.0\bin\soapui-log4j.xml] 20:51:29,929 INFO [license] ReadyAPI 3.9.0 (build 7281) started - System properties: {OS=Windows Server 2019, User name=LABQAREADYAPI$} 20:51:29,937 INFO [DefaultSoapUICore] Creating new settings at [C:\Windows\system32\config\systemprofile\soapui-settings.xml] 20:51:30,699 INFO [SoapUIExtensionClassLoader] "C:\Program Files\SmartBear\ReadyAPI-3.9.0\bin\ext\postgresql-9.3-1102.jdbc41.jar" has been added to the classpath. 20:51:30,701 INFO [SoapUIExtensionClassLoader] "C:\Program Files\SmartBear\ReadyAPI-3.9.0\bin\ext\sqljdbc42.jar" has been added to the classpath. 20:51:30,872 INFO [DefaultSoapUICore] 2 JDBC drivers have been registered from the directory bin/ext: [org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver]. 20:51:35,353 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-3.9.0\bin\listeners\demo-listeners.xml] 20:51:35,457 WARN [SoapUIJasperReportManager] The report directory is not specified. The default report directory will be used. 20:51:39,612 INFO [PluginManager] 0 out of 0 plugins have been loaded in 0 ms. 20:51:39,686 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Bundle (formerly ReadyAPIBundle) 20:51:39,688 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Bundle (formerly ReadyAPIBundle) 20:51:39,703 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Test (formerly SoapUING) 20:51:39,704 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Test (formerly SoapUING) 20:51:39,716 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Test (formerly SoapUIPro) 20:51:39,717 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Test (formerly SoapUIPro) 20:51:39,729 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Test (formerly SoapUING) 20:51:39,730 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Test (formerly SoapUING) 20:51:39,762 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Performance (formerly LoadUI) 20:51:39,763 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Performance (formerly LoadUI) 20:51:39,784 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Virtualization (formerly ServiceV) 20:51:39,785 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Virtualization (formerly ServiceV) 20:51:39,787 DEBUG [license] No license found for ReadyAPI Test. 20:51:39,802 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Test (formerly SoapUING) 20:51:39,803 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Test (formerly SoapUING) 20:51:39,812 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Test (formerly SoapUIPro) 20:51:39,812 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Test (formerly SoapUIPro) 20:51:39,813 DEBUG [license] No license found for ReadyAPI Performance. 20:51:39,826 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Performance (formerly LoadUI) 20:51:39,828 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Performance (formerly LoadUI) 20:51:39,834 DEBUG [license] No license found for ReadyAPI Virtualization. 20:51:39,858 DEBUG [LicenseManagerServiceImpl] Trying to initialize legacy license for ReadyAPI Virtualization (formerly ServiceV) 20:51:39,859 DEBUG [LicenseManagerServiceImpl] No legacy license found for ReadyAPI Virtualization (formerly ServiceV) 20:51:39,908 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Bundle: LABQAREADYAPI 20:51:39,940 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Test: LABQAREADYAPI 20:51:39,941 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Test: LABQAREADYAPI 20:51:39,957 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Test: LABQAREADYAPI 20:51:39,959 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Performance: LABQAREADYAPI 20:51:39,960 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Virtualization: LABQAREADYAPI 20:51:39,966 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Test: LABQAREADYAPI 20:51:39,966 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Test: LABQAREADYAPI 20:51:39,968 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Performance: LABQAREADYAPI 20:51:39,968 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Virtualization: LABQAREADYAPI No valid ReadyAPI Test license exists. Please enter the absolute path of the license file (.zip or .key): 20:51:40,483 INFO [license] ReadyAPI 3.9.0 shutting down 20:51:40,486 ERROR [SoapUIProTestCaseRunner] java.util.NoSuchElementException: No line found 20:51:40,487 ERROR [SoapUI] An error occurred [No line found], see error log for details 20:51:40,489 ERROR [errorlog] java.util.NoSuchElementException: No line found java.util.NoSuchElementException: No line found at java.util.Scanner.nextLine(Scanner.java:1651) ~[?:?] at com.smartbear.ready.license.util.CommandLineUtils.readLine(CommandLineUtils.java:84) ~[ready-api-license-3.9.0.jar:3.9.0] at com.smartbear.ready.license.util.CommandLineUtils.readLicenseFilePath(CommandLineUtils.java:248) ~[ready-api-license-3.9.0.jar:3.9.0] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:117) ~[ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:304) ~[ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:170) [ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:102) [ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:98) [ready-api-runners-3.9.0.jar:?] java.util.NoSuchElementException: No line found at java.base/java.util.Scanner.nextLine(Scanner.java:1651) at com.smartbear.ready.license.util.CommandLineUtils.readLine(CommandLineUtils.java:84) at com.smartbear.ready.license.util.CommandLineUtils.readLicenseFilePath(CommandLineUtils.java:248) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:117) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:304) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:170) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:102) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:98)


I tried to silence the debug and info logs from the soapui-log4j.xml(changed all debug and info logging  into ERROR) and still run into the below error
 Test execution of Run APIM ReadyAPI Tests completed with errors. Embedded message: Return value for program was a non-zero value [-1]: OpenJDK 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release. 14:45:08.821 [main] DEBUG com.smartbear.ready.license - Default license portal endpoint: https://login.slm.manage.smartbear.com:443 14:45:08.834 [main] DEBUG com.smartbear.ready.license - Default license API endpoint: https://api.slm.manage.smartbear.com:443 Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-3.9.0\bin\soapui-log4j.xml] No valid ReadyAPI Test license exists. Please enter the absolute path of the license file (.zip or .key): 14:45:22,308 ERROR [SoapUIProTestCaseRunner] java.util.NoSuchElementException: No line found 14:45:22,312 ERROR [SoapUI] An error occurred [No line found], see error log for details 14:45:22,313 ERROR [errorlog] java.util.NoSuchElementException: No line found java.util.NoSuchElementException: No line found at java.util.Scanner.nextLine(Scanner.java:1651) ~[?:?] at com.smartbear.ready.license.util.CommandLineUtils.readLine(CommandLineUtils.java:84) ~[ready-api-license-3.9.0.jar:3.9.0] at com.smartbear.ready.license.util.CommandLineUtils.readLicenseFilePath(CommandLineUtils.java:248) ~[ready-api-license-3.9.0.jar:3.9.0] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:117) ~[ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:304) ~[ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:170) [ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:102) [ready-api-runners-3.9.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:98) [ready-api-runners-3.9.0.jar:?] java.util.NoSuchElementException: No line found at java.base/java.util.Scanner.nextLine(Scanner.java:1651) at com.smartbear.ready.license.util.CommandLineUtils.readLine(CommandLineUtils.java:84) at com.smartbear.ready.license.util.CommandLineUtils.readLicenseFilePath(CommandLineUtils.java:248) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:117) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:304) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:170) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:102) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:98)   

 

1 REPLY 1
msiadak
Community Hero

Licenses are usually on a per-user basis, even on the same machine. I will admit some level of ignorance to containers, but from what little I know they are basically mimicking an entire different computer. As such I doubt ReadyAPI on the container can see the license on your machine. It would likely need its own license, or the container would have to run as the same user who the license was installed under in the first place.

Looking at the licensing page/FAQ, a fixed license and a container might not be a viable solution.

https://smartbear.com/blog/how-to-navigate-readyapi-licensing/

 

 

 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
cancel
Showing results for 
Search instead for 
Did you mean: