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.

To download the current JDK release, click here.
JDK 8 JDK 9
8u411Fixed 9 b04Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8036010 :  
Description
see comments

Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/88724be4324e User: lana Date: 2014-03-11 02:12:41 +0000
11-03-2014

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/88724be4324e User: sla Date: 2014-02-28 10:46:28 +0000
28-02-2014

Discussion: 2013-Dec: http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-December/013446.html 2014-Jan: http://mail.openjdk.java.net/pipermail/serviceability-dev/2014-January/013739.html 2014-Feb: http://mail.openjdk.java.net/pipermail/serviceability-dev/2014-February/014098.html
05-02-2014

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
27-01-2014

Review request: http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-November/013259.html
20-11-2013

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.
30-08-2012