java - Jersey REST service throw Timeout exception -


we have jersey rest service, , rest client using spring's rest template, once in while noticed client got 500 internal server error rest service:

error: 500 internal server error; nested exception org.springframework.web.client.httpservererrorexception: 500 internal server error 

when checking server's log found this:

org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [abc] in context path [] threw exception [javax.ws.rs.processingexception: java.net.connectexception: connection timed out (connection timed out)] root cause java.net.connectexception: connection timed out (connection timed out)     @ java.net.plainsocketimpl.socketconnect(native method)     @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350) 

i'm not sure problem here, server timeout or client got timeout? if it's client issue, can add retry, if it's server timeout?

the error connection timed out: means request did not response within specific time or in time period. , there many reasons time out our response bot in time period:

1) may ip address or port incorrect.

2) may ip address down.

3) server or host taking longer or more time specify time timeout.

4) may firewall of server or host blocking requests or port using.

5) internet access or local network issue or connectivity.

6) packet loss due wrong network configuration or traffic overload.

c) overloading of many requests issue @ host or server .


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

Why does math.random(999999999999) returns 1 in Lua? -