You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Maxim Solodovnik <so...@gmail.com> on 2020/07/05 15:20:15 UTC

Page locked for a long time

Hello All,

our app allows huge file uploads
I have noticed the page is locked while incoming input stream is being
copied
(might take more than an hour)

 at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
at
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)

Are there any options to prevent page lock?

-- 
Best regards,
Maxim

Re: Page locked for a long time

Posted by Maxim Solodovnik <so...@gmail.com>.
Thanks a lot Bas!
miss this call
everything start to work as expected :)
sorry for the noise

On Fri, 24 Jul 2020 at 12:05, Bas Gooren <ba...@iswd.nl> wrote:

> Hi Maxim,
>
> You need to call parseFileParts() on the request yourself before accessing
> files and post parameters, or there are no parts and post parameters.
>
> Am on mobile so cannot quickly find java doc for 8 or 9 but api is the
> same:
>
>
> https://ci.apache.org/projects/wicket/apidocs/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequest.html#parseFileParts()
>
> // Bas
>
> Verstuurd vanaf mijn iPhone
>
> Op 24 jul. 2020 om 05:49 heeft Maxim Solodovnik <so...@gmail.com> het
> volgende geschreven:
>
> Hello Martin, All,
>
> finally I have started to implement this functionality and faced weird
> issue: no post parameters are retrievable :((
> I was able to reproduce this using quickstart
> https://github.com/solomax/upload-resource
> Can you please take a look at it?
>
> On Mon, 6 Jul 2020 at 14:33, Thomas Heigl <th...@umschalt.com> wrote:
>
> We've been using Martin's solution with JQueryFileUpload for years and it
>
> works great.
>
>
> Best,
>
>
> Thomas
>
>
> On Mon, Jul 6, 2020 at 8:59 AM Maxim Solodovnik <so...@gmail.com>
>
> wrote:
>
>
> Thanks a million :))
>
>
> On Mon, 6 Jul 2020 at 13:43, Martin Grigorov <mg...@apache.org>
>
> wrote:
>
>
> On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:
>
>
> Hi Maxim,
>
>
> you'll have to upload these files to a resource separately.
>
>
> I'm not aware of a reusable solution for that.
>
>
>
> Here is a blog article on this topic:
>
> http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/
>
> and
>
> its demo app:
>
> https://github.com/martin-g/blogs/tree/master/file-upload
>
>
>
>
> Have fun
>
> Sven
>
>
>
> On 05.07.20 17:20, Maxim Solodovnik wrote:
>
> Hello All,
>
>
> our app allows huge file uploads
>
> I have noticed the page is locked while incoming input stream is
>
> being
>
> copied
>
> (might take more than an hour)
>
>
>  at java.base@11.0.7/java.io
>
> .InputStream.read(InputStream.java:205)
>
> at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
>
> at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
>
> at
>
>
>
>
>
>
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
>
> at
>
>
>
>
>
>
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
>
> at
>
>
> org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
>
>
> Are there any options to prevent page lock?
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
>
>
>
> --
>
> Best regards,
>
> Maxim
>
>
>
>
>
> --
> Best regards,
> Maxim
>


-- 
Best regards,
Maxim

Re: Page locked for a long time

Posted by Bas Gooren <ba...@iswd.nl>.
Hi Maxim,

You need to call parseFileParts() on the request yourself before accessing
files and post parameters, or there are no parts and post parameters.

Am on mobile so cannot quickly find java doc for 8 or 9 but api is the same:

https://ci.apache.org/projects/wicket/apidocs/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequest.html#parseFileParts()

// Bas

Verstuurd vanaf mijn iPhone

Op 24 jul. 2020 om 05:49 heeft Maxim Solodovnik <so...@gmail.com> het
volgende geschreven:

Hello Martin, All,

finally I have started to implement this functionality and faced weird
issue: no post parameters are retrievable :((
I was able to reproduce this using quickstart
https://github.com/solomax/upload-resource
Can you please take a look at it?

On Mon, 6 Jul 2020 at 14:33, Thomas Heigl <th...@umschalt.com> wrote:

We've been using Martin's solution with JQueryFileUpload for years and it

works great.


Best,


Thomas


On Mon, Jul 6, 2020 at 8:59 AM Maxim Solodovnik <so...@gmail.com>

wrote:


Thanks a million :))


