Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6297

unclosed InputStream on Bundle.start

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-6.0.3
    • framework-6.0.4
    • Framework
    • windows 10, java11

    Description

      This bug was first observed on Windows 10:  An exploded bundle with an activator is started then uninstalled.  A handle to the bundle's manifest is held by the JVM until shutdown so, in particular, the Manifest can't be modified or deleted.

      This is caused by an unclosed InputStream:

      When Java major version is greater than 8 and a Bundle with an activator is started,
      org.apache.felix.framework.util.MultiReleaseContent.wrap is called. It calls Content.getEntryAsAstream and the resulting InputStream is neither closed nor returned.

       

       

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            karlpauls Karl Pauls
            jpleasu Jason P. Leasure
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment