Re: Page locked for a long time

2020-07-23 Thread Maxim Solodovnik
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  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  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  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 
>
> wrote:
>
>
> Thanks a million :))
>
>
> On Mon, 6 Jul 2020 at 13:43, Martin Grigorov 
>
> wrote:
>
>
> On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org
>
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
>
>
>
> --
>
> Best regards,
>
> Maxim
>
>
>
>
>
> --
> Best regards,
> Maxim
>


-- 
Best regards,
Maxim


Re: Page locked for a long time

2020-07-23 Thread Bas Gooren
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  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  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 

wrote:


Thanks a million :))


On Mon, 6 Jul 2020 at 13:43, Martin Grigorov 

wrote:


On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org

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






--

Best regards,

Maxim





-- 
Best regards,
Maxim


Re: Page locked for a long time

2020-07-23 Thread Maxim Solodovnik
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  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 
> wrote:
>
> > Thanks a million :))
> >
> > On Mon, 6 Jul 2020 at 13:43, Martin Grigorov 
> wrote:
> >
> > > On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> > --
> > Best regards,
> > Maxim
> >
>


-- 
Best regards,
Maxim


Re: Page locked for a long time

2020-07-06 Thread Thomas Heigl
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 
wrote:

> Thanks a million :))
>
> On Mon, 6 Jul 2020 at 13:43, Martin Grigorov  wrote:
>
> > On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
>
>
> --
> Best regards,
> Maxim
>


Re: Page locked for a long time

2020-07-06 Thread Maxim Solodovnik
Thanks a million :))

On Mon, 6 Jul 2020 at 13:43, Martin Grigorov  wrote:

> On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


-- 
Best regards,
Maxim


Re: Page locked for a long time

2020-07-06 Thread Martin Grigorov
On Sun, Jul 5, 2020 at 9:16 PM Sven Meier  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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Page locked for a long time

2020-07-05 Thread Martin Terra
Maybe something along the lines of a stateless page 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 (s...@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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Page locked for a long time

2020-07-05 Thread Sven Meier

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Page locked for a long time

2020-07-05 Thread Maxim Solodovnik
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