Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204661

Show error 'Port already in use' in HashedPasswordFileTest.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: core-svc
    • Labels:

      Backports

        Description

        Test: javax/management/security/HashedPasswordFileTest.java
        ----------System.err:(44/3573)----------
        [TestApp] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 22267; nested exception is:
        [TestApp] java.net.BindException: Address already in use (Bind failed)
        [TestApp] jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 22267; nested exception is:
        [TestApp] java.net.BindException: Address already in use (Bind failed)
        [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:491)
        [TestApp] at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:447)
        [TestApp] at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Agent.java:599)
        [TestApp] Caused by: java.rmi.server.ExportException: Port already in use: 22267; nested exception is:
        [TestApp] java.net.BindException: Address already in use (Bind failed)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
        [TestApp] at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
        [TestApp] at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:233)
        [TestApp] at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
        [TestApp] at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:180)
        [TestApp] at jdk.management.agent/sun.management.jmxremote.SingleEntryRegistry.<init>(SingleEntryRegistry.java:49)
        [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:836)
        [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:479)
        [TestApp] ... 2 more
        [TestApp] Caused by: java.net.BindException: Address already in use (Bind failed)
        [TestApp] at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
        [TestApp] at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:435)
        [TestApp] at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
        [TestApp] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
        [TestApp] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
        [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
        [TestApp] ... 11 more
        java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:832)

        JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hb Harsha Wardhana B (Inactive)
                  Reporter:
                  yzhou Daisy Zhou
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: