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

test/closed/com/sun/net/httpserver/bugs/B6536211.java uses hardcoded port

XMLWordPrintable

    • b100
    • generic
    • generic
    • Not verified

        --------------------------------------------------
        TEST: closed/com/sun/net/httpserver/bugs/B6536211.java
        JDK under test: (/tmp/jprt/T1/T/085726.ab23780/testproduct/solaris_x64_5.10-product)
        java version "1.7.0-internal"
        Java(TM) SE Runtime Environment (build 1.7.0-internal-jprtadm_2010_06_01_09_13-b00)
        Java HotSpot(TM) 64-Bit Server VM with MultiApp Extensions disabled (build 16.0-b13-201006010857.ab23780.jdk7-forest, mixed mode)

        ACTION: build -- Passed. Build successful
        REASON: Named class compiled on demand
        TIME: 0.937 seconds
        messages:
        command: build B6536211
        reason: Named class compiled on demand
        elapsed time (seconds): 0.937

        ACTION: compile -- Passed. Compilation successful
        REASON: .class file out of date or does not exist
        TIME: 0.928 seconds
        messages:
        command: compile /tmp/jprt/T1/T/085726.ab23780/source/jdk/test/closed/com/sun/net/httpserver/bugs/B6536211.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.928

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use
        REASON: User specified action: run main/othervm/timeout=20 B6536211
        TIME: 0.326 seconds
        messages:
        command: main B6536211
        reason: User specified action: run main/othervm/timeout=20 B6536211
        elapsed time (seconds): 0.326
        STDOUT:
        STDERR:
        java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:324)
        at sun.nio.ch.Net.bind(Net.java:316)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:196)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:88)
        at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
        at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
        at com.sun.net.httpserver.HttpServer.create(HttpServer.java:129)
        at B6536211.once(B6536211.java:34)
        at B6536211.main(B6536211.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:613)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:717)

        JavaTest Message: Test threw exception: java.net.BindException: Address already in use
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.net.BindException: Address already in use

        TEST RESULT: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use
        --------------------------------------------------

              chegar Chris Hegarty
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: