Questions tagged [socket-timeout-exception]

Signals that a timeout has occurred on a socket read or accept.

These exceptions are often occurring in a Java Platform, so read more in:

Class SocketTimeoutException

260 questions
7
votes
0 answers

Spark (using Scala) throws SocketException: Connection reset and SocketTimeoutException: Read timed out

I am trying to load a (very big) serialized RDD of objects into the memory of a cluster of ec2 nodes, and then do some extraction on those objects and store the resulting RDD on disk (as object files). Unluckily I get SocketException: Connection…
Javad
  • 5,755
  • 4
  • 41
  • 51
6
votes
2 answers

java.net.SocketTimeoutException with Retrofit

I'm using Retrofit and OkHttp to connect to server. in most times it works good. but is some case it fail. some times HTTP FAILED: java.net.UnknownHostException and some times java.net.SocketTimeoutException. this error is just when I'm using home…
Mohammad
  • 177
  • 2
  • 9
6
votes
0 answers

The state server has closed an expired TCP/IP connection

We are getting 500: Server Error page on our IIS 8.5 server, on different frequency of times, and the number of error is increasing and decreasing with the traffic level. After investigating Event Log we find below error. The state server has…
6
votes
2 answers

HttpURLConnection.getInputStream() throws SocketTimeoutException

I am using HttpURLConnection to upload an image and get its response. It works on emulator and my XiaoMi device. However, it always get a SocketTimeoutException on my Sony device on the line connection.getInputStream(). I've tried to set timeouts to…
6
votes
1 answer

java.net.SocketTimeoutException: Read timed out error when trying to read from table

I'm working on coding a program that will go and retrieve the price of a person from a table on a website. The code gets a last name and searches the table for that name before returning the price (a different column) whenever I run it I get a…
AndyReifman
  • 1,459
  • 4
  • 18
  • 34
6
votes
1 answer

Java - readObject() and setSoTimeout()

So, i wrote a thread on my client side , which tries to readObject() from a socket stream. This thread runs as long the client is connected. The connection to the server can be closed on the client's GUI. If the client decides to disconnect(this…
Jonas Bräuer
  • 183
  • 2
  • 15
5
votes
0 answers

java.net.SocketTimeoutException: connect timed out when connecting to postgresql using jdbc

We are planning to switch DB from Oracle to PostgreSQL. After creating tables, I am about to load actual data into PostgreSQL tables. In order to do it, I connect to db using JDBC. It gives me error like below. Connection Failed! Check output…
Anna Lee
  • 909
  • 1
  • 17
  • 37
5
votes
1 answer

FTPClient SocketTimeoutException Read timed out

I have a given FTP Server. I can connect to the server per WinSCP and other programs. I had allready a connection via Java to the server but after a while I can not connect. Per WinSCP I can connect the whole time. Now there is the question if the…
Jonas Wolff
  • 203
  • 1
  • 4
  • 11
5
votes
1 answer

SocketTimeoutException: Read time out

It's a simple client/server based ping/pong program. Unfortunately, IT doesn't work and displays this error message: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at…
Eriassa
  • 53
  • 1
  • 1
  • 5
5
votes
1 answer

JMeter: How to find the reason of a java.net.SocketTimeoutException?

I am making load test for my web application, and I set the connect timeout and response timeout to be 20 seconds, and sometimes I am getting exceptions like: Non HTTP response code: java.net.SocketTimeoutException: Non HTTP response message: Read…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
5
votes
1 answer

Starting multiple services on threads

I am trying to open a proxy on a thread (in background), the thread makes a new instance of the proxy, calls a method of the service and immediately after disposes the service. All of this happens on a thread : var background = new Thread(() => { …
Murtaza Mandvi
  • 10,708
  • 23
  • 74
  • 109
4
votes
2 answers

phonegap: Timeout error calling webviewclient

I'm trying to debug my phonegap app. When I try to open my app on my emulator I get an error saying The connection to the server was unsuccessful. (file:///android_asset/www/index.html) I should mention that I'm using phonegap build, so I don't have…
Jakob
  • 4,784
  • 8
  • 53
  • 79
4
votes
2 answers

How to debug SocketTimeoutException?

We are getting a java.net.SocketTimeoutException on server B when client A connects to server B. No idea why. The client is sending data to the server and the server then throws this exception. How would one troubleshoot this issue? Note…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
4
votes
2 answers

Retrofit socket timeout exception while uploading larger files using multipart

I am facing the issue of socket timeout exception while using retrofit 2.0.2 library and okhttp 2.3.0. I am trying to upload the image file which is between 500kb to 1.5mb it is uploading successfully.but when i tried to upload video file which is…
Hari krishna
  • 1,142
  • 1
  • 12
  • 29
4
votes
0 answers

SocketTimeoutException Read timed out on RestTemplate, PoolingHttpClientConnectionManager

I am struggling with Read timed out exception. For API call, I am using RestTemplate and it works pretty well, but the read timed out exception occured 5~6 times a day. I've spend for a while to deal with it, but I have no idea what problem of my…
1
2
3
17 18