[Json-rpc-java] SocketTimeout Exception when using apache
Hunt, Stephen
stephen.hunt at northgate-is.com
Fri Dec 15 23:31:19 SGT 2006
I'm using JSON in a multi tier deployment with apache doing virtual host and
reverse proxying, forwarding requests from specific customers to their own
instance of tomcat.
If a customer connects directly to their instance of tomcat then everything
works fine, however intermittently when connecting through the apache
forwarding though we see this exception and the browser hangs until
eventually returning a javascript error.
2006-12-04 14:03:57,856 WARN
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mxvl].[com.
metaparadigm.jsonrpc.JSONRPCServlet]] Servlet.service() for servlet
com.metaparadigm.jsonrpc.JSONRPCServlet threw exception
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at
java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java(C
ompiled Code))
at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(I
nternalInputBuffer.java(Compiled Code))
at
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFil
ter.java(Compiled Code))
at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java
(Compiled Code))
at org.apache.coyote.Request.doRead(Request.java(Inlined
Compiled Code))
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java(Inl
ined Compiled Code))
at
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java(Compiled
Code))
at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java(Inlined
Compiled Code))
at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java(
Compiled Code))
at
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled
Code))
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled
Code))
at
java.io.InputStreamReader.read(InputStreamReader.java(Compiled Code))
at java.io.BufferedReader.fill(BufferedReader.java(Compiled
Code))
at java.io.BufferedReader.read1(BufferedReader.java(Compiled
Code))
at java.io.BufferedReader.read(BufferedReader.java(Compiled
Code))
at
com.metaparadigm.jsonrpc.JSONRPCServlet.service(JSONRPCServlet.java(Compiled
Code))
at
javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java(Compiled Code))
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java(Compi
led Code))
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compil
ed Code))
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java(Compiled Code))
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a(Compiled Code))
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java(Compiled Code))
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a(Compiled Code))
at java.lang.Thread.run(Thread.java:570)
Obviously this is some sort of timeout, but I'm at a loss trying to explain
why it's occurring or coming up with a solution that doesn't involve
bypassing apache (not an option unfortunately).
Can anyone give any suggestions, even suggestions of where to look would be
helpful at this point.
Thanks in advance.
Steve
Steve Hunt
Software Developer
Northgate HR
Direct/Tel: +44(0)1246 439478
Fax: +44(0)1246 439401
Email: Stephen.Hunt at northgate-is.com <mailto:Stephen.Hunt at northgate-is.com>
Web: www.northgate-is.com/hrs <http://www.northgate-is.com/hrs>
-----------------------------------------------------------------------------------------
This email is sent on behalf of Northgate Information Solutions UK Limited ("Northgate")
and is strictly confidential and intended solely for the addressee(s). It may contain
personal and confidential information and as such may be protected by the Data Protection
Act 1998.
If you are not the intended recipient of this email you must: (i) not disclose, copy or
distribute its contents to any other person nor use its contents in any way or you may be
acting unlawfully; (ii) contact Northgate immediately on +44 (0)1442 232424 quoting the
name of the sender and the addressee then delete it from your system.
Any views or opinions expressed within this email are those of the author, and do not
necessarily represent those of Northgate.
Northgate has scanned this email for viruses but does not accept any responsibility once
this email has been transmitted. You should scan attachments (if any) for viruses.
-----------------------------------------------------------------------------------------
More information about the Json-rpc-java
mailing list