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

Exceptions trapped in DataHandler.getInputStream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • generic
    • solaris_2.6
    • Verified

      DataHandler.getInputStream, when the dh was constructed using an Object rather than a DataSource, spawns a thread and calls the ObjectDataContentHandler.writeTo. When no specific DataContentHandler for the Object has been provided, then it throws an UnSupportedDataTypeException.

      Problem is the exception has to be trapped in the thread. There, a stack trace is emitted to the console, which is kind of not very cool. The client of getInputStream just gets an empty stream, and no error indication.

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: