why we get this exception and how can we resolve it.can anyone tell me please Normally, Java books like Head First Java won't teach you much about how to deal with such exceptions, it's simply too much to ask for a beginner's book.Īt .connect. In this Java tutorial, we will see why connection refused exception comes and how to solve : Connection refused: connect Exception in Java. While writing client socket code in Java, You should always provide proper handling of this exception. : Connection refused: connect also comes in the case of RMI (Remote Method Invocation) because RMI also uses TCP-IP protocol underneath. Though this is not as cryptic as : Java heap space or, it’s still a frequent problem in distributed Java applications. This error comes when you are working with client-server architecture and trying to make a TCP connection from the client to the server. : Connection refused: connect is one of the most common networking exceptions in Java.
0 Comments
Leave a Reply. |