Why is fileUpload so unstable?

UI Components for JSF
Post Reply
User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Oct 2016, 22:41

Is it me or the component?

I am using JSF 2.2 so I haven't configured any special jar files or settings and using advanced mode. This works sometimes but then it stops working for awhile until it suddenly starts working sometimes again, just by me stopping and starting Jetty...

The code I am using, looks like this:

Code: Select all

<h:form id="mainform" enctype="multipart/form-data" >

   <p:growl id="globalMessages" sticky="false" globalOnly="false"/>

   <p:fileUpload id="filopplaster" fileUploadListener="#{importController.fileUploadListener}" mode="advanced" dragDropSupport="true" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
                                  update="globalMessages" sizeLimit="100000" fileLimit="1" allowTypes="/(\.|\/)(xlsx)$/" uploadLabel="Last opp" cancelLabel="Avbryt" label="Velg" />

   <p:message for="filopplaster" />

</h:form>
What always happens when I press Upload, is that I see the progress bar for the upload but when it doesn't work, the fileUploadListener method is never called and I can find no errors anywhere...

What am I missing?


Regards,

BTJ
Last edited by bjorntj on 22 Oct 2016, 22:59, edited 1 time in total.
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

22 Oct 2016, 22:51

I added <p:log> to my page and I see I get the following debug message when I click Upload but not sure what it means or if it's related at all..:

Code: Select all

PrimeFaces already loaded, ignoring duplicate execution.
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

23 Oct 2016, 09:23

The source is open... See where it is logged and try to deduce why it logs this

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Oct 2016, 11:28

We are not aware of such an issue, a reproducible case would help.

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

23 Oct 2016, 19:43

And you do not recognize the log message either? It seems to come when the listener is not called...
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

23 Oct 2016, 20:53

I am wondering if this might be a Jetty problem... I changed the UPLOAD context param to native instead of auto and then it worked 9-10 times before it stopped again (which is more than the 1-2 times it used to work..).
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests