Ask a Question

Soapui not starting on Ubuntu 15.04

SOLVED
fverhoef
Occasional Contributor

Soapui not starting on Ubuntu 15.04

I've got an issue with trying to get Soapui to work on Ubuntu 15.04. I've tried several installer versions (5.1.2, 5.1.3 and 5.2.0-beta) and also the tarred linux version 5.1.3. They all get the same problem though.

When I start up, I get first the question on whether I want to share statistics with Smartbear. After answering this, soapui seems to start up, adn I get a pop-up asking me whether I want to stay in the loop (by providing an email address).

 

No matter what my answers are, it results in soapui closing down.

 

The console logging is the following:

 

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
================================
=
= SOAPUI_HOME = /home/fverhoef/apps/SoapUI-5.1.3
=
================================
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar 
Configuring log4j from [/home/fverhoef/apps/SoapUI-5.1.3/bin/soapui-log4j.xml]
12:28:42,905 INFO  [DefaultSoapUICore] Creating new settings at [/home/fverhoef/soapui-settings.xml]
Configuring log4j from [/home/fverhoef/apps/SoapUI-5.1.3/bin/soapui-log4j.xml]
12:28:43,635 INFO  [DefaultSoapUICore] Creating new settings at [/home/fverhoef/soapui-settings.xml]
12:28:43,739 WARN  [AnalyticsManager] Error generating Analytics session ID - returning empty String
java.lang.NullPointerException
	at com.eviware.soapui.analytics.AnalyticsManager.makeUserId(AnalyticsManager.java:140)
	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.AnalyticsHelper.InitializeAnalytics(AnalyticsHelper.java:39)
	at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:803)
	at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:671)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.NullPointerException
	at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.getMacAddressString(GoogleAnalyticsProvider.java:99)
	at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.buildParametersString(GoogleAnalyticsProvider.java:73)
	at com.eviware.soapui.analytics.providers.GoogleAnalyticsProvider.trackAction(GoogleAnalyticsProvider.java:48)
	at com.eviware.soapui.analytics.AnalyticsManager$3.run(AnalyticsManager.java:167)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
12:28:45,691 INFO  [SoapUI] Used java version: 1.8.0_45
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f63229596cd, pid=4499, tid=140061913999104
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x89d6cd]  Method::build_method_counters(Method*, Thread*)+0x2d
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/fverhoef/apps/SoapUI-5.1.3/bin/hs_err_pid4499.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

Attached I've also 2 of the logging files created by soapui. 

-- Correction: it seems this forum doesn't accept my attachments for some reason. I do have the following log files to share:hs_err_pid4499.log and soapui.log

 

Could it be that Soapui doesn't work well with Java 8?

14 REPLIES 14

Hi,

 

I have been trying 5.2.1 version only.

 

Thanks

 method Hi, 

 

Sorry that was a stupid question on my part, if I'd looked more closely at your stacktrace I would have seen the version 5.2.1 right there!

 

The strange thing is that the line numbers in the code aren't matching up, so I thought I'd check. That makeUserId method looks fairly innocent, but is definately catching the error you're seeing:

 

private static String makeUserId() {
        try {
            NetworkInterface e = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
            byte[] mac = e.getHardwareAddress();
            MessageDigest hasher = MessageDigest.getInstance("SHA-1");
            return createHexBinary(hasher.digest(mac));
        } catch (Exception var3) {
            log.warn("Error generating Analytics session ID - returning empty String", var3);
            return "";
        }
    }

Possibly e is null, hard to say without debuggin it in ubuntu.. like I say none of these lines are 140...

 

If I get a chance I'll download ubuntu and install it on a VM, other than that I think I'm not really able to help directly, sorry about that.

 

Thanks,

Rupert

 

 

Author of SoapUI Cookbook

Hi,

 

Was just thinking, since the error seems to be in the Google Analytics code (which isn't necessary), have you tried disabling it?

 

I noticed that you can do it in in the Preferences (which you cant see as it doesn't start up), but you can also change it in the soapui-settings.xml:

 

<con:setting id="UISettings@disable_analytics">false</con:setting>

 

change to 

 

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

 

Hope this helps,

Rupert

Author of SoapUI Cookbook

Hi,

Anybody getting these Nullpointer exceptions in Analytics when running on Ubuntu, please can you try this host file work-around and let me know if it works:

 

http://rupertanderson.com/blog/soapui-google-analytics-null-pointer-exception-on-ubuntu/

 

Seemed to work for me when I tested this running SoapUI 5.2.1 (built & run from source code) on a clean install of Ubuntu 14.04.4, Java 1.7u79 and running on VirtualBox.

 

Thanks,

Rupert

Author of SoapUI Cookbook
dsantiagol
Occasional Visitor

SoapUi version 5.2.1

 

Error solved modifyng settings.xml, deleting:

 

<con:setting id="com.eviware.soapui.SoapUI@workspace">../../TestPBE-workspace.xml</con:setting>

 

Others errors in log, but soapui opens

cancel
Showing results for 
Search instead for 
Did you mean: