Unanswered question

Error while launching NeoloadCmd : Unable to automatically lease a server license

Hello,
I have a problem with NeoloadCmd.
when I launch the command
./NeoLoadCmd -project ~/test/test.nlp -noGUI -launch scenario1
I get the follwing error
OpenJDK 64-Bit Server VM warning: Option MaxRAMFraction was deprecated in version 10.0 and will likely be removed in a future release.
test.nlp file has been found in /home/neoload/test.
Logging to /home/neoload/.neotys/neoload/v7.11/logs, as user: neoload
Loading project: /home/neoload/test/test.nlp
Project test loaded
Found a valid NLWeb configuration : URL=[https://neoload-rest.saas.neotys.com]
ERROR: Unable to automatically lease a server license
org.apache.cxf.transport.http.HTTPException: HTTP response '400: Bad Request' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1619)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1626)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1571)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
at com.sun.proxy.$Proxy108.getLicenseServerProductInfo(Unknown Source)
at com.neotys.nl.controller.aA.a(aA.java:997)
at com.neotys.nl.controller.aA.a(aA.java:462)
at com.neotys.nl.controller.aA.a(aA.java:320)
at com.neotys.nl.controller.Controller.a(Controller.java:2059)
at com.neotys.nl.controller.Controller.launchScenario(Controller.java:1902)
at com.neotys.nl.launcher.ControllerLauncher.main(ControllerLauncher.java:268)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.com.neotys.nl.launcher.ControllerLauncher_NeoLoadCmd.main(Unknown Source)
com.neotys.nl.controller.data.NeoLoadConfigurationException: org.apache.cxf.transport.http.HTTPException: HTTP response '400: Bad Request' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license
at com.neotys.nl.controller.Controller.a(Controller.java:2065)
at com.neotys.nl.controller.Controller.launchScenario(Controller.java:1902)
at com.neotys.nl.launcher.ControllerLauncher.main(ControllerLauncher.java:268)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.com.neotys.nl.launcher.ControllerLauncher_NeoLoadCmd.main(Unknown Source)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '400: Bad Request' when communicating with https://neoload-rest.saas.neotys.com/nts/ws/license
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1619)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1626)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1571)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:140)
at com.sun.proxy.$Proxy108.getLicenseServerProductInfo(Unknown Source)
at com.neotys.nl.controller.aA.a(aA.java:997)
at com.neotys.nl.controller.aA.a(aA.java:462)
at com.neotys.nl.controller.aA.a(aA.java:320)
at com.neotys.nl.controller.Controller.a(Controller.java:2059)
... 9 more
Exit with status: 2

Jihed B.
Jihed B.

Jihed B.

Level
0
12 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Your NeoLoad Web setup in the NeoLoad controller configuration does not seem correct. You should check the settings especially if you have never started NeoLoad with the UI.

Jihed B.
Jihed B.

Jihed B.

Level
0
12 / 100
points

Hello Nouredine,
Thank you for your response.
The thing is, we don't use neoload web.
Upon further discussion with neoload support , they told us to check the configuration in $HOME/.neotys/neoload/v7.11/conf/controller_user.properties and make sure that we have the informations below in that file:
[License]
offline.mode=false
server.type=NLWEB
autolease.mode=false
autolease.checkbox.checked=false
mode=CLASSIC

Indeed when we checked and we found that configuration had
autolease.mode=true
autolease.checkbox.checked=true

So we changed them and we were able to start the test.

Kind regards.