Forum Discussion

wp5987's avatar
wp5987
New Member
13 days ago

command line on how to retrieve license file ?

Hi

We have on-prem floating license model.

How do we query and obtain the license file from a calling bash shell command line ?

What other readyapi command options required to retrieve the license file ?

Configuring log4j from [/home/maven/ReadyAPI-3.52.0/bin/soapui-log4j.xml]

21:34:45,612 INFO [license] ReadyAPI 3.52.0 (build 1) started - System properties: {OS=Linux, User name=maven}

:

:

No valid ReadyAPI Test license exists. Please enter the absolute path of the license file (.zip or .key):

21:34:49,229 INFO [license] ReadyAPI 3.52.0 shutting down 

21:34:49,233 ERROR [SoapUIProTestCaseRunner] java.util.NoSuchElementException: No line found

21:34:49,256 ERROR [WsdlProject] Error at line -1, column -1 org.apache.xmlbeans.XmlException: error: Premature end of file. at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.b(WsdlProjectPro.java:742) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(WsdlProjectPro.java:281) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:335) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:314) at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(WsdlProjectPro.java:238) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:93) at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:1) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.getWsdlProject(AbstractSoapUIRunner.java:536) at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:209) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:103) at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:99) Caused by: org.xml.sax.SAXParseException; Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3441) ... 15 more 21:34:49,257 ERROR [SoapUI] An error occurred [Failed to load project from file [file:/home/jenkins/example_test.xml]], see error log for details

21:34:49,258 ERROR [errorlog] com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/home/jenkins/example_test.xml]

1 Reply

  • Humashankar's avatar
    Humashankar
    Champion Level 0

    Hi wp5987 

    There is no direct command-line option in ReadyAPI to retrieve the license file for a floating license model. Here's why:

    These licenses are not tied to a specific machine and are managed by a license server.

    There's no single file to distribute.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards