Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-157

InputStream not closed properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.0.GA, 3.0.0.GA
    • 2.1.3.SP1
    • None
    • None

      A hot-deployed *-service.xml file on EAP 5 is locked on Windows.

      Root cause for this issue is that the InputStream is not closed properly, as Alexey discovered:

      "Apparently, when InputSource is passed in, the parser calls getSystemId(), getByteStream() and getCharacterStream() on it regardless whether any of the methods invoked previously returns non-null value. Then it uses one of the streams returned and closes just the it has used.

      In our impl getCharacterStream() returns wrapped result from getByteStream(). And getByteStream() opens a new stream on each invocation."

            ajustin@redhat.com Ales Justin
            rhn-support-mputz Martin Weiler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: