Calling ping is not a good idea as it runs endlessly on some platforms, do a Java connection test instead

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637370 13f79535-47bb-0310-9956-ffa450edef68