cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving following error while running Test Runner command on Docker Container.

ramaG
Contributor

Receiving following error while running Test Runner command on Docker Container.

Hello,

When we run the command on Docker Container it throws following error. Is anyone getting similar error? or anyone able to run the test runner command on Docker Container? Please reply. Thanks!

 

docker run -v:"/Users/e974225/Documents/Projects/qmo-readyapi-poc/ReadyapiTest/FlightServiceMethodsTestSuite1":/project -e LICENSE_SERVER="xxxxxxx.xxxxxxx.xxxxx.com" -e COMMAND_LINE="%project%/FlightAPITestCase2.xml" -it readyapi /bin/sh

Please select the tool for which you want to get the floating license:

  1. SoapUI Pro
  2. LoadUI Pro
  3. Secure (if you have an old license)
  4. ServiceV Pro
  5. VirtServer
  6. ReadyAPI Bundle
  7. TestEngine
  8. swaggerhub
  9. swaggerhub2

Failed to get license. Reason: No license is allocated in floating license server.

Please select the tool for which you want to get the floating license:

  1. SoapUI Pro
  2. LoadUI Pro
  3. Secure (if you have an old license)
  4. ServiceV Pro
  5. VirtServer
  6. ReadyAPI Bundle
  7. TestEngine
  8. swaggerhub
  9. swaggerhub2

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/usr/local/SmartBear/ready-api-license-manager-1.3.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)

WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

Failed to get license. Reason: No license is allocated in floating license server.

10 REPLIES 10
nmrao
Community Hero

Re: Receiving following error while running Test Runner command on Docker Container.

How many and what type of licenses have you / organization has got?

From the above error, it is clear that there is no valid floating license which docker was trying to use.


Regards,
Rao.
ramaG
Contributor

Re: Receiving following error while running Test Runner command on Docker Container.

Thanks for the reply Rao. We have enough floating licenses available. Checked on license server too while trying this. There are many floating licenses available to use.

nmrao
Community Hero

Re: Receiving following error while running Test Runner command on Docker Container.

Ok.

Is docker able to connect internet?


Regards,
Rao.
ramaG
Contributor

Re: Receiving following error while running Test Runner command on Docker Container.

The license server is completely internal to our org. no need of internet connection I believe.

nmrao
Community Hero

Re: Receiving following error while running Test Runner command on Docker Container.

Ok.

But docker can be on a different network. Is license server reachable from docker container?


Regards,
Rao.
ramaG
Contributor

Re: Receiving following error while running Test Runner command on Docker Container.

Hello Rao,

Docker is on the same internal org network. Tried with No proxy. Tried to connect to License server from ReadyAPI on the local laptop (Mac). It worked fine. The same doesn't work on the Docker. Tried PING IP , it worked fine.

 

Ran the following command:

 

docker run -v="$(pwd)/qmo-readyapi-poc/ReadyapiTest/FlightServiceMethodsTestSuite1":/project -e LICENSE_SERVER="xx.xxx.xxx.xxx:443" -e COMMAND_LINE=" '/project' " -it jfrog.info53.com/docker-virtual/smartbear/ready-api-soapui-testrunner:latest
 
 

ERROR: The license is invalid: Failed to get floating license. Reason: Failed to create HTTPS service for floating license server.

 

Please select the tool for which you want to get the floating license:

1. SoapUI Pro

2. LoadUI Pro

3. Secure (if you have an old license)

4. ServiceV Pro

5. VirtServer

6. ReadyAPI Bundle

7. TestEngine

8. swaggerhub

9. swaggerhub2

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/usr/local/SmartBear/ready-api-license-manager-1.3.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)

WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

ERROR: The license is invalid: Failed to get floating license. Reason: Failed to create HTTPS service for floating license server.

 

Also tried: 

docker run -v="$(pwd)/qmo-readyapi-poc/ReadyapiTest/FlightServiceMethodsTestSuite1":/project -v="$(pwd)/tmp/reports":/reports -v="$(pwd)/tmp/ext":/ext -e "JAVA_OPTS=-Xms128m -Xmx8192m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:MaxPermSize=256m -Dsoapui.properties=soapui.properties" -e LICENSE_SERVER="XX.XXX.XXX.185:443" -e COMMAND_LINE=" -f/reports '-RJUnit-Style HTML Report' -FHTML '-EMSP_QA1' '-TTestSuite Proposals' '-TTestCase Proposals' '/project' " -it jfrog.info53.com/docker-virtual/smartbear/ready-api-soapui-testrunner:latest
 
Appreciate any help!
 
 
 
nmrao
Community Hero

Re: Receiving following error while running Test Runner command on Docker Container.

Thank you for trying out.
May be you can open a support ticket with Smartbear support.


Regards,
Rao.
ramaG
Contributor

Re: Receiving following error while running Test Runner command on Docker Container.

This issue has been resolved

sonya_m
Community Manager

Re: Receiving following error while running Test Runner command on Docker Container.

Could you let us know the solution @ramaG ? Thank you!


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors