You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "D. Dinev (JIRA)" <ji...@apache.org> on 2007/08/28 16:23:34 UTC

[jira] Created: (WW-2142) an input stream needs explicit close

an input stream needs explicit close
------------------------------------

                 Key: WW-2142
                 URL: https://issues.apache.org/struts/browse/WW-2142
             Project: Struts 2
          Issue Type: Bug
          Components: Component Management
    Affects Versions: 2.0.9
         Environment: Sun app server 9; struts 2.0.9
            Reporter: D. Dinev


at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps()
needs explicitly closure of the input stream

I get this exception: 
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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1123)
        at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1216)
        at java.net.URL.openStream(URL.java:1009)
        at com.opensymphony.xwork2.util.ClassLoaderUtil.getResourceAsStream(ClassLoaderUtil.java:116)
        at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(BaseTemplateEngine.java:70)
        at org.apache.struts2.components.template.Template.getPossibleTemplates(Template.java:67)
        at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:85)
        at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
        at org.apache.struts2.components.UIBean.end(UIBean.java:484)




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2142) an input stream needs explicit close

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2142:
-----------------------------

    Fix Version/s: 2.0.10
         Assignee: James Holmes

> an input stream needs explicit close
> ------------------------------------
>
>                 Key: WW-2142
>                 URL: https://issues.apache.org/struts/browse/WW-2142
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Component Management
>    Affects Versions: 2.0.9
>         Environment: Sun app server 9; struts 2.0.9
>            Reporter: D. Dinev
>            Assignee: James Holmes
>             Fix For: 2.0.10
>
>
> at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps()
> needs explicitly closure of the input stream
> I get this exception: 
> 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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1123)
>         at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1216)
>         at java.net.URL.openStream(URL.java:1009)
>         at com.opensymphony.xwork2.util.ClassLoaderUtil.getResourceAsStream(ClassLoaderUtil.java:116)
>         at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(BaseTemplateEngine.java:70)
>         at org.apache.struts2.components.template.Template.getPossibleTemplates(Template.java:67)
>         at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:85)
>         at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
>         at org.apache.struts2.components.UIBean.end(UIBean.java:484)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2142) input streams need to be explicitly closed

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2142:
-----------------------------

    Summary: input streams need to be explicitly closed  (was: an input stream needs explicit close)

> input streams need to be explicitly closed
> ------------------------------------------
>
>                 Key: WW-2142
>                 URL: https://issues.apache.org/struts/browse/WW-2142
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Component Management
>    Affects Versions: 2.0.9
>         Environment: Sun app server 9; struts 2.0.9
>            Reporter: D. Dinev
>            Assignee: James Holmes
>             Fix For: 2.0.10
>
>
> at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps()
> needs explicitly closure of the input stream
> I get this exception: 
> 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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1123)
>         at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1216)
>         at java.net.URL.openStream(URL.java:1009)
>         at com.opensymphony.xwork2.util.ClassLoaderUtil.getResourceAsStream(ClassLoaderUtil.java:116)
>         at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(BaseTemplateEngine.java:70)
>         at org.apache.struts2.components.template.Template.getPossibleTemplates(Template.java:67)
>         at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:85)
>         at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
>         at org.apache.struts2.components.UIBean.end(UIBean.java:484)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2142) input streams need to be explicitly closed

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes resolved WW-2142.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0

Fixed on the Struts_2_0_X branch in SVN revision 570513.

Fixed on the trunk (Struts 2.1) in SVN revision 570518.

Thanks for the heads up on this issue! Keep 'em coming.

> input streams need to be explicitly closed
> ------------------------------------------
>
>                 Key: WW-2142
>                 URL: https://issues.apache.org/struts/browse/WW-2142
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Component Management
>    Affects Versions: 2.0.9
>         Environment: Sun app server 9; struts 2.0.9
>            Reporter: D. Dinev
>            Assignee: James Holmes
>             Fix For: 2.0.10, 2.1.0
>
>
> at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps()
> needs explicitly closure of the input stream
> I get this exception: 
> 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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1123)
>         at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1216)
>         at java.net.URL.openStream(URL.java:1009)
>         at com.opensymphony.xwork2.util.ClassLoaderUtil.getResourceAsStream(ClassLoaderUtil.java:116)
>         at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(BaseTemplateEngine.java:70)
>         at org.apache.struts2.components.template.Template.getPossibleTemplates(Template.java:67)
>         at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:85)
>         at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
>         at org.apache.struts2.components.UIBean.end(UIBean.java:484)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2142) an input stream needs explicit close

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42047 ] 

James Holmes commented on WW-2142:
----------------------------------

This is actually an issue in more than one place throughout the Struts 2 codebase. I will fix the other areas as well.

> an input stream needs explicit close
> ------------------------------------
>
>                 Key: WW-2142
>                 URL: https://issues.apache.org/struts/browse/WW-2142
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Component Management
>    Affects Versions: 2.0.9
>         Environment: Sun app server 9; struts 2.0.9
>            Reporter: D. Dinev
>            Assignee: James Holmes
>             Fix For: 2.0.10
>
>
> at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps()
> needs explicitly closure of the input stream
> I get this exception: 
> 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.EJBClassLoader$SentinelInputStream.<init>(EJBClassLoader.java:1123)
>         at com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream(EJBClassLoader.java:1216)
>         at java.net.URL.openStream(URL.java:1009)
>         at com.opensymphony.xwork2.util.ClassLoaderUtil.getResourceAsStream(ClassLoaderUtil.java:116)
>         at org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(BaseTemplateEngine.java:70)
>         at org.apache.struts2.components.template.Template.getPossibleTemplates(Template.java:67)
>         at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:85)
>         at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
>         at org.apache.struts2.components.UIBean.end(UIBean.java:484)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.