]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #3473
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Nov 2009 14:55:23 +0000 (14:55 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 6 Nov 2009 14:55:23 +0000 (14:55 +0000)
svn changeset:9672/svn branch:6.2

src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index e9f2fba3d11bfc7aa8890c2fe1bc4ba3554b75f1..4adfc86342e26051e29647a15d57c0be49fec100 100755 (executable)
@@ -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