Hi, Please find the fix below for the bug
JDK-8204661 : Show error 'Port already in use' in HashedPasswordFileTest.java
having webrev at, http://cr.openjdk.java.net/~hb/8204661/webrev.00/ The problem root-cause is discussed in the comments section of the bug.The fix above lets the default agent pick a free port by passing 'port=0' value and then reads the JMX Connector URL from Perf Counters.
Please review the fix above and provide comments. Thanks Harsha