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

java.net.BindException is thrown on Windows XP when HTTP server is started and stopped in the loop.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 7u6, 8, 9
    • core-libs
    • Windows XP sp3, 1 CPU

    • 7u6
    • b42
    • x86
    • windows_xp
    • Verified

        Steps to reproduce:

        1. Run attached class on latest jdk7u build on Windows XP sp 3 single CPU machine.

        EXPECTED BEHAVIOUR:
        server will be created and stopped successfully 100 times.

        ACTUAL BEHAVIOUR:
        "java.net.BindException: Address already in use" exception is thrown after a few iterations.

        The problem doesn't exist on Windows 7, Linux and others platforms and seems to be Windows XP specific.

        The problem seems appeared starting from jdk7u6 since on jdk7u5 it the sample case works fine.

              msheppar Mark Sheppard
              dtitov Daniil Titov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: