Forum Discussion

TGeppert's avatar
TGeppert
Occasional Contributor
11 years ago

java.util.EmptyStackException when running SoapUI test

Hi Team,

When I'm running a project I'm getting java.util.EmptyStackException. I'm using SoapUI 5.1.2 Pro
In my project I have many TestSteps in TestCase and TestSuites.
To validate the content of response I use Contains, Not Contains, Not SOAP Fault, SOAP Response and mostly XPath Match assertions.
I also have a groovy script as TestStep (contained in a TestSuite), to execute the tests on 4 different servers with 11 different properties each. So each test is executed 44 times. During each execution of failing TestCases the result message of a failed TestStep is written to a file.

My memory settings are -Xms128m -Xmx6134m. I get the mentioned error (not at a certain TestStep).

I would like to know why I get this error in the soapui-error.log.


2014-11-18 16:37:27,921 ERROR [errorlog] java.util.EmptyStackException
java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at java.util.Stack.pop(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.getNodeForPath(Unknown Source)
at javax.swing.tree.VariableHeightLayoutCache.getBounds(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(Unknown Source)
at javax.swing.JTree.getPathBounds(Unknown Source)
at com.eviware.soapui.model.tree.AbstractModelItemTreeNode.propertyChange(AbstractModelItemTreeNode.java:124)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:71)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.propertyChange(WsdlTestRequestStep.java:347)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:71)
at com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem.setIcon(AbstractWsdlModelItem.java:84)
at com.eviware.soapui.impl.wsdl.support.IconAnimator.run(IconAnimator.java:150)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

7 Replies

  • Hi,

    I have never encountered that exception before. Seems to be something related to the GUI in SoapUI Pro and not test case excution. Is this exception causing your tests to fail, or is this just an exception you are seeing in the log files?


    Regards,
    Marcus
    SmartBear Support
  • TGeppert's avatar
    TGeppert
    Occasional Contributor
    Hi Marcus,

    This is an exception that i see in the log files. I have run once again the script and get this error log:

    2014-11-24 16:31:32,159 ERROR [errorlog] java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
    2014-11-24 16:32:04,822 ERROR [errorlog] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
    java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.waitUntilFinished(AbstractTestRunner.java:225)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.runTestCase(WsdlTestSuiteRunner.java:177)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.runSequential(WsdlTestSuiteRunner.java:147)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:102)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:46)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    2014-11-24 16:40:03,221 ERROR [errorlog] java.lang.OutOfMemoryError: Java heap space
    java.lang.OutOfMemoryError: Java heap space
  • TGeppert's avatar
    TGeppert
    Occasional Contributor
    Hi Giscard,

    I have improved memory usage and also I have tried to run my test with maven soapUI plugin but then I got again the OutOfMemoryError Java heap space..
    It seems for me that soapUI have problems with the Garbage Collector.

    Best Regards
  • Hi,

    If you are running maven then you need to increase the java heap space for maven then. On windows, set MAVEN_OPTS=”-Xmx2056m” or Linux export MAVEN_OPTS=”-Xmx2056m” on command line before running.


    Regards,
    Marcus
    SmartBear Support
  • TGeppert's avatar
    TGeppert
    Occasional Contributor
    Hi,

    I have increased the java heap space in maven to -Xmx14G and still gettint the java heap space error. Now it works fine because I run the test each time in a batch-file and SoapUI is inwoked for each run of the test.
    But I would get another solution for my problem.

    Best regards
  • nmrao's avatar
    nmrao
    Community Hero
    Are the tests being run thru testrunner script? are the tests run in parallel? Would you please brief about tests little more clear along with os details?Looks something fishy. Otherwise, I believe that much memory is not required. Also please keep min and max heap sizes are same.