geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (XBEAN-190) XBeanNamespaceHandler does not close resource input streams
Date Tue, 02 Oct 2012 19:13:08 GMT

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

Guillaume Nodet closed XBEAN-190.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.12
         Assignee: Guillaume Nodet

Sending        src/main/java/org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.java
Transmitting file data .
Committed revision 1393112.

                
> XBeanNamespaceHandler does not close resource input streams
> -----------------------------------------------------------
>
>                 Key: XBEAN-190
>                 URL: https://issues.apache.org/jira/browse/XBEAN-190
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.7
>            Reporter: Patrik Dudits
>            Assignee: Guillaume Nodet
>            Priority: Trivial
>             Fix For: 3.12
>
>         Attachments: xbean-190.patch 
>
>
> I've got ActiveMQ RAR deployed onto Glassfish. Upon stopping of the connector, following
warning is raised:
> {code}
> WARNING: Input stream has been finalized or forced closed without being explicitly closed;
stream instantiation reported in following stack trace
> java.lang.Throwable
> 	at com.sun.enterprise.loader.ASURLClassLoader$SentinelInputStream.&lt;init&gt;(ASURLClassLoader.java:1230)
> 	at com.sun.enterprise.loader.ASURLClassLoader$InternalJarURLConnection.getInputStream(ASURLClassLoader.java:1338)
> 	at java.net.URL.openStream(URL.java:1010)
> 	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1195)
> 	at com.sun.enterprise.loader.ASURLClassLoader.getResourceAsStream(ASURLClassLoader.java:872)
> 	at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.loadResource(XBeanNamespaceHandler.java:835)
> 	at org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.findNamespaceProperties(XBeanNamespaceHandler.java:801)
> 	... (shortened) ...
> {code}
> The cause appears to be {{XBeanNamespaceHandler.findNamespaceProperties}} - the InputStream
obtained on line 801 (in 3.7 sources), is used at line 812, but surrounding try lacks finally
clause.

--
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