aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-06-12 10:37:15 +0300
committerLeif Åstrand <leif@vaadin.com>2012-06-12 10:37:15 +0300
commit234319468901f9b6542215401261099d6f4987ba (patch)
tree9912d4c705a235f093b7f25c0889c6135cadf178 /src/com/vaadin/terminal/gwt/server
parent0a291dc4a60d3385c50c1ac38e134270a501581e (diff)
downloadvaadin-framework-234319468901f9b6542215401261099d6f4987ba.tar.gz
vaadin-framework-234319468901f9b6542215401261099d6f4987ba.zip
Show better message when RPC method is not found
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server')
-rw-r--r--src/com/vaadin/terminal/gwt/server/ServerRpcMethodInvocation.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/ServerRpcMethodInvocation.java b/src/com/vaadin/terminal/gwt/server/ServerRpcMethodInvocation.java
index 6f278f7797..95565c4379 100644
--- a/src/com/vaadin/terminal/gwt/server/ServerRpcMethodInvocation.java
+++ b/src/com/vaadin/terminal/gwt/server/ServerRpcMethodInvocation.java
@@ -79,6 +79,12 @@ public class ServerRpcMethodInvocation extends MethodInvocation {
}
}
+ if (invocationMethod == null) {
+ throw new IllegalStateException("Can't find method " + methodName
+ + " with " + parameterCount + " parameters in "
+ + targetType.getName());
+ }
+
return invocationMethod;
}