minor fixed in JMX subagent
authorVictor Kirhenshtein <victor@netxms.org>
Sun, 12 Nov 2017 10:30:56 +0000 (12:30 +0200)
committerVictor Kirhenshtein <victor@netxms.org>
Sun, 12 Nov 2017 10:30:56 +0000 (12:30 +0200)
src/agent/subagents/jmx/pom.xml
src/agent/subagents/jmx/src/main/java/org/netxms/agent/jmx/Server.java

index 05c6aa9..0290485 100644 (file)
@@ -49,9 +49,7 @@
                 <configuration>
                     <archive>
                         <manifestEntries>
-                            <NetXMS-Plugin-Classname>
-                                org.netxms.agent.jmx.JmxPlugin
-                            </NetXMS-Plugin-Classname>
+                            <NetXMS-Plugin-Classname>org.netxms.agent.jmx.JmxPlugin</NetXMS-Plugin-Classname>
                         </manifestEntries>
                     </archive>
 
index c06e03c..5671b97 100644 (file)
@@ -86,7 +86,8 @@ public class Server
          }
          catch(Exception e)
          {
-            Platform.writeDebugLog(5, "JMX: cannot setup connection to " + url, e);
+            Platform.writeDebugLog(5, "JMX: cannot setup connection to " + url);
+            Platform.writeDebugLog(5, "JMX:   ", e);
             throw e;
          }
       }
@@ -100,7 +101,8 @@ public class Server
          }
          catch(Exception e)
          {
-            Platform.writeDebugLog(5, "JMX: cannot get MBean server connection for " + url, e);
+            Platform.writeDebugLog(5, "JMX: cannot get MBean server connection for " + url);
+            Platform.writeDebugLog(5, "JMX:   ", e);
             jmxc.close();
             jmxc = null;
             throw e;
@@ -121,7 +123,8 @@ public class Server
          }
          catch(Exception e)
          {
-            Platform.writeDebugLog(6, "JMX: exception in disconnect() call for " + url, e);
+            Platform.writeDebugLog(6, "JMX: exception in disconnect() call for " + url);
+            Platform.writeDebugLog(6, "JMX:   ", e);
          }
          jmxc = null;
       }