On Mon, 6 Jul 2020 at 13:43, Martin Grigorov <mg...@apache.org>

wrote:


On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:


Hi Maxim,


you'll have to upload these files to a resource separately.


I'm not aware of a reusable solution for that.



Here is a blog article on this topic:

http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/

and

its demo app:

https://github.com/martin-g/blogs/tree/master/file-upload




Have fun

Sven



On 05.07.20 17:20, Maxim Solodovnik wrote:

Hello All,


our app allows huge file uploads

I have noticed the page is locked while incoming input stream is

being

copied

(might take more than an hour)


 at java.base@11.0.7/java.io

.InputStream.read(InputStream.java:205)

at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)

at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)

at





org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)

at





org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)

at


org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)


Are there any options to prevent page lock?



---------------------------------------------------------------------

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org

For additional commands, e-mail: users-help@wicket.apache.org






--

Best regards,

Maxim





-- 
Best regards,
Maxim

Re: Page locked for a long time

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Martin, All,

finally I have started to implement this functionality and faced weird
issue: no post parameters are retrievable :((
I was able to reproduce this using quickstart
https://github.com/solomax/upload-resource
Can you please take a look at it?

On Mon, 6 Jul 2020 at 14:33, Thomas Heigl <th...@umschalt.com> wrote:

> We've been using Martin's solution with JQueryFileUpload for years and it
> works great.
>
> Best,
>
> Thomas
>
> On Mon, Jul 6, 2020 at 8:59 AM Maxim Solodovnik <so...@gmail.com>
> wrote:
>
> > Thanks a million :))
> >
> > On Mon, 6 Jul 2020 at 13:43, Martin Grigorov <mg...@apache.org>
> wrote:
> >
> > > On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:
> > >
> > > > Hi Maxim,
> > > >
> > > > you'll have to upload these files to a resource separately.
> > > >
> > > > I'm not aware of a reusable solution for that.
> > > >
> > >
> > > Here is a blog article on this topic:
> > > http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/
> > and
> > > its demo app:
> https://github.com/martin-g/blogs/tree/master/file-upload
> > >
> > >
> > > >
> > > > Have fun
> > > > Sven
> > > >
> > > >
> > > > On 05.07.20 17:20, Maxim Solodovnik wrote:
> > > > > Hello All,
> > > > >
> > > > > our app allows huge file uploads
> > > > > I have noticed the page is locked while incoming input stream is
> > being
> > > > > copied
> > > > > (might take more than an hour)
> > > > >
> > > > >   at java.base@11.0.7/java.io
> .InputStream.read(InputStream.java:205)
> > > > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> > > > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> > > > > at
> > > > >
> > > >
> > >
> >
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> > > > > at
> > > > >
> > > >
> > >
> >
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> > > > > at
> > > >
> org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
> > > > >
> > > > > Are there any options to prevent page lock?
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> > --
> > Best regards,
> > Maxim
> >
>


-- 
Best regards,
Maxim

Re: Page locked for a long time

Posted by Thomas Heigl <th...@umschalt.com>.
We've been using Martin's solution with JQueryFileUpload for years and it
works great.

Best,

Thomas

On Mon, Jul 6, 2020 at 8:59 AM Maxim Solodovnik <so...@gmail.com>
wrote:

> Thanks a million :))
>
> On Mon, 6 Jul 2020 at 13:43, Martin Grigorov <mg...@apache.org> wrote:
>
> > On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:
> >
> > > Hi Maxim,
> > >
> > > you'll have to upload these files to a resource separately.
> > >
> > > I'm not aware of a reusable solution for that.
> > >
> >
> > Here is a blog article on this topic:
> > http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/
> and
> > its demo app: https://github.com/martin-g/blogs/tree/master/file-upload
> >
> >
> > >
> > > Have fun
> > > Sven
> > >
> > >
> > > On 05.07.20 17:20, Maxim Solodovnik wrote:
> > > > Hello All,
> > > >
> > > > our app allows huge file uploads
> > > > I have noticed the page is locked while incoming input stream is
> being
> > > > copied
> > > > (might take more than an hour)
> > > >
> > > >   at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
> > > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> > > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> > > > at
> > > >
> > >
> >
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> > > > at
> > > >
> > >
> >
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> > > > at
> > > org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
> > > >
> > > > Are there any options to prevent page lock?
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
>
> --
> Best regards,
> Maxim
>

