Forum Discussion

inthegarage's avatar
inthegarage
Occasional Contributor
9 years ago

Cannot get soapui-settings to be recognised

hi,

 

I'm using the maven plugin to run soap ui - which it does seem to do, however it always seems to come up with an error regarding analytics. Reading other posts it would seem that it is possible to turn analytics off with the following command:

 

<soapui:setting id="UISettings@disable_analytics">true</soapui:setting>

 

However when I put this is a config file like so:

 

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- This file is fine, but SOAP UI moans a lot about it. TBI -->
<soapui:soapui-workspace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapui="http://eviware.com/soapui/config"
xsi:schemaLocation="http://eviware.com/soapui/config https://raw.githubusercontent.com/SmartBear/soapui/next/soapui/src/main/xsd/soapui/soapui.xsd">
<soapui:settings>
<soapui:setting id="UISettings@disable_analytics">true</soapui:setting>
</soapui:settings>
</soapui:soapui-workspace>

 

I get the following error from the runner:

 

SoapUI 5.2.1 MockService Runner
10:02:15,180 WARN  [DefaultSoapUICore] Failed to load settings from [Element soapui-workspace@http://eviware.com/soapui/config is not a valid soapui-settings@http://eviware.com/soapui/config document or a valid substitution.], creating new

 

It doesn't matter how I format the XML, or if I slightly twist the XML around the XML is always failed. When I put the XML in a validator with the XSD then it is OK.

 

What is the problem with the config file, as I'm struggling to see any. As you can imagine the error still remains as no config file has been recognised:

 

10:02:16,959 WARN  [AnalyticsManager] Error generating Analytics session ID - returning empty String
java.lang.NullPointerException
	at java.security.MessageDigest.update(Unknown Source)
	at java.security.MessageDigest.digest(Unknown Source)
	at com.eviware.soapui.analytics.AnalyticsManager.makeUserId(AnalyticsManager.java:142)
	at com.eviware.soapui.analytics.AnalyticsManager.<init>(AnalyticsManager.java:30)
	at com.eviware.soapui.analytics.AnalyticsManager.getInstance(AnalyticsManager.java:35)
	at com.eviware.soapui.analytics.Analytics.getAnalyticsManager(Analytics.java:16)
	at com.eviware.soapui.analytics.Analytics.trackAction(Analytics.java:24)
	at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.start(WsdlMockRunner.java:210)
	at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.<init>(WsdlMockRunner.java:71)
	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:249)
	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:222)
	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:58)
	at com.eviware.soapui.tools.SoapUIMockServiceRunner.runMockService(SoapUIMockServiceRunner.java:197)
	at com.eviware.soapui.tools.SoapUIMockServiceRunner.runRunner(SoapUIMockServiceRunner.java:124)
	at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:204)
	at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:139)
	at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:114)
	at com.eviware.soapui.tools.SoapUIMockServiceRunner.main(SoapUIMockServiceRunner.java:66)
10:02:16,962 INFO  [SoapUIMockServiceRunner] Started 1 runner

 

 

Any advice welcome.

ITG. 

10 Replies

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    Are you by any chance using Ubuntu?

     

    If so, I have seen several posts relating to the GA error and Ubuntu. As of let, I havent found a work-around, but I do think theres a possible code fix - see if any of this post seems familiar:

     

    http://community.smartbear.com/t5/SoapUI-Open-Source/No-Graph-Data-to-Export-Error-after-900s-BURST-100-THREAD-60s/td-p/116967/highlight/false

     

    Relating to chaning the analystics preference in the settings file, I believe this can be done successfully - please see last post in :

     

    http://community.smartbear.com/t5/SoapUI-Open-Source/Soapui-not-starting-on-Ubuntu-15-04/td-p/101141/page/2

     

    But I dont think this fixes the nullpointer, which seems to relate to an uncaught exception where SoapUI tries to look up the machine's mac address.

     

    Please let me know your environment,

    Thanks,

    Rupert

     

     

     

    • inthegarage's avatar
      inthegarage
      Occasional Contributor

      Hi there,

       

      Thanks for the reply.

       

      Yep, it's Ubuntu alright:

       

       

      3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

       

       The problem seems exactly the same, obviously some thing in the analytics or related stuff needs a MAC address.

       

      Oh well, it's already been reported, let's hope it can get fixed at some point.

       

      However my settings file is not recognised either so that seems a seperate issue. I took the config advisory from that post, so it remains a mystery why the file is continuously rejected. It is picking up the right file - as if I delete it or turn it to junk it gives a different error message.

       

      If you could shed any further light on the config issue that would be nice - is it possible to attach your full config - or at least a working part?

       

      cheers

       

      ITG.

       

       

       

       

      • nmrao's avatar
        nmrao
        Champion Level 3
        Just a quick check, are you sure the same settings file is being used?