1 2 Previous Next 17 Replies Latest reply on Dec 17, 2013 12:35 AM by Alexander Shalin

    Exception with <rich:fileUpload /> - Request prolog cannot be read

    Akhbar Falafel Newbie

      I am attempting to use <rich:fileUpload /> to upload files to my Seam 2.3beta2-based application.  I am using RichFaces 4.2.1 on JBoss AS 7.1.  I've got the following code in my .xhtml file:

       

      <rich:fileUpload fileUploadListener="#{newProductAction.fileUploadListener}" maxFilesQuantity="10" noDuplicate="true" />

       

      However, when I attempt to upload a file, I get the following exception:

       

      12:09:53,562 SEVERE [org.richfaces.log.Application] (http-localhost-127.0.0.1-8080-7) Exception parsing multipart request: Request prolog cannot be read: org.richfaces.exception.FileUploadException: Exception parsing multipart request: Request prolog cannot be read

       

      I have set my form enctype value correctly, so I know that's not it.  Also, the fileUploadListener is never reached, so it is failing before that happens.  Any idea what could be going on here?  I'd appreciate any help you can give!

        1 2 Previous Next