8328273: sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java failed with java.rmi.server.ExportException: Port already in use

Reviewed-by: dcubed
This commit is contained in:
Jaikiran Pai 2024-04-02 01:14:35 +00:00
parent 70c8ff1c9a
commit a85c8493ae
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -171,7 +171,7 @@ public class DefaultAgentFilterTest {
AtomicBoolean error = new AtomicBoolean(false);
AtomicBoolean bindError = new AtomicBoolean(false);
// The predicate below tries to recognise failures. On a port clash, it sees e.g.
// Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 46481; nested exception is:
// Error: Exception thrown by the agent: java.rmi.server.ExportException: Port already in use: 46481; nested exception is:
// ...and will never see "main enter" from TestApp.
p = ProcessTools.startProcess(
TEST_APP_NAME + "{" + name + "}",

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -195,7 +195,7 @@ public class RmiRegistrySslTest {
System.out.println("test output:");
System.out.println(output.getOutput());
if (!output.getOutput().contains("Exception thrown by the agent : " +
if (!output.getOutput().contains("Exception thrown by the agent: " +
"java.rmi.server.ExportException: Port already in use")) {
return output.getExitValue();
}