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

java/net/Authenticator/B4933582.sh fails intermittently with BindException

XMLWordPrintable

    • b148
    • Verified

        java/net/Authenticator/B4933582.sh

        fails intermittently with BindException:

        #section:shell
        ----------messages:(3/123)----------
        command: shell B4933582.sh
        reason: Assumed action based on file name: run shell B4933582.sh
        elapsed time (seconds): 3.084
        ----------System.out:(27/1612)----------
        Server: listening on port: 62753
        client opening connection to: http://localhost:62753/d1/foo.html
        SERVER: new connection. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64937]]
        get: s:http:localhost:62753 /d1/foo.html
        ---> null
        SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64937]]
        SERVER: orderlyCloseChannel chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64937]]
        get: s:BASIC:http:localhost:62753:wallyworld null
        ---> null
        SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected oshut local=/127.0.0.1:62753 remote=/127.0.0.1:64937]]
        Server: comsume
        SERVER: new connection. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64938]]
        SERVER: connection readable. chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64938]]
        SERVER: orderlyCloseChannel chan[java.nio.channels.SocketChannel[connected local=/127.0.0.1:62753 remote=/127.0.0.1:64938]]
        remove: s:BASIC:http:localhost:62753:wallyworld www.protocol.http.BasicAuthentication@2b9627bc'>sun.net.www.protocol.http.BasicAuthentication@2b9627bc
        wrote port 62753
        remove: s:http:localhost:62753 www.protocol.http.BasicAuthentication@2b9627bc'>sun.net.www.protocol.http.BasicAuthentication@2b9627bc
        wrote port 62753
        put: s:BASIC:http:localhost:62753:wallyworld www.protocol.http.BasicAuthentication@627551fb'>sun.net.www.protocol.http.BasicAuthentication@627551fb
        wrote port 62753
        put: s:http:localhost:62753 www.protocol.http.BasicAuthentication@627551fb'>sun.net.www.protocol.http.BasicAuthentication@627551fb
        wrote port 62753
        reading
        Hello .
        finished reading
        read port from file -1
        setMap from cache.ser
        ----------System.err:(69/5949)----------
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:28: warning: MessageHeader is internal proprietary API and may be removed in a future release
        import sun.net.www.MessageHeader;
                          ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/TestHttpServer.java:28: warning: MessageHeader is internal proprietary API and may be removed in a future release
        import sun.net.www.MessageHeader;
                          ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:137: warning: AuthCacheValue is internal proprietary API and may be removed in a future release
                    AuthCacheValue.setAuthCache (cache);
                    ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:180: warning: AuthCacheImpl is internal proprietary API and may be removed in a future release
            static class CacheImpl extends AuthCacheImpl {
                                           ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:232: warning: AuthCacheValue is internal proprietary API and may be removed in a future release
                public void put (String pkey, AuthCacheValue value) {
                                              ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:238: warning: AuthCacheValue is internal proprietary API and may be removed in a future release
                public AuthCacheValue get (String pkey, String skey) {
                       ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:240: warning: AuthCacheValue is internal proprietary API and may be removed in a future release
                    AuthCacheValue i = super.get (pkey, skey);
                    ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/B4933582.java:245: warning: AuthCacheValue is internal proprietary API and may be removed in a future release
                public void remove (String pkey, AuthCacheValue value) {
                                                 ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
            MessageHeader reqheaders, reqtrailers;
            ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:41: warning: MessageHeader is internal proprietary API and may be removed in a future release
            MessageHeader reqheaders, reqtrailers;
            ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
            MessageHeader rspheaders, rsptrailers;
            ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:44: warning: MessageHeader is internal proprietary API and may be removed in a future release
            MessageHeader rspheaders, rsptrailers;
            ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:50: warning: MessageHeader is internal proprietary API and may be removed in a future release
                                URI requesturi, MessageHeader headers,
                                                ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:51: warning: MessageHeader is internal proprietary API and may be removed in a future release
                                String body, MessageHeader trailers, SelectionKey key) {
                                             ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:129: warning: MessageHeader is internal proprietary API and may be removed in a future release
                    rspheaders = new MessageHeader ();
                                     ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:141: warning: MessageHeader is internal proprietary API and may be removed in a future release
                    rspheaders = new MessageHeader ();
                                     ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/HttpTransaction.java:153: warning: MessageHeader is internal proprietary API and may be removed in a future release
                    rsptrailers = new MessageHeader ();
                                      ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/TestHttpServer.java:255: warning: MessageHeader is internal proprietary API and may be removed in a future release
                        MessageHeader mhead = new MessageHeader (is);
                        ^
        /scratch/jenkins/workspace/9-dev/jdk/test/java/net/Authenticator/../../../sun/net/www/httptest/TestHttpServer.java:255: warning: MessageHeader is internal proprietary API and may be removed in a future release
                        MessageHeader mhead = new MessageHeader (is);
                                                  ^
        Note: Some input files use unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        19 warnings
        Exception in thread "main" java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(java.base@9-ea/Native Method)
        at sun.nio.ch.Net.bind(java.base@9-ea/Net.java:433)
        at sun.nio.ch.Net.bind(java.base@9-ea/Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(java.base@9-ea/ServerSocketChannelImpl.java:225)
        at sun.nio.ch.ServerSocketAdaptor.bind(java.base@9-ea/ServerSocketAdaptor.java:74)
        at sun.nio.ch.ServerSocketAdaptor.bind(java.base@9-ea/ServerSocketAdaptor.java:67)
        at TestHttpServer.<init>(TestHttpServer.java:108)
        at B4933582.main(B4933582.java:135)

              xiaofeya Xiaofeng Yang
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: