JDK-7195249 : Some jtreg tests use hard coded ports
Type:Bug
Component:core-svc
Sub-Component:tools
Affected Version:7,8,9
Priority:P3
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2012-08-30
Updated:2024-04-02
Resolved:2014-02-28
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Review by Staffan Larsen: http://mail.openjdk.java.net/pipermail/serviceability-dev/2014-January/013863.html
Review by Jaroslav Bachorik: http://mail.openjdk.java.net/pipermail/serviceability-dev/2014-January/013881.html
There is one more test with the hardcoded port:
jdk/test/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java (https://bugs.openjdk.java.net/browse/JDK-7158959)
18-11-2013
Just to mention that sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh is currently on the exclude list (jdk/test/ProblemList.txt). It was just way too noisy in JPRT so we had to exclude it.
18-11-2013
Root сause:
hotspot/test/runtime/6294277/SourceDebugExtension.java
jdk/test/sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.java
jdk/test/sun/management/jmxremote/bootstrap/RmiBootstrapTest.java
jdk/test/sun/management/jmxremote/bootstrap/SSLConfigFilePermissionTest.sh
jdk/test/sun/management/jmxremote/bootstrap/PasswordFilePermissionTest.sh
jdk/test/sun/management/jmxremote/bootstrap/LocalManagementTest.java
fails intermittently because of use of fixed ports. These ports could be busy at some configurations.
12-11-2013
Suggested fix for sun/management/jmxremote/bootstrap/RmiBootstrapTest.java:
http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-November/013046.html
11-11-2013
Suggested fix sent to openjdk alias
http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-November/012957.html
07-11-2013
There is also a /lib/testlibrary/jdk/testlibrary/Utils.java.getFreePort() that may be more appropriate.
01-11-2013
There is already a method getUnusedRandomPort in the java/rmi/testlibrary/TestLibrary class to choose a random port. We can reuse this method to remove hard coded ports in java code.
01-11-2013
deferring this as this is an test issue and we do not have time for 8
dev+sqe
06-09-2013
Deferring this issue to 8 as there is no time in 7u40 to fix this test issue.
04-07-2013
SUGGESTED FIX
These test must using dynamic port selecting as possible.