Clarity

  • 1.  Intermittent XOG Error

    Posted Feb 07, 2014 06:28 AM

    Hi ,

    Could you please help me out in finding the root cause of this?

    I am getting this error while trying to run a process which involves a custom script.:

    org.apache.commons.jelly.JellyTagException: null:166:71: 
    <soap:invoke> Failed to send a SOAP message generated to 'http://claritytraining.1dc.com/niku/xog'.Connection reset
    
    at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:77)
    
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    
    at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
    
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    
    at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
    
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    
    at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
    
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    
    at com.niku.union.gel.tags.ScriptTag.doTag(ScriptTag.java:20)
    
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
    
    at com.niku.union.gel.GELScript.run(GELScript.java:43)
    
    at com.niku.union.gel.GELController.invoke(GELController.java:20)
    
    at com.niku.bpm.services.ExecuteCustomAction.run(ExecuteCustomAction.java:180)
    
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
    
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.net.SocketException: Connection reset
    
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
    
    at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
    
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
    
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
    
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)
    
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1072)
    
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    
    at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:261)
    
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:86)
    
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:61)
    
    at com.niku.union.gel.tags.soap.InvokeTag.doTag(InvokeTag.java:73)
    
    ... 22 more
    Root cause
    java.net.SocketException: Connection reset
    
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
    
    at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
    
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
    
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
    
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)
    
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1072)
    
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    
    at com.niku.union.xml.SimpleSOAPMessage.processRequest(SimpleSOAPMessage.java:261)
    
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:86)
    
    at com.niku.union.xml.SimpleSOAPMessage.send(SimpleSOAPMessage.java:61)
    
    at...

     



  • 2.  RE: Intermittent XOG Error

    Posted Feb 07, 2014 09:48 AM

    Without any more info, sporadic "Connection reset"s would perhaps just imply a network connectivity issue somewhere in your infrastructure.

    --

    "more info" meaning some diagnosis; does you custom script run ever (or fail always) - does it run OK outside of the process (from command line GEL), does it contain any debugging (so that we can see if it has partially executed).....etc....



  • 3.  RE: Intermittent XOG Error

    Posted Feb 07, 2014 11:15 AM

    Reading the stack trace and my guess:

    java.net.SocketException: Connection reset

    This means that your script (the client connection) was trying to read something from the (the server connection – look like a SOAP invoke based on com.niku.union.xml.SimpleSOAPMessage.processReques) but when reading the response (java.net.SocketInputStream.read) it either tried to read past the EOF or it was closed.

    My gut call (without see the script) is that your SOAP request is taking some time and your client gets tired of waiting for an answer, closes the connection and moves on.

    You could look at the system log to see what the server was doing at around the same time of the connection reset to see if this gives you any clues on what might happening.

    V/r,

    Gene