Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2142

input streams need to be explicitly closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9
    • 2.0.10, 2.1.0
    • Build Management
    • None
    • Sun app server 9; struts 2.0.9

    Description

      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)

      Attachments

        Activity

          People

            jholmes James Holmes
            danid D. Dinev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: