Class<? extends Throwable> clazz = (Class<? extends Throwable>)graph.decomposeReference(getClazz());
throws a NPE because ClassNode returns null from Classes#forName for Throwables which can't be found in the current classloader
public static Class<?> forName(String name, ClassLoader... loaders) { Class<?> c = null; for (ClassLoader cl : getClassLoaders(loaders)) { try { c = Class.forName(name, true, cl); break; }
catch (Throwable t) { // ignoring, but to keep checkstyle happy ("Must have at least one statement."): t.getMessage(); }
} return c; }
java.lang.NullPointerException at org.switchyard.serial.graph.node.ThrowableNode.newThrowable(ThrowableNode.java:180) at org.switchyard.serial.graph.node.ThrowableNode.decompose(ThrowableNode.java:150) at org.switchyard.serial.graph.Graph.decomposeReference(Graph.java:149) at org.switchyard.serial.graph.node.AccessNode$1.run(AccessNode.java:135) at org.switchyard.serial.graph.Graph.decomposeRoot(Graph.java:135) at org.switchyard.serial.graph.GraphSerializer.deserialize(GraphSerializer.java:61) at org.switchyard.remote.http.HttpInvoker.invoke(HttpInvoker.java:99)
|