MyFaces Core
  1. MyFaces Core
  2. MYFACES-3430

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-beta-3, 2.0.11, 2.1.0, 2.1.5
    • Fix Version/s: 2.0.12, 2.1.6
    • Component/s: General
    • Labels:
      None
    • Environment:
      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" ); }

        Issue Links

          Activity

          Seppo Sutinen created issue -
          Leonardo Uribe made changes -
          Field Original Value New Value
          Link This issue is cloned as MYFACES-3453 [ MYFACES-3453 ]
          Hide
          Leonardo Uribe added a comment -

          Thanks to Seppo Sutinen for provide this patch

          Show
          Leonardo Uribe added a comment - Thanks to Seppo Sutinen for provide this patch
          Leonardo Uribe made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Leonardo Uribe [ lu4242 ]
          Fix Version/s 2.0.12 [ 12319175 ]
          Fix Version/s 2.1.6 [ 12319173 ]
          Resolution Fixed [ 1 ]
          Leonardo Uribe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Leonardo Uribe
              Reporter:
              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

                  Development