Reply
Occasional Contributor
Posts: 5
Registered: ‎06-16-2015
Accepted Solution

Soapui not starting on Ubuntu 15.04

[ Edited ]

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?

Occasional Contributor
Posts: 5
Registered: ‎06-16-2015

Re: Soapui not starting on Ubuntu 15.04

Solved, by adding the following lines to bin/soapui.sh:

 

JAVA_TOOL_OPTIONS=""
export JAVA_TOOL_OPTIONS

Not exactly sure as to why.

Contributor
Posts: 44
Registered: ‎05-18-2015

Re: Soapui not starting on Ubuntu 15.04

Hi,

 

I'm having this same problem.  I tried adding the lines you did but I may have added them to the wrong place in the soapui.sh file.  Where should they go?  (newer to using linux)

Occasional Contributor
Posts: 5
Registered: ‎06-16-2015

Re: Soapui not starting on Ubuntu 15.04

Hi,

It should be placed somewhere at the start of the script, but after the first line with "#!/bin/sh".

You're also using java 1.8?

Contributor
Posts: 24
Registered: ‎02-18-2016

Re: Soapui not starting on Ubuntu 15.04

Hi,

 

Many thanks for posting this.

I am installing sopaui on ubuntu 14.04 having java 1.8.0_72. Installing soapui and it throws the following exception. i tried modifying the /soapui.sh file accordingly but i still has problems.

 

Any immideate help is appreciated as i am very much stuck with this.

 

 

 

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:877)
at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:721)
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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
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)
15:29:49,360 INFO [SoapUI] Used java version: 1.8.0_72
The program 'java' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
(Details: serial 15907 error_code 143 request_code 139 minor_code 7)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Occasional Contributor
Posts: 5
Registered: ‎06-16-2015

Re: Soapui not starting on Ubuntu 15.04

What does the logging says right before the error stacktrace? Especially the line mentioning "Picked up JAVA_TOOL_OPTIONS"
Contributor
Posts: 24
Registered: ‎02-18-2016

Re: Soapui not starting on Ubuntu 15.04

Hi,

 

This is all the error message i have on the screen. pls help.

 

thanks

Occasional Contributor
Posts: 5
Registered: ‎06-16-2015

Re: Soapui not starting on Ubuntu 15.04

Try starting soapui from terminal. If it still goes wrong, then please paste the complete feedback from soapui from the terminal.

Contributor
Posts: 24
Registered: ‎02-18-2016

Re: Soapui not starting on Ubuntu 15.04

Hi, thanks for your suggestion. I can see it is picking up JAVA_TOOL_OPTIONS.

when i run soapui.sh from the command line it started the soap ui but there are loads of null pointer exceptions it is returning. so i did not understand the problem.

 

here are the errors:

 

Picked up JAVA_TOOL_OPTIONS:
================================
=
= SOAPUI_HOME = /opt/SoapUI-5.2.1
=
================================
Picked up JAVA_TOOL_OPTIONS:
Configuring log4j from [/opt/SoapUI-5.2.1/bin/soapui-log4j.xml]
10:43:06,028 INFO [DefaultSoapUICore] initialized soapui-settings from [/root/soapui-settings.xml]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
10:43:06,352 INFO [PluginManager] 0 plugins loaded in 1 ms
10:43:06,352 INFO [DefaultSoapUICore] All plugins loaded
Configuring log4j from [/opt/SoapUI-5.2.1/bin/soapui-log4j.xml]
10:43:06,599 INFO [DefaultSoapUICore] initialized soapui-settings from [/root/soapui-settings.xml]
10:43:06,619 INFO [PluginManager] 0 plugins loaded in 0 ms
10:43:06,619 INFO [DefaultSoapUICore] All plugins loaded
10:43:06,682 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:877)
at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:721)
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$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
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)
10:43:06,692 INFO [WorkspaceImpl] Loading workspace from [/root/default-soapui-workspace.xml]
10:43:06,806 INFO [SoapUI] Used java version: 1.8.0_72

Valued Contributor
Posts: 604
Registered: ‎04-14-2015

Re: Soapui not starting on Ubuntu 15.04

Hi,

 

I haven't tried to recreate this on unbuntu, as I don't have it handy, but when trying to check the latest code to see where this exception is occuring I noticed that the code for the AnalyticsManager (where you are getting the nullpointer) has been updated in version SoapUI 5.2.1:

 

Screen Shot 2016-03-01 at 11.53.20.png

Whereas in the versions listed in this ticket (5.1.3 beta, 5.2.0) there is a different version, presumably matching the one you have.

 

Have you tried version 5.2.1? Sorry if you already tried this.

 

Thanks,

Rupert

Author of SoapUI Cookbook