Menu

#72 Stale connection causing Halef to hang up at random

1.0
open
None
2015-08-24
2015-08-19
No

[java] 2015-08-19 01:07:18,350 DEBUG client.DefaultHttpClient [cbde02c5-a6ce-4839-be6e-56c04b9f5eef]: Stale connection detected

select distinct b.cairoCallId from haleflogs a, callsExt b where message like '%Stale connection detected%' and a.id between b.minId and b.maxId;
214 rows int set

Discussion

  • David Suendermann-Oeft

    This is
    callID 53aa2d62497a65b3b9b173ac7dbae46d@141.31.8.62
    jvxmlSessionId cbde02c5-a6ce-4839-be6e-56c04b9f5eef

     

    Last edit: David Suendermann-Oeft 2015-08-19
  • David Suendermann-Oeft

     
  • David Suendermann-Oeft

    There is an issue in that this call did not log anything into openvxmllogs. Whilenon-null calls most often do have entries in the openvxml table (87%):

    create table cTmp as select cairoCallId from callsExt where jvxmlSessionId in (select sessionId from openvxmllogs);
    select count(1) from completeCalls where callId in (select * from cTmp);

    Calls not logging into openvxmllogs will always be null due to the missing code record:

    select count(1) from completeCalls where callId not in (select * from cTmp) and code is null;

     
  • David Suendermann-Oeft

    Oops. This is what I found in the Catalina logs:

    INFO|2015/08/19|01:24:43|p=Deploy_Workflow|s=25C0AAF7FADE96F3218AA4751E5FE525|e=0001> completing key.toString()
    org.mozilla.javascript.WrappedException: Wrapped java.io.IOException: Server returned HTTP response code: 500 for URL: http://141.31.8.161/openvxml_logger.php (<script>#52)<br> at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)<br> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)<br> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)<br> at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)</p></script>

     
  • David Suendermann-Oeft

    In the Catalina logs, I found evidence of 962 calls:

    tjr@it-tjr18:~$ cat ./software/apache-tomcat-8.0.12/logs/catalina.out | grep '^sessionId' | sort -u | wc
    962 1924 45183

    and 20 HTTP 500 issues:

    tjr@it-tjr18:~$ cat ./software/apache-tomcat-8.0.12/logs/catalina.out | grep 'Server returned HTTP response code: 500' | wc
    20 260 3924

     
  • David Suendermann-Oeft

    • assigned_to: David Suendermann-Oeft --> Patrick Lange
     
  • David Suendermann-Oeft

    The HTTP 500 issue should be properly treated. It could even result in completed calls not being logged in the database since the code never gets stored.

     
  • David Suendermann-Oeft

    BTW, according to the catalina logs, this seems to have been the reason for the premature hangup. Right after the JAVA IO exception, the following hang-up page is being called:

    <vxml^m xmlns="http://www.w3.org/2001/vxml" version="2.1">^M
    </vxml^m>

    <form id="user-content-EndMessageForm" scope="document">^M
    <block name="EndMessageBlock">^M
    <exit>^M
    </exit></block>^M
    </form>^M
    <catch event="connection.disconnect.hangup">^M
    <goto next="/7704/-/abort">^M
    </goto></catch>^M
    ^M

     

    Last edit: David Suendermann-Oeft 2015-08-19
  • Vikram Ramanarayanan

    I had a case (on August 3rd) where my call got stuck after I had responded to a prompt (but eventually recovered after ~10 sec) -- possibly because of a similar stale connection issue. Here is the corresponding JVXML log, in case it helps with debugging:

     [java] 2015-08-03 20:10:40,632 WARN  tagstrategy.SubmitStrategy [277c3d27-7                               8c4-4966-960e-3390513f0f94]: name1='A_delivery'...
     [java] 2015-08-03 20:10:40,636 WARN  interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: evaluating165715162715973 'A_delivery;'...
     [java] 2015-08-03 20:10:40,641 DEBUG interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: evaluating 'A_delivery;'...
     [java] 2015-08-03 20:10:40,648 DEBUG interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: value of 'A_delivery;': 'pick it up'
     [java] 2015-08-03 20:10:40,653 WARN  tagstrategy.SubmitStrategy [277c3d27-7                               8c4-4966-960e-3390513f0f94]: name1='lastresult'...
     [java] 2015-08-03 20:10:40,658 WARN  interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: evaluating165715162715973 'lastresult;'...
     [java] 2015-08-03 20:10:40,663 DEBUG interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: evaluating 'lastresult;'...
     [java] 2015-08-03 20:10:40,678 DEBUG interpreter.ScriptingEngine [277c3d27-                               78c4-4966-960e-3390513f0f94]: value of 'lastresult;': '<lastresult><mark name="N                               ONE" offset="0"/><result><confidence>1</confidence><utterance><![CDATA[pick it u                               p]]></utterance><inputmode><![CDATA[voice]]></inputmode><interpretation><![CDATA                               [null]]></interpretation></result></lastresult>'
     [java] 2015-08-03 20:10:40,683 DEBUG interpreter.FormInterpretationAlgorith                               m [277c3d27-78c4-4966-960e-3390513f0f94]: caught JVoiceXML event while processin                               g 'org.jvoicexml.event.plain.jvxml.SubmitEvent'
     [java] 2015-08-03 20:10:40,689 DEBUG event.JVoiceXmlEventHandler [277c3d27-                               78c4-4966-960e-3390513f0f94]: notifying event 'org.jvoicexml.event.plain.jvxml.S                               ubmitEvent'...
     [java] 2015-08-03 20:10:40,694 INFO  event.JVoiceXmlEventHandler [277c3d27-                               78c4-4966-960e-3390513f0f94]: notified event 'org.jvoicexml.event.plain.jvxml.Su                               bmitEvent'
     [java] 2015-08-03 20:10:40,700 DEBUG formitem.AbstractInputItem [277c3d27-7                               8c4-4966-960e-3390513f0f94]: incrementing event counter for 'A_delivery'...
     [java] 2015-08-03 20:10:40,705 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org.jvoicexml.event.plain.jvxml.Su                               bmitEvent' to 1
     [java] 2015-08-03 20:10:40,711 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org.jvoicexml.event.plain.jvxml' t                               o 2
     [java] 2015-08-03 20:10:40,716 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org.jvoicexml.event.plain' to 2
     [java] 2015-08-03 20:10:40,722 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org.jvoicexml.event' to 2
     [java] 2015-08-03 20:10:40,728 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org.jvoicexml' to 2
     [java] 2015-08-03 20:10:40,734 DEBUG formitem.EventCounter [277c3d27-78c4-4                               966-960e-3390513f0f94]: incremented count of 'org' to 2
     [java] 2015-08-03 20:10:40,740 DEBUG event.JVoiceXmlEventHandler [277c3d27-                               78c4-4966-960e-3390513f0f94]: processing event of type 'org.jvoicexml.event.plai                               n.jvxml.SubmitEvent'...
     [java] 2015-08-03 20:10:40,745 DEBUG event.EventTypeFilter [277c3d27-78c4-4                               966-960e-3390513f0f94]: found 0 matching event strategies for type 'org.jvoicexm                               l.event.plain.jvxml.SubmitEvent'
     [java] 2015-08-03 20:10:40,750 INFO  event.JVoiceXmlEventHandler [277c3d27-                               78c4-4966-960e-3390513f0f94]: no matching strategy for type 'org.jvoicexml.event                               .plain.jvxml.SubmitEvent'
     [java] 2015-08-03 20:10:40,755 DEBUG event.JVoiceXmlEventHandler [277c3d27-                               78c4-4966-960e-3390513f0f94]: removed 6 event strategies for form item 'A_delive                               ry'
     [java] 2015-08-03 20:10:40,760 INFO  scope.ScopeObserver [277c3d27-78c4-496                               6-960e-3390513f0f94]: exiting scope 'dialog'...
     [java] 2015-08-03 20:10:40,764 DEBUG scope.ScopeObserver [277c3d27-78c4-496                               6-960e-3390513f0f94]: current scope stack: [SESSION, APPLICATION, DOCUMENT]
     [java] 2015-08-03 20:10:40,771 DEBUG interpreter.JVoiceXmlApplication [277c                               3d27-78c4-4966-960e-3390513f0f94]: resolving URI '/7711/-/next?Action_2ad6f48f41                               3f4b719927ee087e5c6f49=success.filled'...
     [java] 2015-08-03 20:10:40,777 DEBUG interpreter.JVoiceXmlApplication [277c                               3d27-78c4-4966-960e-3390513f0f94]: resolved to 'http://141.31.8.128:8080/7711/-/                               next?Action_2ad6f48f413f4b719927ee087e5c6f49=success.filled'
     [java] 2015-08-03 20:10:40,782 INFO  documentserver.JVoiceXmlDocumentServer                                [277c3d27-78c4-4966-960e-3390513f0f94]: loading document with URI 'http://141.3                               1.8.128:8080/7711/-/next?Action_2ad6f48f413f4b719927ee087e5c6f49=success.filled.                               ..
     [java] 2015-08-03 20:10:40,788 DEBUG schemestrategy.HttpSchemeStrategy [277                               c3d27-78c4-4966-960e-3390513f0f94]: connecting to 'http://141.31.8.128:8080/7711                               /-/next?A_delivery=pick+it+up&lastresult=%3Clastresult%3E%3Cmark+name%3D%22NONE%                               22+offset%3D%220%22%2F%3E%3Cresult%3E%3Cconfidence%3E1%3C%2Fconfidence%3E%3Cutte                               rance%3E%3C%21%5BCDATA%5Bpick+it+up%5D%5D%3E%3C%2Futterance%3E%3Cinputmode%3E%3C                               %21%5BCDATA%5Bvoice%5D%5D%3E%3C%2Finputmode%3E%3Cinterpretation%3E%3C%21%5BCDATA                               %5Bnull%5D%5D%3E%3C%2Finterpretation%3E%3C%2Fresult%3E%3C%2Flastresult%3E&Action                               _2ad6f48f413f4b719927ee087e5c6f49=success.filled'...
     [java] 2015-08-03 20:10:40,793 DEBUG schemestrategy.HttpSchemeStrategy [277                               c3d27-78c4-4966-960e-3390513f0f94]: PATRICK hack: http://141.31.8.128:8080/7711/                               -/next?A_delivery=pick+it+up&lastresult=%3Clastresult%3E%3Cmark+name%3D%22NONE%2                               2+offset%3D%220%22%2F%3E%3Cresult%3E%3Cconfidence%3E1%3C%2Fconfidence%3E%3Cutter                               ance%3E%3C%21%5BCDATA%5Bpick+it+up%5D%5D%3E%3C%2Futterance%3E%3Cinputmode%3E%3C%                               21%5BCDATA%5Bvoice%5D%5D%3E%3C%2Finputmode%3E%3Cinterpretation%3E%3C%21%5BCDATA%                               5Bnull%5D%5D%3E%3C%2Finterpretation%3E%3C%2Fresult%3E%3C%2Flastresult%3E&Action_                               2ad6f48f413f4b719927ee087e5c6f49=success.filled
     [java] 2015-08-03 20:10:40,798 DEBUG schemestrategy.HttpSchemeStrategy [277                               c3d27-78c4-4966-960e-3390513f0f94]: timeout set to '5000'
     [java] 2015-08-03 20:10:40,803 DEBUG conn.BasicClientConnectionManager [277                               c3d27-78c4-4966-960e-3390513f0f94]: Get connection for route {}->http://141.31.8                               .128:8080
     [java] 2015-08-03 20:10:40,808 DEBUG client.DefaultHttpClient [277c3d27-78c                               4-4966-960e-3390513f0f94]: Stale connection check
     [java] 2015-08-03 20:10:40,821 DEBUG protocol.RequestAddCookies [277c3d27-7                               8c4-4966-960e-3390513f0f94]: CookieSpec selected: best-match
     [java] 2015-08-03 20:10:40,826 DEBUG protocol.RequestAddCookies [277c3d27-7                               8c4-4966-960e-3390513f0f94]: Cookie [version: 0][name: JSESSIONID][value: 2F5974                               237993E8EB0F54218AE93230B1][domain: 141.31.8.128][path: /7711/][expiry: null] ma                               tch [141.31.8.128:8080/7711/-/next]
     [java] 2015-08-03 20:10:40,831 DEBUG protocol.RequestAuthCache [277c3d27-78                               c4-4966-960e-3390513f0f94]: Auth cache not set in the context
     [java] 2015-08-03 20:10:40,836 DEBUG protocol.RequestTargetAuthentication [                               277c3d27-78c4-4966-960e-3390513f0f94]: Target auth state: UNCHALLENGED
     [java] 2015-08-03 20:10:40,841 DEBUG protocol.RequestProxyAuthentication [2                               77c3d27-78c4-4966-960e-3390513f0f94]: Proxy auth state: UNCHALLENGED
     [java] 2015-08-03 20:10:40,845 DEBUG client.DefaultHttpClient [277c3d27-78c                               4-4966-960e-3390513f0f94]: Attempt 1 to execute request
     [java] 2015-08-03 20:10:40,849 DEBUG conn.DefaultClientConnection [277c3d27                               -78c4-4966-960e-3390513f0f94]: Sending request: POST /7711/-/next?A_delivery=pic                               k+it+up&lastresult=%3Clastresult%3E%3Cmark+name%3D%22NONE%22+offset%3D%220%22%2F                               %3E%3Cresult%3E%3Cconfidence%3E1%3C%2Fconfidence%3E%3Cutterance%3E%3C%21%5BCDATA                               %5Bpick+it+up%5D%5D%3E%3C%2Futterance%3E%3Cinputmode%3E%3C%21%5BCDATA%5Bvoice%5D                               %5D%3E%3C%2Finputmode%3E%3Cinterpretation%3E%3C%21%5BCDATA%5Bnull%5D%5D%3E%3C%2F                               interpretation%3E%3C%2Fresult%3E%3C%2Flastresult%3E&Action_2ad6f48f413f4b719927e                               e087e5c6f49=success.filled HTTP/1.1
     [java] 2015-08-03 20:10:40,855 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "POST /7711/-/next?A_delivery=pick+it+up&lastresult=%3Clastresult                               %3E%3Cmark+name%3D%22NONE%22+offset%3D%220%22%2F%3E%3Cresult%3E%3Cconfidence%3E1                               %3C%2Fconfidence%3E%3Cutterance%3E%3C%21%5BCDATA%5Bpick+it+up%5D%5D%3E%3C%2Futte                               rance%3E%3Cinputmode%3E%3C%21%5BCDATA%5Bvoice%5D%5D%3E%3C%2Finputmode%3E%3Cinter                               pretation%3E%3C%21%5BCDATA%5Bnull%5D%5D%3E%3C%2Finterpretation%3E%3C%2Fresult%3E                               %3C%2Flastresult%3E&Action_2ad6f48f413f4b719927ee087e5c6f49=success.filled HTTP/                               1.1[\r][\n]"
     [java] 2015-08-03 20:10:40,860 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "Content-Length: 0[\r][\n]"
     [java] 2015-08-03 20:10:40,864 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "Host: 141.31.8.128:8080[\r][\n]"
     [java] 2015-08-03 20:10:40,869 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "Connection: Keep-Alive[\r][\n]"
     [java] 2015-08-03 20:10:40,876 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "User-Agent: Apache-HttpClient/4.2.3 (java 1.5)[\r][\n]"
     [java] 2015-08-03 20:10:40,881 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "Cookie: JSESSIONID=2F5974237993E8EB0F54218AE93230B1[\r][\n]"
     [java] 2015-08-03 20:10:40,886 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "Cookie2: $Version=1[\r][\n]"
     [java] 2015-08-03 20:10:40,892 DEBUG http.wire [277c3d27-78c4-4966-960e-339                               0513f0f94]: >> "[\r][\n]"
     [java] 2015-08-03 20:10:40,897 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> POST /7711/-/next?A_delivery=pick+it+up&lastresult=%3Clastresu                               lt%3E%3Cmark+name%3D%22NONE%22+offset%3D%220%22%2F%3E%3Cresult%3E%3Cconfidence%3                               E1%3C%2Fconfidence%3E%3Cutterance%3E%3C%21%5BCDATA%5Bpick+it+up%5D%5D%3E%3C%2Fut                               terance%3E%3Cinputmode%3E%3C%21%5BCDATA%5Bvoice%5D%5D%3E%3C%2Finputmode%3E%3Cint                               erpretation%3E%3C%21%5BCDATA%5Bnull%5D%5D%3E%3C%2Finterpretation%3E%3C%2Fresult%                               3E%3C%2Flastresult%3E&Action_2ad6f48f413f4b719927ee087e5c6f49=success.filled HTT                               P/1.1
     [java] 2015-08-03 20:10:40,902 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> Content-Length: 0
     [java] 2015-08-03 20:10:40,907 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> Host: 141.31.8.128:8080
     [java] 2015-08-03 20:10:40,913 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> Connection: Keep-Alive
     [java] 2015-08-03 20:10:40,918 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> User-Agent: Apache-HttpClient/4.2.3 (java 1.5)
     [java] 2015-08-03 20:10:40,923 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> Cookie: JSESSIONID=2F5974237993E8EB0F54218AE93230B1
     [java] 2015-08-03 20:10:40,929 DEBUG http.headers [277c3d27-78c4-4966-960e-                               3390513f0f94]: >> Cookie2: $Version=1
    
     

Log in to post a comment.

MongoDB Logo MongoDB