You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Patrik Dudits (Created) (JIRA)" <ji...@apache.org> on 2011/10/10 11:14:29 UTC

[jira] [Created] (XBEAN-190) XBeanNamespaceHandler does not close resource input streams

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

        

[jira] [Closed] (XBEAN-190) XBeanNamespaceHandler does not close resource input streams

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Updated] (XBEAN-190) XBeanNamespaceHandler does not close resource input streams

Posted by "Patrik Dudits (Updated) (JIRA)" <ji...@apache.org>.
     [ 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