Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14075

rich:fileUpload - java.io.IOException: Request prolog cannot be read

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 4.5.2
    • Fix Version/s: None
    • Component/s: component-input
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. Deploy the attached application.
      2. Navigate to http://localhost/booking-richfaces/spring/test
      3. Click Logo 1 and choose a file (jpg,jpeg,gif,png,bmp)
      4. Click Upload button
      5. Check the log for "java.io.IOException: Request prolog cannot be read"

      Show
      1. Deploy the attached application. 2. Navigate to http://localhost/booking-richfaces/spring/test 3. Click Logo 1 and choose a file (jpg,jpeg,gif,png,bmp) 4. Click Upload button 5. Check the log for "java.io.IOException: Request prolog cannot be read"

      Description

      rich:fileUpload throws java.io.IOException: Request prolog cannot be read

      The error only occurs with 4.5.2.Final-redhat-1. It runs fine with 4.3.7.Final-redhat-1.

      Looking at test.xhtml:

      • If you remove <a4j:region>, the error goes away.
      • If you keep <a4j:region> and remove the second rich:fileUpload component, the error also goes away.
      Caused by: java.io.IOException: Request prolog cannot be read
      	at org.richfaces.request.MultipartRequestParser.readProlog(MultipartRequestParser.java:297) [richfaces-rich-4.5.2.Final-redhat-1.jar:4.5.2.Final-redhat-1]
      	at org.richfaces.request.MultipartRequestParser.initialize(MultipartRequestParser.java:172) [richfaces-rich-4.5.2.Final-redhat-1.jar:4.5.2.Final-redhat-1]
      	at org.richfaces.request.MultipartRequestParser.parse(MultipartRequestParser.java:148) [richfaces-rich-4.5.2.Final-redhat-1.jar:4.5.2.Final-redhat-1]
      	... 112 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ivassile Ilia Vassilev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: