This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
is there a command line utility that would allow me to close a specific port a java program is using?
the reason is this, we have a product that for some reason at a specific time of day emits a large number of java.net.SocketException: socket closed, as it's tries to repeatedly to open a connection and fails, after a while the products it self fails to connect to anything.
although we don't know the reason why the socket is closing we would like the ability to re-produce sudden socket close to see what happens on your development environment , while my team leader created a small thread which wakes up every 30 seconds and closes the socket i feel it does not reflect correctly the problem as it's still within the jvm itself which may cause it to act differently, so i'm looking for something similar to tcpview only in command line (no tcpvcons does have such an option).