SoapUI on Ubuntu 15.10 – NPE trying to add an assertion on a SOAP or HTTP request
I’m using SoapUI 5.2.1 to create a test case about SOAP and HTTP requests.
I’m working on Ubuntu 15.10 64bits. SoapUI is powered by OpenJDK 7u91-2.6.3-0ubuntu0.15.10.1. The problem occurs also with SoapUI 5.0.0 or 5.2.0.
When trying to add and assertion on a SOAP or HTTP request of my test case, I get the following NullPointerException
in the xterm where I had started SoapUI. The NPE occurs when clicking on a assertion category (left part of the dialog box “Add assertion”):
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.panels.assertions.AddAssertionPanel$CategoryListRenderer.getTableCellRendererComponent(AddAssertionPanel.java:473)
at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7044)
at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7431)
at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6946)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
....
If I switch my JVM to Oracle Java 8 (Oracle Java 7 is no more downloadable without an Oracle support account), the NPE disappear. I don’t known if the problem is due to something missing in OpenJDK, for example because of license compliance, or if the problem is due to Java 7 vs Java 8.
You can follow this problem in the SoapUI forum here: http://community.smartbear.com/t5/SoapUI-Open-Source/NPE-trying-to-add-an-assertion-on-a-HTTP-request/m-p/110745
Bad outfits, bad hair and bad performances will be mercilessly I can finally freely talk to my male friends without feeling
To avoid this problem, use the SoapUI archive available on SoapUI web-site (https://www.soapui.org/downloads/soapui.html) that embeds the right JRE, instead of downloading SoapUI from SourceForge.net (https://sourceforge.net/projects/soapui/files/soapui/5.2.1) that does not provide a JRE and uses the default JVM available on your system.