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
0
votes
1 answer

ServerSocket.accept() throwing SocketTimeoutException with null message

I am trying to get an instance of Socket from ServerSocket Object. But, it always prints SocketTimeoutException = null There is my code: try { // We listen for new connections Log.d("ShairPort", "Service >> In TRY "); try { …
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
0
votes
1 answer

failed to connect error while sending an audio file from android to servlet

I have created a small application which sends an audio file from android to servlet but i am getting a connection error. Following is my full code. Please review it. Client code import java.io.DataInputStream; import…
Nisha
  • 53
  • 4
0
votes
2 answers

Kinvey Android SDK - File Uploading - SocketTimeoutException: Read timed out

I'm trying to upload a file from my android device to the Kinvey File Storage, but I get: java.net.SocketTimeoutException: Read timed out. I do see the file uploaded on the Kinvey Console, but it's corrupted and the file size when I try to download…
janakagamini
  • 237
  • 3
  • 11
0
votes
0 answers

android socket timeout exception while connecting to device

I am developing android client that will connect to my pc. While i am testing it on emulator it work fine. However, while i try it on real device, i am getting socket timeout exception. Here is the relevant client code public static final String…
dan
  • 169
  • 1
  • 3
  • 11
0
votes
1 answer

IBM Worklight 6.0 - Error while building and deploying an application

I am getting below error while building an app in Worklight Studio: AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet. [ERROR ] Failed executing POST /applications/upload java.lang.RuntimeException:…
0
votes
1 answer

Android-Async-Http Library post error?

I am currently using android-async-http library to send a post/get requests. I didn't have any problem before but now i realize that it gives me timeout error if i send this request without image data. (There is no error if i send exact same request…
yahya
  • 4,810
  • 3
  • 41
  • 58
0
votes
1 answer

Tomcat crashes after SocketTimeoutException

I'm running tomcat 7.0.2 on a debian lenny VPS with apache mod_proxy_jk, this is my AJP config:
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
0
votes
1 answer

Jmeter - timeout exception

I ran a script for 100 concurrent users in NON - GUI mode java -jar ApacheJMeter.jar -n -t C:\XXX\JMeter\YYY\ZZZ.jmx -l C:\XXX\JMeter\ZZZ\testResult\log${__time(ddMMyy_HHmmss)}.jtl I saved the JTL file generate during the run After the run is…
0
votes
1 answer

SocketTimeoutException when parsing website (HW)

We are learning to use JSOUP and urlconnection so we are parsing pages from a website of our choosing and parsing the pages to answer interesting questions. Everything works well, however every now an then I get a SocketTimeOutException. I think…
William Falcon
  • 9,813
  • 14
  • 67
  • 110
0
votes
1 answer

Coldfusion hits java.net.SocketTimeoutException when calling down to long running Java methods

I'm trying to call a method on a static Java class which could take anywhere from 10 seconds to a minute to run. After about 30 seconds, I get the Exception java.net.SocketTimeoutException: Read timed out; Is the timeout preference too low? Are you…
Daniel Koverman
  • 2,545
  • 2
  • 21
  • 30
0
votes
1 answer

Client-Server Program, can connect from Java client but not from Android

I have a working Java client/server program which is very straightforward and basic. This works fine. However, I am now trying to write an Android client, and I have been unable to connect to the server from my android client. I am using almost…
lbrendanl
  • 2,626
  • 4
  • 33
  • 54
0
votes
1 answer

android timeout exception on wifi and GPRS

Bellow is my code for calling the service but it gives time out exception **DefaultHttpClient httpC = new DefaultHttpClient(); HttpProtocolParams.setUseExpectContinue(httpC.getParams(), false); …
0
votes
1 answer

HttpURLConnection readLine() hanging on Sprint 4G network

I have a routine that uses a HttpURLConnection to upload a file via a multipart/form-data content type. The server does some processing on the uploaded file and returns a short response code. This works fine in all cases so far except with one…
Andrew
  • 138
  • 5
  • 14
0
votes
2 answers

Is it possible to reuse a socket after a TimedOut exception?

Simply put, is it possible to reuse a socket after a TimedOut exception has been caught? How can I do it? Long story: I have 2 threads, both using the same socket. One is sending packets (let's call it thread A) to a remote server while the other…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
-1
votes
2 answers

How can I catch the SocketTimeoutException "raised" in setSoTimeout()?

I am doing socket programming in Java and I am confused by setSoTimeout() and its exceptions. I have a simple Callable on the server-side for accepting connections: private Callable waitForConnectionCallable = new Callable()…
Mahm00d
  • 3,881
  • 8
  • 44
  • 83
1 2 3
17
18