Skip to main content

Posts

Showing posts from 2015

Elasticsearch UnknownHostException and marvel.agent.exporter issue

Solution : /etc/hosts file add  record 127.0.0.1   el-search Error Log : [2015-09-07 14:37:41,372][ERROR][marvel.agent.exporter    ] [Archangel] could not connect to any configured elasticsearch instances: [[0:0:0:0:0:0:0:0]:9200] OR  [2015-09-07 14:30:24,693][WARN ][common.network           ] failed to resolve local host, fallback to loopback java.net.UnknownHostException: el-search: el-search: unknown error         at java.net.InetAddress.getLocalHost(InetAddress.java:1505)         at org.elasticsearch.common.network.NetworkUtils.<clinit>(NetworkUtils.java:55)         at org.elasticsearch.http.netty.NettyHttpServerTransport.<init>(NettyHttpServerTransport.java:165)         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.j

service monitorix start error

Error Log Starting monitorix: Can't locate HTTP/Server/Simple/CGI.pm in @INC (@INC contains: /usr/bin/lib /usr/lib/monitorix /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib/monitorix/HTTPServer.pm line 27. BEGIN failed--compilation aborted at /usr/lib/monitorix/HTTPServer.pm line 27. Compilation failed in require at /usr/bin/monitorix line 30. BEGIN failed--compilation aborted at /usr/bin/monitorix line 30. Solution cp -r /usr/lib/perl5/vendor_perl/5.12.3/HTTP /usr/lib/monitorix/

is not a JMX compliant Standard MBean

I got the fallowing exception and issue solved. If your are using MBean , MBean Interface and Implementation should be in same package, Otherwise use MXBean. javax.management.NotCompliantMBeanException: MBean class comlanka.rest.controller.DataManagerController does not implement DynamicMBean, and neither follows the Standard MBean conventions (javax.management.NotCompliantMBeanException: Class comlanka.rest.controller.DataManagerController is not a JMX compliant Standard MBean) nor the MXBean conventions (javax.management.NotCompliantMBeanException: comlanka.rest.controller.DataManagerController: Class comlanka.rest.controller.DataManagerController is not a JMX compliant MXBean)         at com.sun.jmx.mbeanserver.Introspector.checkCompliance(Introspector.java:176)         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:317)         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)