Service Randomly Closes

Version 1
    This document was generated from CDN thread

    Created by: Kevin Schantz on 25-08-2009 09:02:26 PM
    I have an phone service that randomly closes. It otherwise works wonderfully. Sometimes an error comes up that says something about an HTTP request. My only thought here is that perhaps my tomcat server is closing the connection to the phone, but this does not make any sense. Does anyone have any ideas?

    Subject: RE: Service Randomly Closes
    Replied by: David Staudt on 25-08-2009 09:55:17 PM
    Is there a Refresh header on the XML document?
     
    Is is it a xxxFilexxx object where one of the image objects doesn't download and eventually times out?
     
    Could another app be trying to POST a CiscoIPPhoneExecute object to the phone?
     
    Probably the best way to troubleshoot would be to gather a network packet capture (i.e. Wireshark) from the phone's PC switch port.

    Subject: RE: Service Randomly Closes
    Replied by: Kevin Schantz on 26-08-2009 06:29:58 PM
    There is no refresh header, I'm not using any file objects, and i dont think any other apps could be trying to POST to the phone, as this is the only installed service.
     
    Ive never used wireshark before, any pointers?

    Subject: RE: Service Randomly Closes
    Replied by: Kevin Schantz on 26-08-2009 08:27:43 PM
    wonderful, I'll give that a shot.

    Subject: RE: Service Randomly Closes
    Replied by: Kevin Schantz on 26-08-2009 08:28:13 PM
    And for extra information, the error displayed by the phone is "HTTP Request Cancelled".

    Subject: RE: Service Randomly Closes
    Replied by: Kevin Schantz on 26-08-2009 08:58:17 PM
    I didn't take a look with wireshark, (perhaps i will to confirm my theory). But it appears that cucm invokes a soft reset of the phone after information regarding it is changed. In my case, the app changes speed dials, and once it closes the phone is sent a reset request by cucm. There is however a window of time in between when the phone is told to reset, and when the phone actually does reset, and if I jump into the app during that time, the app is closed by the reset.

    Subject: RE: Service Randomly Closes
    Replied by: David Staudt on 26-08-2009 08:24:22 PM
    Wireshark is pretty easy to use:
     
    - Install it on your PC
    - Pplug your PC into phone's extra switch port
    - Launch Wireshark, go to Capture/Options
    - Click the Start button next to the interface that is connected to the phone (default options is fine)
    - Perform the phone test (reboot, launch test app, reproduce problem)
    - Close Wireshark, saving the resulting file (default options)

    Subject: RE: Service Randomly Closes
    Replied by: David Staudt on 26-08-2009 09:18:53 PM
    Ah, makes perfect sense