felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4365) Input stream not properly closed on org.apache.felix.framework.Felix.getFrameworkVersion
Date Fri, 20 Dec 2013 16:02:10 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard S. Hall resolved FELIX-4365.
------------------------------------

       Resolution: Fixed
    Fix Version/s: framework-4.4.0
         Assignee: Richard S. Hall

I just committed a patch to close the input stream. Thanks for reporting this issue; please
close it if satisfied.

> Input stream not properly closed on org.apache.felix.framework.Felix.getFrameworkVersion
> ----------------------------------------------------------------------------------------
>
>                 Key: FELIX-4365
>                 URL: https://issues.apache.org/jira/browse/FELIX-4365
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Main Distribution
>         Environment: android dalvik (4.2.2)
>            Reporter: Thibaud Flury
>            Assignee: Richard S. Hall
>             Fix For: framework-4.4.0
>
>   Original Estimate: 2m
>  Remaining Estimate: 2m
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message