Forum Discussion

BhuvanShanmugam's avatar
BhuvanShanmugam
Contributor
17 years ago

Exception when running load test

Hi ,

I have a simple 2 req/resp test case and trying a load test with 10 threads.
I am using a mock service to test this.

I get the following exception even if i run with just 1 Thread.


Wed Aug 06 17:46:44 BST 2008:ERROR:java.lang.NullPointerException
   java.lang.NullPointerException
    at com.eviware.soapui.impl.coverage.ProjectCoverage.a(SourceFile:629)
    at com.eviware.soapui.impl.coverage.ProjectCoverage.accumulateMockResult(SourceFile:492)
    at com.eviware.soapui.impl.wsdl.panels.mock.ProWsdlMockServiceDesktopPanel$CoveragetMockRunListener.onMockResult(SourceFile:128)
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:299)
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:57)
    at com.eviware.soapui.monitor.MockEngine$ServerHandler.handle(MockEngine.java:296)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)



I also see the following exception when I increase the number of threads to about 50. In both cases I dont give any time delay between threads and the Startegy is Simple.

Wed Aug 06 17:51:28 BST 2008:ERROR:java.util.ConcurrentModificationException
  java.util.ConcurrentModificationException
  at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:761)
  at java.util.LinkedList$ListItr.next(LinkedList.java:696)
  at com.eviware.soapui.impl.coverage.ProjectCoverage.a(SourceFile:627)
  at com.eviware.soapui.impl.coverage.ProjectCoverage.accumulateMockResult(SourceFile:492)
  at com.eviware.soapui.impl.wsdl.panels.mock.ProWsdlMockServiceDesktopPanel$CoveragetMockRunListener.onMockResult(SourceFile:128)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:299)
  at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchMockRequest(WsdlMockRunner.java:57)
  at com.eviware.soapui.monitor.MockEngine$ServerHandler.handle(MockEngine.java:296)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)


Any help in this regard is appreaciated.

Bhuvan.
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    hmm.. have you enabled Coverage for the MockService? Try enabling or disabling it to see if that helps.. alternatively try disabling the MockService log.. sounds like a bug otherwise..

    regards,

    /Ole
    eviware.com
  • Ole,

    If I disable MockService coverage, this error does not show up.

    Thanks.

    The MockServiceLog is already disabled ( I presume).
    I get the following logs.

    Thu Aug 07 09:24:04 BST 2008:INFO:Disabling logs during loadtests
    Thu Aug 07 09:24:06 BST 2008:INFO:Enabled logs after loadtests


    However, I have unearthed a couple of others.

    When I open the MockService Options dialog I get the following Exception.

    >>>>>
    Thu Aug 07 09:20:46 BST 2008:ERROR:java.lang.NullPointerException
      java.lang.NullPointerException
      at java.io.StringReader.(StringReader.java:33)
      at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:707)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:695)
      at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:682)
      at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
      at com.eviware.soapui.config.StringListConfig$Factory.parse(Unknown Source)
      at com.eviware.soapui.support.types.StringList.fromXml(StringList.java:65)
      at com.eviware.soapui.support.components.StringListFormComponent.setValue(StringListFormComponent.java:119)
      at com.eviware.x.impl.swing.JStringListFormField.setValue(JStringListFormField.java:30)
      at com.eviware.x.impl.swing.SwingXFormImpl.setComponentValue(SwingXFormImpl.java:172)
      at com.eviware.x.impl.swing.JFormDialog.setValue(JFormDialog.java:129)
      at com.eviware.soapui.impl.coverage.panels.CoverageOptionsAction.actionPerformed(SourceFile:38)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
      at java.awt.Component.processMouseEvent(Component.java:6038)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      at java.awt.Component.processEvent(Component.java:5803)
      at java.awt.Container.processEvent(Container.java:2058)
      at java.awt.Component.dispatchEventImpl(Component.java:4410)
      at java.awt.Container.dispatchEventImpl(Container.java:2116)
      at java.awt.Component.dispatchEvent(Component.java:4240)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      at java.awt.Container.dispatchEventImpl(Container.java:2102)
      at java.awt.Window.dispatchEventImpl(Window.java:2429)
      at java.awt.Component.dispatchEvent(Component.java:4240)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    >>>>>


    And When I opened the load test screen and started it the first time, the following stack appeared on the 'MS-DOS' window that opened the UI.

    >>>
    09:17:58,541 INFO  [MockEngine] Started mockService [MockService - Default] on p
    ort [8080] at path [/]
    09:17:58,557 INFO  [MockEngine] Mounted WSDL for interface [UserManagementServic
    eSoapBinding] at [?WSDL&interface=UserManagementServiceSoapBinding]
    09:18:16,376 INFO  [SoapUI] Disabling logs during loadtests
    09:18:17,407 INFO  [HttpClientSupport$Helper] Initializing SSL
    Exception in thread "Retry ModelItemIconAnimator" java.util.EmptyStackException
            at java.util.Stack.peek(Stack.java:85)
            at java.util.Stack.pop(Stack.java:67)
            at javax.swing.tree.VariableHeightLayoutCache.getNodeForPath(VariableHei
    ghtLayoutCache.java:816)
            at javax.swing.tree.VariableHeightLayoutCache.getBounds(VariableHeightLa
    youtCache.java:197)
            at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:515
    )
            at javax.swing.plaf.basic.BasicTreeUI.getPathBounds(BasicTreeUI.java:508
    )
            at javax.swing.JTree.getPathBounds(JTree.java:2066)
            at com.eviware.soapui.model.tree.AbstractModelItemTreeNode.propertyChang
    e(AbstractModelItemTreeNode.java:133)
            at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
    port.java:339)
            at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
    port.java:276)
            at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChan
    ged(AbstractModelItem.java:53)
            at com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem.setIcon(AbstractWs
    dlModelItem.java:68)
            at com.eviware.soapui.impl.wsdl.support.ModelItemIconAnimator.run(ModelI
    temIconAnimator.java:107)
            at java.lang.Thread.run(Thread.java:619)
    09:18:24,983 INFO  [SoapUI] Enabled logs after loadtests
    >>>

    Hope this helps,

    Bhuvan.
  • omatzura's avatar
    omatzura
    Super Contributor
    Thanks,

    these all seem to be fixed in our codebase, will be in next release.. thanks for reporting!

    /Ole
    eviware.com