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

Always detail java.net.BindExceptions with the address and port number

    XMLWordPrintable

Details

    • x86
    • linux

    Description



      Name: jl125535 Date: 04/20/2004


      A DESCRIPTION OF THE REQUEST :
      java.net.BindExceptions should include the address and port number.

      JUSTIFICATION :
      In a J2EE environment where many services and applications are running on the same machine it is not at all clear on which service/interface/address the bind actually failed on.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When an BindException is thrown it should detail the address and port on which the bind failed.
      ACTUAL -
      Mostly the BindException is detailed like this:

      java.net.BindException: Address already in use

      CUSTOMER SUBMITTED WORKAROUND :
      The only way of working around it is doublechecking all your code and deployment/configuration descriptors.
      (Incident Review ID: 250448)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              msheppar Mark Sheppard
              jleesunw Jon Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: