From 94af83e792a4db0cdbbcb75b567ed3ac2589afa4 Mon Sep 17 00:00:00 2001 From: Erwan Loisant Date: Tue, 19 Oct 2010 17:09:53 +0200 Subject: [PATCH] [#274] Don't fallback on async when the WS class is missing, throw a RuntimeException (or the issue will be harder to find) --- framework/src/play/libs/WS.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/src/play/libs/WS.java b/framework/src/play/libs/WS.java index 6e5c0f2596..3357f25879 100644 --- a/framework/src/play/libs/WS.java +++ b/framework/src/play/libs/WS.java @@ -76,8 +76,7 @@ static void init() { wsImpl = (WSImpl)Play.classloader.loadClass(implementation).newInstance(); Logger.trace("Using the class:" + implementation + " for web service"); } catch (Exception e) { - Logger.error("Cannot load class " + implementation + ", using async instead"); - wsImpl = new WSAsync(); + throw new RuntimeException("Unable to load the class: " + implementation + " for web service"); } } }