@@ -55,11 +55,11 @@ */ private static void startManagementAgent(String pid) throws IOException { try { VirtualMachine.attach(pid).startLocalManagementAgent(); } catch (Exception x) { - throw new IOException(x.getMessage()); + throw new IOException(x.getMessage(), x); } } private static void connect(String pid, String address) throws Exception { if (address == null) {