1.1 --- a/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java Thu Jun 13 16:48:17 2013 +0200
1.2 +++ b/launcher/fx/src/main/java/org/apidesign/bck2brwsr/launcher/fximpl/JVMBridge.java Mon Jun 17 17:40:30 2013 +0200
1.3 @@ -40,7 +40,7 @@
1.4
1.5 JVMBridge(WebEngine eng) {
1.6 this.engine = eng;
1.7 - this.cl = new WebClassLoader(JVMBridge.class.getClassLoader());
1.8 + this.cl = new WebClassLoader(JVMBridge.class.getClassLoader().getParent());
1.9 }
1.10
1.11 public static void registerClassLoaders(ClassLoader[] loaders) {
1.12 @@ -126,7 +126,15 @@
1.13
1.14 @Override
1.15 public Object invoke(Object... args) throws Exception {
1.16 - return fn.call("fn", args); // NOI18N
1.17 + try {
1.18 + return fn.call("fn", args); // NOI18N
1.19 + } catch (Error t) {
1.20 + t.printStackTrace();
1.21 + throw t;
1.22 + } catch (Exception t) {
1.23 + t.printStackTrace();
1.24 + throw t;
1.25 + }
1.26 }
1.27 }
1.28 }