File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes What's java.net.SocketException: connect (code=10061) 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 » Java » Sockets and Internet Protocols
Reply Bookmark "What Watch "What New topic
Author

What's java.net.SocketException: connect (code=10061)

Matt Senecal
Ranch Hand

Joined: Dec 01, 2000
Posts: 255
Does anyone know what causes this?


There's nothing more dangerous than a resourceful idiot. ---Dilbert
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
I don't believe I've seen that before, could you post some code?

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
10061 is the Winsock code:
WSAECONNREFUSED 10061 Connection refused.
Your connection was refused - you'll have to dig in deeper
to find the reason.
Matt Senecal
Ranch Hand

Joined: Dec 01, 2000
Posts: 255
The exception is being thrown during a java.rmi.Naming.lookup() call, and indicates that the application can't connect to the machine it's running on. I'll let you know what turns up.
Lars Tode
Ranch Hand

Joined: Feb 07, 2002
Posts: 45
hi
i've got the same problem.
i think u get this code from a client, do u?
if u do, do u use ur own server 2 contact?
any ideas already?
cu
bb
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
read our naming policy and re-register & ask- post your Q again.
www.javaranch.com/name.jsp
[ February 07, 2002: Message edited by: ersin eser ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What's java.net.SocketException: connect (code=10061)