Re: Page locked for a long time

Posted by Maxim Solodovnik <so...@gmail.com>.
Thanks a million :))

On Mon, 6 Jul 2020 at 13:43, Martin Grigorov <mg...@apache.org> wrote:

> On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:
>
> > Hi Maxim,
> >
> > you'll have to upload these files to a resource separately.
> >
> > I'm not aware of a reusable solution for that.
> >
>
> Here is a blog article on this topic:
> http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/ and
> its demo app: https://github.com/martin-g/blogs/tree/master/file-upload
>
>
> >
> > Have fun
> > Sven
> >
> >
> > On 05.07.20 17:20, Maxim Solodovnik wrote:
> > > Hello All,
> > >
> > > our app allows huge file uploads
> > > I have noticed the page is locked while incoming input stream is being
> > > copied
> > > (might take more than an hour)
> > >
> > >   at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
> > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> > > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> > > at
> > >
> >
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> > > at
> > >
> >
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> > > at
> > org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
> > >
> > > Are there any options to prevent page lock?
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>


-- 
Best regards,
Maxim

Re: Page locked for a long time

Posted by Martin Grigorov <mg...@apache.org>.
On Sun, Jul 5, 2020 at 9:16 PM Sven Meier <sv...@meiers.net> wrote:

> Hi Maxim,
>
> you'll have to upload these files to a resource separately.
>
> I'm not aware of a reusable solution for that.
>

Here is a blog article on this topic:
http://wicketinaction.com/2012/11/uploading-files-to-wicket-iresource/ and
its demo app: https://github.com/martin-g/blogs/tree/master/file-upload


>
> Have fun
> Sven
>
>
> On 05.07.20 17:20, Maxim Solodovnik wrote:
> > Hello All,
> >
> > our app allows huge file uploads
> > I have noticed the page is locked while incoming input stream is being
> > copied
> > (might take more than an hour)
> >
> >   at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
> > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> > at
> >
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> > at
> >
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> > at
> org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
> >
> > Are there any options to prevent page lock?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Page locked for a long time

Posted by Martin Terra <ma...@koodaripalvelut.com>.
Maybe something along the lines of a stateless page&upload form without a
session or something, so the user can continue with a session separately.

**
Martin

su 5. heinäk. 2020 klo 21.16 Sven Meier (sven@meiers.net) kirjoitti:

> Hi Maxim,
>
> you'll have to upload these files to a resource separately.
>
> I'm not aware of a reusable solution for that.
>
> Have fun
> Sven
>
>
> On 05.07.20 17:20, Maxim Solodovnik wrote:
> > Hello All,
> >
> > our app allows huge file uploads
> > I have noticed the page is locked while incoming input stream is being
> > copied
> > (might take more than an hour)
> >
> >   at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
> > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> > at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> > at
> >
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> > at
> >
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> > at
> org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
> >
> > Are there any options to prevent page lock?
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Page locked for a long time

Posted by Sven Meier <sv...@meiers.net>.
Hi Maxim,

you'll have to upload these files to a resource separately.

I'm not aware of a reusable solution for that.

Have fun
Sven


On 05.07.20 17:20, Maxim Solodovnik wrote:
> Hello All,
>
> our app allows huge file uploads
> I have noticed the page is locked while incoming input stream is being
> copied
> (might take more than an hour)
>
>   at java.base@11.0.7/java.io.InputStream.read(InputStream.java:205)
> at org.apache.commons.fileupload.util.Streams.copy(Streams.java:98)
> at org.apache.commons.fileupload.util.Streams.copy(Streams.java:68)
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:346)
> at
> org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:196)
> at org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1470)
>
> Are there any options to prevent page lock?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org