aspose file tools
The moose likes JDBC and the fly likes connection refused error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

connection refused error

suresh pulapally
Ranch Hand

Joined: Mar 15, 2005
Posts: 47
Help:Connection refused error=12505

--------------------------------------------------------------------------------

SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=1 2505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

This is the error message when I connect to DB using Java program.
SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=1 2505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

here is segment of my Java code:

DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection"jdbc racle:thin:@xxx.xx.xx.xxx:
1521:sid", "username", "password");

Anyone can help me to fix it? Any more information needed, please email me. I will reply you within one day.
Thanks a lot!

[Bear edit: "urgent" is not an acceptable topic subject]
[ March 21, 2005: Message edited by: Bear Bibeault ]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1348
Verify your url, especially the server and sid/db name.

Google returns a lot of hits for: connection refused 12505
[ March 21, 2005: Message edited by: Carol Enderlin ]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1348
This is a duplicate of connection refused post
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Thanks Carol.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: connection refused error
 
Similar Threads
who can help me about jdbc to solaris oracle9i?
Unable to Make Connection
database connection
Oracle Connectivity error
connection refused