Questions tagged [socketexception]

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

SocketException is the superclass of all other socket related exceptions and may be thrown during socket creation or setting options.

616 questions
20
votes
7 answers

How to stop printing exception stack trace on Console?

I wrote a servlet to handle the exceptions occurring in my web app and mapped them in web.xml java.lang.Exception /exceptionHandler Here is what I…
Suresh Atta
  • 120,458
  • 37
  • 198
  • 307
20
votes
6 answers

Address family not supported by protocol family - SocketException on a specific computer

In an app which I have programmed, I have a java.net.SocketException on a specific computer: java.net.SocketException: Address family not supported by protocol family: connect This specific computer runs Windows 7 32 Bit and is connected to the…
Or B
  • 1,675
  • 5
  • 20
  • 41
20
votes
2 answers

JavaMail API to iMail -- java.net.SocketException: Permission denied: connect

I am having trouble getting an application to use the JavaMail API to send out some files in a more automated way than we are used to doing. I am very new to Java and NetBeans, but have programmed in other languages, so please forgive me if I seem…
John
  • 215
  • 1
  • 2
  • 6
19
votes
5 answers

java.net.SocketException: No buffer space available (maximum connections reached?): connect

Hi I am using Apache HTTP Client 4.0 to upload some files on a server based on HTTPS protocol. The uploaded application is running 24x7. Today suddenly it started to throw this exception- java.net.SocketException: No buffer space available (maximum…
user381878
  • 1,543
  • 5
  • 17
  • 30
18
votes
3 answers

SocketTimeout with opened connection in MongoDB

I've a Java application that performs some aggregations on MongoDB, but sometimes it just hangs and throw a SocketTimeout exception. After the Exception the app will run just fine (for a bit, then it will probably raise again the exception). I've…
Enrichman
  • 11,157
  • 11
  • 67
  • 101
17
votes
3 answers

java.net.SocketException: Connection reset by peer: socket write error When serving a file

I am trying to implement an HTTP Server using Sockets. If the Client (For example a browser) requests a directory the server displays a list of available files. The problem arises when the client is requesting a file. I get the following…
Charles-Eugene Loubao
  • 1,080
  • 2
  • 12
  • 22
16
votes
4 answers

SocketException: Failed host lookup: ‘...com’ (OS Error: nodename nor servname provided, or not known, errno = 8)

We are in a situation where the production app is facing the following socket exception and not able to perform any other network operation after this.  DioError [DioErrorType.DEFAULT]: SocketException: Failed host lookup: ‘xyz.abc.com’ (OS Error:…
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86
16
votes
3 answers

Too many open files ( ulimit already changed )

I'm working on a debian server with tomcat 7 and java 1.7. This is an application that recieves several TCP connections, each TCP connection is an open file by the java process. Looking at /proc/pid of java/fd I found that, sometimes, the number of…
slacker
  • 478
  • 1
  • 3
  • 10
15
votes
12 answers

I/flutter (30720): SocketException: OS Error: Connection timed out, errno = 110, address = 192.19.170.13, port = 47763

I'm using a real device (not an android emulator) backend: MongoDb Atlas, API: strapi-beta, getting this error: I/flutter (30720): SocketException: OS Error: Connection timed out, errno = 110, address = 192.19.170.13, port = 47763 (found a lot of…
Madhav Tripathi
  • 159
  • 1
  • 2
  • 7
15
votes
1 answer

Broadcasting over Wi-Fi Direct

I'm looking at the possibility to broadcast over a Wi-Fi Direct connection between multiple Android devices. I've created a simple message broadcasting application to test whether or not it works, but so far I haven't been able to broadcast a…
KatoStoelen
  • 188
  • 1
  • 1
  • 7
13
votes
1 answer

I m getting java.net.SocketException: Connection reset exception while running a load test using Jmeter

I m running a load test on login page of my application for 100 users out of 100 20 users are passing rest 80 users i m getting the below exception , Kindly help me with the fix java.net.SocketException: Connection reset at…
Shreesh Srivastava
  • 153
  • 1
  • 1
  • 7
12
votes
4 answers

Android : Socket - java.net.SocketException: sendto failed: EPIPE (Broken pipe)

I am trying to make connection with server using socket. The connection pipe is broken as shown below exceptions. 01-31 14:47:16.536: W/System.err(27255): java.net.SocketException: sendto failed: EPIPE (Broken pipe) 01-31 14:47:16.550:…
Rahul Baradia
  • 11,802
  • 17
  • 73
  • 121
11
votes
4 answers

Flutter - Insecure socket connections are disallowed by platform: 10.0.2.2

Since today whenever I try to login my application I get the following error thrown by the Dio package: SocketException: Insecure socket connections are disallowed by platform: 10.0.2.2 I use the following settings to connect: static BaseOptions…
user11939761
10
votes
3 answers

Flutter CachedNetworkImage errors: (CacheManager: Failed to download file) and (SocketException or HttpException)

I'm using the cached_network_image library. If I set it up like this: void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { print('MyApp building'); return MaterialApp( …
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
10
votes
2 answers

C# Async UDP listener SocketException

I have a pretty simple Asynchronous UDP listener, setup as a service, and it's been working quite well for awhile now, but it recently crashed on a SocketException An existing connection was forcibly closed by the remote host. I have three…
chezy525
  • 4,025
  • 6
  • 28
  • 41
1
2
3
41 42