Pid * wrote:
> On 29 Mar 2012, at 12:57, "Osipov, Michael"
> <michael.osi...@siemens.com> wrote: 
> 
>> Hi folks,
>> 
>> I am trying to narrow down an exception which is happening
>> occasionally in certain spots of your code: 
>> 
>> SCHWERWIEGEND: Servlet.service() for servlet default threw exception
>> Java.net.SocketTimeoutException
>>    at
>> org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:796)
>> ...  
>> 
>> The problematic spot in that file is:
>> if ((-nRead) == Status.ETIMEDOUT || (-nRead) == Status.TIMEUP) {
>>                    throw new
>> SocketTimeoutException(sm.getString("iib.failedread")) 
>> 
>> Not to mention that 'iib.failedread' does not exists in the
>> properties file, I cannot localize the failing point whether it's
>> the client who's resetting/closing the connection or is it
>> libtcnative?   
>> My client code does this:
>> private JSONObject getJSON(HttpServletRequest request) throws
>>        IOException { String jsonBody =
>>        IOUtils.toString(request.getInputStream(), "UTF-8"); return
>>    JSONObject.fromObject(jsonBody); }
>> 
>> Is there any clue where I can start digging for this problem? If the
>> client (IE) is failing, I can't do anything about it but if my code
>> is the problem...  
> 
> Can you switch to the NIO connector and see if a similar issue occurs?

Not on the production system. We are using APR with SSL, so I did not create 
Java compatible SSL keys.
I can try on an integration system but this error happens sporadically on this 
method.

Mike

Reply via email to