Questions tagged [connectionexception]
48 questions
0
votes
2 answers
Docker php mysql could not find driver
I a trying to configure a PHP + MySQL setup in docker containers but I get the following error:
Fatal error: Uncaught PDOException: could not find driver in /var/www/html/chapter5/connection.php:29 Stack trace: #0 {main} thrown in…

sisko
- 9,604
- 20
- 67
- 139
0
votes
1 answer
How to handle database connection exception globally in springboot application?
I have a springboot + postgres application.
I want to handle database failure exception globally and need to store request in file system.
Is there any way in springboot application to catch ConnectionException globally?

Bhavesh Shah
- 127
- 2
- 14
0
votes
0 answers
Java Rest API | Linux | HTTPS 443 Connection refused | Code working Fine from Local but not on server | Ping Returns fine
Following URL working fine from postman as well as following code working fine from my Eclipse:
String fullUrl = "https://edge.chabdee.com/api/WebMethod?webMethodName=MDMChangeCustomerAccount";
URL url = new URL(fullUrl);
…

fatherazrael
- 5,511
- 16
- 71
- 155
0
votes
0 answers
How to solve javaBridge error php.java.fastcgi.ConnectionException?
I am using tomcat8.5, apache2, php7.25 on ubuntu 18.04
I installed php on my computer and did other configurations and installed required libraries. In the first day it worked fine and I could run a php script properly on localhost.
But next day…

Kavindu Ravishka
- 711
- 4
- 11
0
votes
1 answer
Where is the missing HTTP request when the CountDownLatch is getting zero count?
I am testing a multithread code that sends a set of http requests using a CloseableHttpAsyncClient client (see a snip of the code bellow).
I am obtaining the following output:
Failed ->java.io.IOException: Connection reset by peer-null
Failed…

Roxana
- 392
- 1
- 3
- 12
0
votes
1 answer
java.net.ConnectException only on Windows
I am trying to do a little java application which downloads some pictures and then computes them to one. (So a puzzle solver) It works perfectly fine on Linux, but however I am getting this stacktrace (plus a few lines). And I have no Idea why this…

school_guy
- 300
- 2
- 14
0
votes
0 answers
ConnectionError Handling in Async HTTP requests with Python
Provided main goal is to make the script run(without blocking/ interrupting other tasks when a ConnectionError is raised) anyway even if there is a temporary absence of the Internet connection.
While I was implementing error handling in my script…

Floky
- 1
- 1
0
votes
0 answers
UnknownHostException : how to resolve UnknownHostException via java application
I am trying to connect to a URL and read/download the content from the URL using java code.
I am facing the below exception.
Exception in thread "main" java.net.UnknownHostException: myURL
code:
import java.io.BufferedReader;
import…

user8115347
- 55
- 10
0
votes
1 answer
ConnectionException in Camel when trying to conenction to local SMTP server
I have a local SMTP server, implemented in the Python core scripts, which simply prints the body of the email received :
python -m smtpd -n -c DebuggingServer localhost:3333. (on Windows)
When I telnet localhost 3333, the connection succeeds and I…

Gordak
- 2,060
- 22
- 32
0
votes
1 answer
(Hadoop) mkdir: Call From NameNode/192.168.21.129 to NameNode:10001 failed on connection
When I try:
hadoop fs -mkdir hdfs://HName:10001/data/testFolder
I get:
mkdir: Call From HName/192.168.21.129 to HName:10001 failed on connection except
ion: java.net.ConnectException: Connection refused; For more details see: …

abutmah
- 63
- 1
- 3
- 9
0
votes
0 answers
java.net.ConnectException on WIFI
I write an app for android OS which uses internet connection.
I installed app on my phone with enabled WiFi and MOBILE connection.
There is a problem: when I come to WiFi network range after MOBILE, my phone correctly enables WiFi and disables…

dima
- 31
- 1
- 4
0
votes
1 answer
Calling openStream() throws java.net.ConnectException exception: Connection timed out: connect
public String pdfReadData() throws Exception
{
String pdfText = null;
try
{
driver.get("https://www.....pdf");
driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);
URL url= new URL(driver.getCurrentUrl());
…

Sera
- 21
- 1
- 6
0
votes
0 answers
ConnectionException when running a Oozie workflow
When trying to run a Oozie workflow with a Java action, I get the following error.
JA006: Call From sandbox.hortonworks.com/10.0.2.15 to sandbox.hortonworks.com:10020 failed
on connection exception: java.net.ConnectException: Connection refused;…

Lizzy
- 2,033
- 3
- 20
- 33
0
votes
1 answer
symfony2 can't catch PDOException
I want to catch PDOException in symfony 2.6, especially ConnectionException.
For instance if I stop my MySQL server I want to catch that exception and return a customised message to the user, but it seem that it's uncatchable in customised…
0
votes
1 answer
In hadoop eclipse plugin, I got failed on connection exception:java.net.ConnectExeption: Connection refused
I installed hadoop-1.2.1 and eclipse kepler, latest version, and jdk-1.7.0.
And I just followed the steps described in http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html#PseudoDistributed
and I set the configurations as…

Cho Sinhee
- 59
- 1
- 10