java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect ,how to avoid this

-1

 java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect

how to avoid this error while select a data source when create jaspersoft report in jaspersoft studio

AISU's picture
71
Joined: Mar 11 2014 - 9:37pm
Last seen: 5 years 5 months ago

2 Answers:

1

Treat this error message as if it was occurring within any java-based program or application.  Googling the error message returns a few nice article which explain that the port your socket is connecting to seems not to be listening.  Here are some descriptions and explanations:

http://javarevisited.blogspot.com/2013/02/java-net-ConnectException-Conn...

ghudson_1's picture
23599
Joined: Oct 30 2012 - 12:51pm
Last seen: 6 days 9 hours ago
0

The way to avoid this is to setup your jdbc connection properly.

Connection refused often means your username and password is incorrect.

 

hozawa's picture
50973
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago
Feedback
randomness