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


 java.sql.SQLTransientConnectionException: Connection refused: connect

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

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

2 Answers:


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:

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

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
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago