geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrik Dudits (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (XBEAN-190) XBeanNamespaceHandler does not close resource input streams
Date Mon, 10 Oct 2011 09:24:30 GMT

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

Patrik Dudits updated XBEAN-190:
--------------------------------

    Attachment: xbean-190.patch 

I also had bit of time to make a patch against trunk ;)
                
> 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
>            Priority: Trivial
>         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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message