IDEA-116383 cannot reconnect

Some RuntimeException contains not serializable class 'org.apache.maven.model.building.DefaultModelProblem'. So IDEA throw java.rmi.UnmarshalException  caused by java.io.NotSerializableException.
This commit is contained in:
Sergey Evdokimov
2013-12-16 21:53:15 +04:00
parent d159e53540
commit 9f7fb6cef0
@@ -420,7 +420,6 @@ public class Maven3ServerEmbedderImpl extends MavenRemoteObject implements Maven
}
private static MavenExecutionResult handleException(Throwable e) {
if (e instanceof RuntimeException) throw (RuntimeException) e;
if (e instanceof Error) throw (Error) e;
return new MavenExecutionResult(null, Collections.singletonList((Exception) e));