Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3704

If an IOException is encountered during establishment of the connection, Network Server should print the root exception to the console instead of a generic message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.5.1.1
    • 10.4.2.0, 10.5.1.1
    • Network Server
    • None
    • Patch Available

    Description

      In working on DERBY-3701, I noticed that when the FileNotFound exception caused the connection to fail it just printed out a generic exception, not the IOException that caused the error.

      That is because of this code in ClientThread.
      catch (IOException ioe) {
      // IOException causes this thread to stop. No
      // console error message if this was caused by a
      // shutdown
      synchronized (parent.getShutdownSync()) {
      if (!parent.getShutdown())

      { parent.consolePropertyMessage("DRDA_UnableToAccept.S"); }

      }

      In the event of an unexpected IOException the actual exception should print and the client socket should be closed if it has been established.

      Attachments

        1. derby-3704_diff.txt
          1 kB
          Katherine Marsden

        Activity

          People

            kmarsden Katherine Marsden
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: