Paul Clapham wrote:Your main problem so far is that you have crippled your error-handling code in such a way that you have no idea what went wrong. All you know is that something bad happened.
And that's because you specifically programmed it that way. Here's a better way of doing it:
That code will print a stack trace when any IOException is thrown. The stack trace provides useful information about the problem. Try it.
Martin Vajsar wrote:I'd advice to check your firewall settings. I've found the firewall to be much less permissive when I migrated from Windows XP to Windows 7.
Kevin Simonson wrote:I'm not entirely sure how this helps me though. All it seems to do is say that the O/S timed out while trying to make the connection.
Steve
Kevin Simonson wrote:
Martin Vajsar wrote:I'd advice to check your firewall settings. I've found the firewall to be much less permissive when I migrated from Windows XP to Windows 7.
Do I need to check the firewall settings for my (Windows 7) laptop or the Linux machine? Or both? And is there a standard way to check firewall settings on a Windows 7 machine and on a Linux machine, or do I pretty much have to call my company's help desk and get them to help me figure out what the firewall settings are on these two machines?
Kevin Simonson
Kevin Simonson wrote:I tried again executing "java SmSe 13267 68" on my laptop and "java SmRc 13267 10.88.36.152" on the Linux machine. After a little bit I got the following output...
I/O exception!
readExc.getMessage() == "Connection timed out".
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)...
I'm not entirely sure how this helps me though. All it seems to do is say that the O/S timed out while trying to make the connection.
Wanna see my flashlight? How about this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|