Questions tagged [connectionexception]

48 questions
14
votes
3 answers

httpWebRequest (The underlying connection was closed: The connection was closed unexpectedly.)

I am developing an C# application which logs data from a webserver. It sends the following post request to the webserver and awaits for the response. /// /// Function for obtaining testCgi data /// ///
NMech
  • 580
  • 2
  • 8
  • 20
10
votes
5 answers

Sending mail error, javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

Here is my code import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import…
Ketan G
  • 507
  • 1
  • 5
  • 21
3
votes
0 answers

RabbitMQ: Channel shutdown: connection error

I've setup rabbitmq with spring boot. Everything seems to be working fine in my local environment. But when I deploy it to production I'm getting this error: 31-05-2019 08:26:56.430 [ajp-bio-8009-exec-2] INFO …
Drunken Daddy
  • 7,326
  • 14
  • 70
  • 104
3
votes
1 answer

Hikari connection is not available and unexpected multiple pool issue

In my companies project, we are using Hikari for connection pool management. [Hibernate 4.3.5 + Spring 4 + Java 1.8] Below is the…
Abhishek Patil
  • 1,373
  • 3
  • 30
  • 62
2
votes
2 answers

Unable to Create a Socket :java.net.ConnectException: Connection refused: connect

I am going to create a socket and get an InputStream. Here is how I try it. try { final String serverIP = "111.111.111.111"; final int serverPort = Integer.parseInt(server_port); final InetAddress…
Débora
  • 5,816
  • 28
  • 99
  • 171
2
votes
0 answers

What is requests.exceptions.ConnectionError in python requests?

What does the following error mean? socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443):…
2
votes
1 answer

android AVD connection refused on every other launch

Every other time I launch my app in an AVD I get this happy little error popping up: Error running app: Unable to open debugger port (localhost:8611): java.net.ConnectionException "Connection refused" (would have posted a screenshot, but my…
cytodev
  • 87
  • 1
  • 6
1
vote
1 answer

Sending message to a SQS queue fails from local in java

I'm not able to send message to sqs-queue from my java application. I am running roribio16/alpine-sqs docker image for SQS in my local and I've created a standard queue. Code snippets: @Data @Configuration @EnableSqs public class SQSConfig { …
1
vote
1 answer

Implement Retry Functionality for request api in Python without any library

I am trying to build a vaccine availability project. I make a request every 4 seconds to check doses for a vaccine, response = requests.get(https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=770&date=) At…
1
vote
0 answers

Alfresco server throwing Connection Refused Error along with lucene parser exception in Solr4 alfresco-5.2.0 d version

I am using alfresco-community-5.2.0 version and solr4. Getting the following error while hitting from my API. What can be the solution. Am not getting the exact solution. Can anyone give me a solution for this to try. Following is the error am…
Revathi
  • 11
  • 1
1
vote
1 answer

no route to host exception in android even when I use the right ip adress?

So I get the no route to host exception in android and I don't know why... Things i already did: disabled firewall granted internet permission in the manifest file i use the same ip which I get in ipconfig checked if I use the same network This is…
1
vote
4 answers

How to check if an Connection Error occurs using an if statement

So I have a button that sends a message to a server when i press it. However, I want to make sure that if there is a ConnectionException the button wont click and will return a Toast. button.setOnClickListener(new View.OnClickListener() { …
user10473409
1
vote
1 answer

Symfony 4.1 KernelTestCase Repository ConnectionException

I'm following the symfony docs (https://symfony.com/doc/current/testing/doctrine.html) trying to test my repository classes against my MySQL database. The relevant code part is this: class ProductRepositoryTest extends KernelTestCase { /** …
Kevin
  • 72
  • 8
1
vote
0 answers

Spring consuming-ws: Exception: java.net.ConnectException: Connection refused (Connection refused)

I run my spring ws application downloaded from official spring.io web site, and it gives me following error Please help me, cant understand what's problem? P.s: It is consuming web service, building on maven, and…
1
vote
1 answer

Connection Error while bulk insert in elasticsearch in python

I have written the code to import json to elasticsearch, but I have got Connection Error as 'Connection aborted.', error(104, 'Connection reset by peer' The code is from pyelasticsearch import ElasticSearch import sys, json ES_CLUSTER =…
1
2 3 4