Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8096

JMX detector connection errors use wrong log level

    XMLWordPrintable

    Details

      Description

      The JMX-Cassandra-Newts detector (one of the default detectors), logs the following message at ERROR level when scanning a node for which the service is not present.

      2016-01-14 02:19:45,199 ERROR [scanExecutor-9] o.o.n.p.d.j.JMXDetector: isServiceDetected: JMX-Cassandra-Newts: An unexpected I/O exception occured contacting address 10.110.20.2 port 7199
      java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 10.110.20.2; nested exception is:
              java.net.ConnectException: Connection timed out]
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ~[?:1.8.0_66]
              at org.opennms.netmgt.jmx.impl.connection.connectors.Jsr160ConnectionFactory.getMBeanServerConnection(Jsr160ConnectionFactory.java:109) ~[org.opennms.core.jmx.impl-17.0.1-SNAPSHOT.jar:?]
              at org.opennms.netmgt.provision.detector.jmx.AbstractJsr160Detector.connect(AbstractJsr160Detector.java:133) ~[opennms-detector-jmx-17.0.1-SNAPSHOT.jar:?]
              at org.opennms.netmgt.provision.detector.jmx.JMXDetector.isServiceDetected(JMXDetector.java:104) [opennms-detector-jmx-17.0.1-SNAPSHOT.jar:?]
              at org.opennms.netmgt.provision.service.IpInterfaceScan$2.run(IpInterfaceScan.java:187) [opennms-provisiond-17.0.1-SNAPSHOT.jar:?]
              at org.opennms.core.tasks.SyncTask.run(SyncTask.java:93) [org.opennms.core.tasks-17.0.1-SNAPSHOT.jar:?]
              at org.opennms.core.tasks.SyncTask$1.run(SyncTask.java:105) [org.opennms.core.tasks-17.0.1-SNAPSHOT.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_66]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_66]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_66]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_66]
              at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
      Caused by: javax.naming.ServiceUnavailableException
              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:122) ~[?:1.8.0_66]
              at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:1.8.0_66]
              at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1957) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1924) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:1.8.0_66]
              ... 17 more
      Caused by: java.rmi.ConnectException: Connection refused to host: 10.110.20.2; nested exception is:
              java.net.ConnectException: Connection timed out
              at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) ~[?:1.8.0_66]
              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:1.8.0_66]
              at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:1.8.0_66]
              at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342) ~[?:1.8.0_66]
              at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[?:1.8.0_66]
              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) ~[?:1.8.0_66]
              at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:1.8.0_66]
              at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1957) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1924) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:1.8.0_66]
              ... 17 more
      Caused by: java.net.ConnectException: Connection timed out
              at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:1.8.0_66]
              at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:1.8.0_66]
              at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0_66]
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0_66]
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_66]
              at java.net.Socket.connect(Socket.java:589) ~[?:1.8.0_66]
              at java.net.Socket.connect(Socket.java:538) ~[?:1.8.0_66]
              at java.net.Socket.<init>(Socket.java:434) ~[?:1.8.0_66]
              at java.net.Socket.<init>(Socket.java:211) ~[?:1.8.0_66]
              at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) ~[?:1.8.0_66]
              at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) ~[?:1.8.0_66]
              at org.opennms.bootstrap.HostRMIServerSocketFactory.createSocket(HostRMIServerSocketFactory.java:35) ~[opennms_bootstrap.jar:?]
              at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ~[?:1.8.0_66]
              at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) ~[?:1.8.0_66]
              at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[?:1.8.0_66]
              at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342) ~[?:1.8.0_66]
              at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[?:1.8.0_66]
              at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) ~[?:1.8.0_66]
              at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205) ~[?:1.8.0_66]
              at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1957) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1924) ~[?:1.8.0_66]
              at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287) ~[?:1.8.0_66]
              ... 17 more
      

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: