summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rwxr-xr-xsrc/com/vaadin/terminal/gwt/client/ApplicationConnection.java8
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