Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem With Java Connection Refused

Posted on 2013-06-02
4
Medium Priority
?
572 Views
Last Modified: 2013-06-19
Hello Experts,

Each time I run an application I get the following error in the logs:

NetUtil.getLocalHostFromSwitch(x.x.x.x) error: java.net.ConnectException: Connection refused: connect

Can someone please show me how to resolve this issue?

Cheers

Carlton
0
Comment
Question by:cpatte7372
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39214721
A possible explanation for that is often the service to which one is trying to connect is simply not running
0
 
LVL 11

Expert Comment

by:SANDY_SK
ID: 39214722
Could be anything, check the following.

1. Are you able to ping to that server on that port? (Provided pin is enabled on that server)
2. Is there any firewall on the server?
3. Are there any filters on the server that allows traffic from specific hosts only?
4. Is it on a local LAN or on a different network?

More details on what exactly is the server (Simple socket / web service/ etc.) would help.
0
 
LVL 16

Accepted Solution

by:
Valeri earned 2000 total points
ID: 39215859
0
 

Author Closing Comment

by:cpatte7372
ID: 39260734
Cheers
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question