diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-11-06 14:55:23 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2009-11-06 14:55:23 +0000 |
commit | 586c08190171358ea1ed82e4934d75835e866297 (patch) | |
tree | b160e28703876046e1f60d4d39be5c4c003be6c8 | |
parent | f50941e657d36fc0f562195491225c51a519a9b6 (diff) | |
download | vaadin-framework-586c08190171358ea1ed82e4934d75835e866297.tar.gz vaadin-framework-586c08190171358ea1ed82e4934d75835e866297.zip |
fixes #3473
svn changeset:9672/svn branch:6.2
-rwxr-xr-x | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index e9f2fba3d1..4adfc86342 100755 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -336,7 +336,6 @@ public class ApplicationConnection { } if (!forceSync) { - boolean success = false; final RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, uri); // TODO enable timeout @@ -359,11 +358,14 @@ public class ApplicationConnection { + String.valueOf((new Date()).getTime() - requestStartTime.getTime()) + "ms"); - switch (response.getStatusCode()) { + int statusCode = response.getStatusCode(); + switch (statusCode) { case 0: showCommunicationError("Invalid status code 0 (server down?)"); return; - // TODO could add more cases + case 404: + showCommunicationError("UIDL could not be read from server. Check servlets mappings."); + return; case 503: // We'll assume msec instead of the usual seconds int delay = Integer.parseInt(response |