Uploaded image for project: 'MyFaces Commons'
  1. MyFaces Commons
  2. MFCOMMONS-46

CLONE - org.apache.myfaces.shared.resource. ResourceImpl: PushbackInputStream delegate is not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2.1
    • None
    • WebSphere v7.0.19 on Linux (Red Hat)

    Description

      ALL VERSIONS.

      PushbackInputStream delegate is not closed, so we get "too many open files" on Linux -platform.
      Our Total File Descriptors For System is 8000.

      PushbackInputStream delegate is used when reading stylesheet files (.css -files "text/css" -content type).
      Used in JSF2 <h:outputStylesheet/> -tag.

      ADD Stream closing...
      private class ValueExpressionFilterInputStream extends InputStream
      {
      ...
      /**

      • PushbackInputStream delegate MUST BE CLOSED or you will get "too many open files" on Linux-platform
        */
        @Override
        public void close( ) throws IOException { delegate.close(); //System.out.println( "EYECATCHER. " + getClass( ).getSimpleName( ) + ".close called" ); }

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              sutinse Seppo Sutinen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1m
                  1m
                  Remaining:
                  Remaining Estimate - 1m
                  1m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified