Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin - connection problem

Nazar Medeiros
5 years ago Oct 19, 2016 8:35am
Olli Tietäväinen
5 years ago Oct 27, 2016 8:49am

Hi,

what do you mean by "send a simple request" exactly? Can you describe what you're doing in more detail?

-Olli

Tobias Demuth
5 years ago Oct 27, 2016 5:04pm

This kind of error comes normally together with some stacktrace in Tomcat-log. Please post that as well.

Nazar Medeiros
5 years ago Nov 09, 2016 10:22am
Olli Tietäväinen
5 years ago Nov 09, 2016 10:31am
Nazar Medeiros
5 years ago Nov 09, 2016 10:33am
Olli Tietäväinen
5 years ago Nov 09, 2016 10:34am
Nazar Medeiros
5 years ago Nov 09, 2016 10:40am
Nazar Medeiros
5 years ago Nov 09, 2016 10:45am
Olli Tietäväinen
5 years ago Nov 09, 2016 10:49am

It depends on the changed state of your application. In the first one, the textual contents of the TextField have changed, so they have to be sent to the server. In the second one, the contents are the same, so they don't have to be passed to the server anymore.

-Olli

Nazar Medeiros
5 years ago Nov 09, 2016 10:55am
Olli Tietäväinen
5 years ago Nov 09, 2016 11:04am
Nazar Medeiros
5 years ago Nov 15, 2016 8:53am
Olli Tietäväinen
5 years ago Nov 15, 2016 8:57am

Maybe the Content-Length parameter is wrong when you change the length of the content string? Like this:

Content-length=5
payload="12345"
->ok

Content-length=5
payload="12346"
-> ok

Content-length=5
payload="123456"
-> not ok

-Olli

Nazar Medeiros
5 years ago Nov 15, 2016 9:58am
Olli Tietäväinen
5 years ago Nov 15, 2016 10:15am
Nazar Medeiros
5 years ago Nov 16, 2016 1:44pm
Olli Tietäväinen
5 years ago Nov 16, 2016 2:27pm
Nazar Medeiros
5 years ago Nov 16, 2016 2:32pm
Olli Tietäväinen
5 years ago Nov 16, 2016 2:56pm

I think ultimately the state change you're proposing just leads to that result. 

-Olli

Nazar Medeiros
5 years ago Nov 18, 2016 1:41pm