Forum Discussion

JKowalczyk's avatar
JKowalczyk
Occasional Contributor
14 years ago

GUI hangs on some REST requests

Don't know what's the actual reason for such behavior apart from what I could see in log.

ps. it happens in 4.5.0 & 4.5.1


18:24:02,155 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check
18:24:02,156 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection detected
18:24:02,156 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
18:24:02,234 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
18:24:02,234 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /api/categories HTTP/1.1
18:24:02,404 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 404 Not Found
18:24:02,404 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
java.lang.NullPointerException
at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:43)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:429)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.propertyChange(RestTestRequestStep.java:479)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:298)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:291)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:229)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:85)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:716)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:138)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:606)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.afterSubmit(RestTestRequestDesktopPanel.java:237)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:157)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
net.sf.json.JSONException: Object is null
at net.sf.json.JSONNull.isEmpty(JSONNull.java:92)
at com.eviware.soapui.impl.rest.panels.request.views.json.JsonResponseView.setEditorContent(JsonResponseView.java:117)
at com.eviware.soapui.impl.rest.panels.request.views.json.JsonResponseView.propertyChange(JsonResponseView.java:150)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:298)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:291)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:229)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:85)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:716)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:138)
at com.eviware.soapui.impl.support.panels.AbstractHttpRequestDesktopPanel.afterSubmit(AbstractHttpRequestDesktopPanel.java:606)
at com.eviware.soapui.impl.wsdl.panels.teststeps.RestTestRequestDesktopPanel.afterSubmit(RestTestRequestDesktopPanel.java:237)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:157)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
18:24:34,707 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed

9 Replies

  • Hi,

    thanks for reporting this - a potential fix is in the upcoming nightly build.

    regards,

    /Ole
    SmartBear Software
  • We are seeing the same problem except it occurs when executing the tests via the soapui-pro-maven-plugin. Where can we try downloading the latest nightly release? Will 4.5.2 include a fix for this? When will it be released?

    Thank you.
  • Sorry...should have been more specific. Where can we get the nightly build of the soapui-pro-maven-plugin? Is there a snapshot repository we can point to?

    Thank you.
  • I'm having the same "UI hangs" issue a few seconds after opening the REST Request Editor on a Mac. Tested with 4.5.1 and nightly build 4.5.1.1 from July 24.
  • JKowalczyk's avatar
    JKowalczyk
    Occasional Contributor
    Hey,

    Any updates on the date when this problem will be solved? Restarting the app 10x (or more) a day is becoming far more than frustrating

    J
  • I start the app by running soapui-pro.sh and it doesn't freeze as often. If you're on a Mac just open up the package contents and the file is in the bin directory. Rename the file to soapui-pro.sh.command and you can run it by double clicking it.
  • JKowalczyk's avatar
    JKowalczyk
    Occasional Contributor
    Could you kindly do something with this issue?
    Today I had to restart SoapUI more than a dozen of times in a hour and that was when I needed it the most.

    Kind regards
    J
  • JKowalczyk's avatar
    JKowalczyk
    Occasional Contributor
    Are any updates on this BUG?

    Please do something with it. I'm loosing an hour or more everyday at work just to restart SoapUI and catch up with things I lost since last save. (I've configured autosave and backup every 5min, but that doesn't help me too much)

    below is another excerpt from SoapUI log taken when GUI hanged:

    18:03:28,667 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 400 Bad Request
    18:03:28,668 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
    18:03:28,739 INFO [AbstractHttpRequestDesktopPanel] Got response for [here's_the_HTTP_request_step_name] in 362ms (94 bytes)
    18:04:00,417 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
    18:04:04,354 ERROR [AbstractTestRunner] Exception during Test Execution
    org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
    at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1244)
    at com.eviware.soapui.config.impl.PropertyConfigImpl.getName(Unknown Source)
    at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder$PropertiesStepProperty.getName(XmlBeansPropertiesTestPropertyHolder.java:293)
    at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHolder.getPropertyNames(XmlBeansPropertiesTestPropertyHolder.java:186)
    at com.eviware.soapui.impl.wsdl.teststeps.WsdlRunTestCaseTestStep.getPropertyNames(WsdlRunTestCaseTestStep.java:448)
    at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DefaultPropertyTableHolderModel.getPropertyNames(DefaultPropertyTableHolderModel.java:40)
    at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DefaultPropertyTableHolderModel.fireTableDataChanged(DefaultPropertyTableHolderModel.java:56)
    at com.eviware.soapui.impl.wsdl.panels.teststeps.support.DebugPropertyHolderTable$DebugDefaultPropertyTableHolderModel.clearChanged(SourceFile:160)
    at com.eviware.soapui.impl.wsdl.panels.testcase.DebugPropertiesContainerPanel.a(SourceFile:76)
    at com.eviware.soapui.impl.wsdl.panels.testcase.DebugPropertiesContainerPanel$1.beforeStep(SourceFile:131)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:232)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)