{"action":"created","issue":{"url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/24","labels_url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/24/comments","events_url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/24/events","html_url":"https://github.com/egineering-llc/collectd-fast-jmx/issues/24","id":121086480,"number":24,"title":"Failed to dispatch data from service connected using “rmi\" when there is also service connected using ‘remoting-jmx’","user":{"login":"zsuzhengdu","id":1986459,"avatar_url":"https://avatars.githubusercontent.com/u/1986459?v=3","gravatar_id":"","url":"https://api.github.com/users/zsuzhengdu","html_url":"https://github.com/zsuzhengdu","followers_url":"https://api.github.com/users/zsuzhengdu/followers","following_url":"https://api.github.com/users/zsuzhengdu/following{/other_user}","gists_url":"https://api.github.com/users/zsuzhengdu/gists{/gist_id}","starred_url":"https://api.github.com/users/zsuzhengdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zsuzhengdu/subscriptions","organizations_url":"https://api.github.com/users/zsuzhengdu/orgs","repos_url":"https://api.github.com/users/zsuzhengdu/repos","events_url":"https://api.github.com/users/zsuzhengdu/events{/privacy}","received_events_url":"https://api.github.com/users/zsuzhengdu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-08T19:59:53Z","updated_at":"2015-12-09T04:00:01Z","closed_at":null,"body":"**Observed Behaviour**\r\nWhen trying to collect JVM data using ‘rmi’ and ‘http-remoting-jmx’ at the same time, we noticed that ONLY data from connection built using ‘remoting-jmx’ are colllected.  We noticed that all types of connections are invoked, connections received notifications, notification listeners added and found expected instance in service. \r\n\r\nBelow is an example of our FastJMX config.\r\n\r\n```\r\nLoadPlugin java\r\n<Plugin \"java\">\r\n  JVMARG \"-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/fast-jmx.jar:/usr/share/collectd/java/jboss-client.jar\"\r\n  LoadPlugin \"org.collectd.FastJMX\"\r\n  <Plugin \"FastJMX\">\r\n    LogLevel \"FINEST\"\r\n    ForceLoggingTo \"INFO\"\r\n    CollectInternal true\r\n\r\n    <MBean \"Service1_ClassLoading\">\r\n      ObjectName \"java.lang:type=ClassLoading\"\r\n      InstancePrefix \"ClassLoading\"\r\n      <Value>\r\n        Type \"gauge\"\r\n        Table false\r\n        InstancePrefix \"ClassesTotalLoadedClassCount\"\r\n        Attribute \"TotalLoadedClassCount\"\r\n        PluginName 'Service1'\r\n      </Value>\r\n      <Value>\r\n        Type \"gauge\"\r\n        Table false\r\n        InstancePrefix \"ClassesUnloadedClassCount\"\r\n        Attribute \"UnloadedClassCount\"\r\n        PluginName 'Service1'\r\n      </Value>\r\n    </MBean>\r\n\r\n    <Connection>\r\n      ServiceURL \"service:jmx:rmi:///jndi/rmi://{{CONTAINER_HOST_ADDRESS}}:9000/jmxrmi\"\r\n      Synchronous true\r\n      Host \"{{HOST_NAME}}\"\r\n      InstancePrefix 'JVM'\r\n      Collect \"Service1_ClassLoading\"\r\n    </Connection>\r\n    {% endfor %}\r\n    {% endif %}\r\n\r\n    <MBean \"Service2_ClassLoading\">\r\n      ObjectName \"java.lang:type=ClassLoading\"\r\n      InstancePrefix \"ClassLoading\"\r\n      <Value>\r\n        Type \"gauge\"\r\n        Table false\r\n        InstancePrefix \"ClassesTotalLoadedClassCount\"\r\n        Attribute \"TotalLoadedClassCount\"\r\n        PluginName 'Service2'\r\n      </Value>\r\n      <Value>\r\n        Type \"gauge\"\r\n        Table false\r\n        InstancePrefix \"ClassesUnloadedClassCount\"\r\n        Attribute \"UnloadedClassCount\"\r\n        PluginName 'Service2'\r\n      </Value>\r\n    </MBean>\r\n\r\n    <Connection>\r\n      ServiceURL  \"service:jmx:http-remoting-jmx://{{CONTAINER_HOST_ADDRESS}}:{{JMX_PORT}}\"\r\n      User \"admin\"\r\n      Password \"admin\"\r\n      Host \"{{HOST_NAME}}\"\r\n      InstancePrefix 'JVM'\r\n      Collect \"Service2_ClassLoading\"\r\n    </Connection>\r\n  </Plugin>\r\n</Plugin>\r\n```"},"comment":{"url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/comments/163097476","html_url":"https://github.com/egineering-llc/collectd-fast-jmx/issues/24#issuecomment-163097476","issue_url":"https://api.github.com/repos/egineering-llc/collectd-fast-jmx/issues/24","id":163097476,"user":{"login":"bvarner","id":1652015,"avatar_url":"https://avatars.githubusercontent.com/u/1652015?v=3","gravatar_id":"","url":"https://api.github.com/users/bvarner","html_url":"https://github.com/bvarner","followers_url":"https://api.github.com/users/bvarner/followers","following_url":"https://api.github.com/users/bvarner/following{/other_user}","gists_url":"https://api.github.com/users/bvarner/gists{/gist_id}","starred_url":"https://api.github.com/users/bvarner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvarner/subscriptions","organizations_url":"https://api.github.com/users/bvarner/orgs","repos_url":"https://api.github.com/users/bvarner/repos","events_url":"https://api.github.com/users/bvarner/events{/privacy}","received_events_url":"https://api.github.com/users/bvarner/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T04:00:01Z","updated_at":"2015-12-09T04:00:01Z","body":"Thank you for the bug reports and the diligence in testing things. I found the bug, and it's an embarrassing one... a _very_ poorly written equals() method. :-("}}