Sorry, I quoted incorrect stack trace. That stack trace occured when I tried to call the AS400.disconnectService(7) method from a different thread (in hope to get some exception and to continue then). Unfortunately, it does not resolve problem also: the thread calling AS400.disconnectService(7) method just hangs also. The correct stack trace for initial call of AS400.isConnectionAlive(7) method is the following: java.net.SocketOutputStream.socketWrite0(Native Method) java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:122)...
Java thread sometimes is not returned from AS400.isConnectionAlive(7) method