camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Closed] (CAMEL-6262) org.apache.camel.support.ServiceSupport: InputStream not being explicitly closed
Date Wed, 17 Apr 2013 19:41:16 GMT

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

Christian Müller closed CAMEL-6262.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.12.0)
                       (was: 2.11.1)
                   2.11.0
                   2.9.7
    
> org.apache.camel.support.ServiceSupport: InputStream not being explicitly closed
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-6262
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6262
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.11.0
>            Reporter: Manfred Dohmen
>            Assignee: Willem Jiang
>            Priority: Trivial
>             Fix For: 2.9.7, 2.10.5, 2.11.0
>
>
> In method getVersion() of ServiceSupport there is an InputStream opened around line 284:
> InputStream is = getClass().getResourceAsStream("/META-INF/maven/org.apache.camel/camel-core/pom.properties");
> This stream is not closed explicitly.
> If you undeploy an application from a container like GlassFish you get a warning like
this:
> [#|2013-04-11T18:02:00.783+0200|WARNING|glassfish3.1.2|javax.enterprise.system.core.classloading.com.sun.enterprise.loader|_ThreadID=137;_ThreadName=Thread-2;|Input
stream has been finalized or forced closed w
> ithout being explicitly closed; stream instantiation reported in following stack trace
> java.lang.Throwable
>         at com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.<init>(ASURLClassLoader.java:1230)
>         at com.sun.enterprise.loader.ASURLClassLoader$InternalJarURLConnection.getInputStream(ASURLClassLoader.java:1338)
>         at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:233)
>         at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:872)
>         at java.lang.Class.getResourceAsStream(Class.java:2049)
>         at org.apache.camel.support.ServiceSupport.getVersion(ServiceSupport.java:284)
>         at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1439)
>         at org.apache.camel.cdi.CdiCamelContext.start(CdiCamelContext.java:61)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [...]
> These were similar issues: XBEAN-190, JCR-2962

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message