提交 d0e5054d 编写于 作者: K kohsuke

improved error handling after seeing...

improved error handling after seeing http://www.nabble.com/ClassNotFoundException-and-distributed-hudson-td22811408.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16841 71c3de6d-444a-0410-be80-ed276b4c234a
上级 3b30a082
......@@ -81,7 +81,12 @@ final class UserRequest<RSP,EXC extends Throwable> extends Request<UserResponse<
RSP r = null;
Channel oldc = Channel.setCurrent(channel);
try {
Object o = new ObjectInputStreamEx(new ByteArrayInputStream(request), cl).readObject();
Object o;
try {
o = new ObjectInputStreamEx(new ByteArrayInputStream(request), cl).readObject();
} catch (ClassNotFoundException e) {
throw new ClassNotFoundException("Failed to deserialize the Callable object. Perhaps you needed to implement DelegatingCallable?",e);
}
Callable<RSP,EXC> callable = (Callable<RSP,EXC>)o;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册