geronimo-xbean-dev mailing list archives

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


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