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

Input stream not properly closed on org.apache.felix.framework.Felix.getFrameworkVersion

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: framework-4.4.0
    • Labels:
      None
    • Environment:
      android dalvik (4.2.2)

      Description

      Dalvik CloseGard detects that an ImputStrem is not properly closed on org.apache.felix.framework.Felix.getFrameworkVersion

      Stack Trace :
      W/System ( 3466): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
      W/System ( 3466): java.lang.Throwable: Explicit termination method 'end' not called
      W/System ( 3466): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
      W/System ( 3466): at java.util.zip.Inflater.<init>(Inflater.java:82)
      W/System ( 3466): at java.util.zip.ZipFile.getInputStream(ZipFile.java:270)
      W/System ( 3466): at java.util.jar.JarFile.getInputStream(JarFile.java:388)
      W/System ( 3466): at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:226)
      W/System ( 3466): at java.net.URL.openStream(URL.java:462)
      W/System ( 3466): at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:436)
      W/System ( 3466): at java.lang.Class.getResourceAsStream(Class.java:1114)
      W/System ( 3466): at org.apache.felix.framework.Felix.getFrameworkVersion(Felix.java:4484)
      W/System ( 3466): at org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:4459)
      W/System ( 3466): at org.apache.felix.framework.Felix.<init>(Felix.java:353)
      W/System ( 3466): at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
      W/System ( 3466): at org.apache.felix.main.Main.main(Main.java:287)
      W/System ( 3466): at dalvik.system.NativeStart.main(Native Method)
      W/System ( 3466): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
      W/System ( 3466): java.lang.Throwable: Explicit termination method 'end' not called
      W/System ( 3466): at dalvik.system.CloseGuard.open(CloseGuard.java:184)
      W/System ( 3466): at java.util.zip.Inflater.<init>(Inflater.java:82)
      W/System ( 3466): at java.util.zip.ZipFile.getInputStream(ZipFile.java:270)
      W/System ( 3466): at org.apache.felix.framework.util.WeakZipFileFactory$WeakZipFile.getInputStream(WeakZipFileFactory.java:264)
      W/System ( 3466): at org.apache.felix.framework.cache.JarContent.getEntryAsStream(JarContent.java:198)
      W/System ( 3466): at org.apache.felix.framework.BundleRevisionImpl.getInputStream(BundleRevisionImpl.java:603)
      W/System ( 3466): at org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:150)
      W/System ( 3466): at org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:161)
      W/System ( 3466): at org.apache.felix.framework.BundleImpl.getCurrentLocalizedHeader(BundleImpl.java:431)
      W/System ( 3466): at org.apache.felix.framework.Felix.getBundleHeaders(Felix.java:1575)
      W/System ( 3466): at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:335)
      W/System ( 3466): at org.apache.felix.framework.BundleImpl.getHeaders(BundleImpl.java:317)
      W/System ( 3466): at org.apache.felix.main.AutoProcessor.isFragment(AutoProcessor.java:395)
      W/System ( 3466): at org.apache.felix.main.AutoProcessor.processAutoDeploy(AutoProcessor.java:186)
      W/System ( 3466): at org.apache.felix.main.AutoProcessor.process(AutoProcessor.java:78)
      W/System ( 3466): at org.apache.felix.main.Main.main(Main.java:292)
      W/System ( 3466): at dalvik.system.NativeStart.main(Native Method)

        Attachments

          Activity

            People

            • Assignee:
              rickhall Richard S. Hall
              Reporter:
              snybril Thibaud Flury
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified