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

test failure: org.opennms.netmgt.provision.detector.NtpDetectorTest.testDetectorSuccess

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 14.0.0
    • Fix Version/s: 14.0.0
    • Component/s: Testing / JUnit
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      http://bamboo.internal.opennms.com:8085/browse/OPENNMS-NMS1-UNIT-460

      11-Sep-2014 07:51:22 2014-09-11 07:51:22,587 INFO [Thread-2] org.opennms.netmgt.provision.support.ClientConversation - Sending Request Leap indicator: 0
      11-Sep-2014 07:51:22 Version: 3
      11-Sep-2014 07:51:22 Mode: 3
      11-Sep-2014 07:51:22 Stratum: 0
      11-Sep-2014 07:51:22 Poll: 0
      11-Sep-2014 07:51:22 Precision: 0 (1E0 seconds)
      11-Sep-2014 07:51:22 Root delay: 0.00 ms
      11-Sep-2014 07:51:22 Root dispersion: 0.00 ms
      11-Sep-2014 07:51:22 Reference identifier:
      11-Sep-2014 07:51:22 Reference timestamp: 0
      11-Sep-2014 07:51:22 Originate timestamp: 0
      11-Sep-2014 07:51:22 Receive timestamp: 0
      11-Sep-2014 07:51:22 Transmit timestamp: 11-Sep-2014 07:51:22.586000
      11-Sep-2014 07:51:22
      11-Sep-2014 07:51:24 2014-09-11 07:51:24,597 INFO [Thread-2] org.opennms.netmgt.provision.support.BasicDetector - isServiceDetected: NTP: Did not connect to address 127.0.0.1 port 1800 within timeout: 2000 attempt: 0
      11-Sep-2014 07:51:24 java.net.SocketTimeoutException: Receive timed out
      11-Sep-2014 07:51:24 at java.net.PlainDatagramSocketImpl.receive0(Native Method)
      11-Sep-2014 07:51:24 at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:145)
      11-Sep-2014 07:51:24 at java.net.DatagramSocket.receive(DatagramSocket.java:786)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.detector.datagram.client.NtpClient.sendRequest(NtpClient.java:104)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.detector.datagram.client.NtpClient.sendRequest(NtpClient.java:43)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.support.ClientConversation.attemptConversation(ClientConversation.java:118)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.support.BasicDetector.attemptConversation(BasicDetector.java:137)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.support.BasicDetector.isServiceDetected(BasicDetector.java:94)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.detector.NtpDetectorTest.testDetectorSuccess(NtpDetectorTest.java:109)
      11-Sep-2014 07:51:24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      11-Sep-2014 07:51:24 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      11-Sep-2014 07:51:24 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      11-Sep-2014 07:51:24 at java.lang.reflect.Method.invoke(Method.java:606)
      11-Sep-2014 07:51:24 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
      11-Sep-2014 07:51:24 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      11-Sep-2014 07:51:24 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
      11-Sep-2014 07:51:24 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      11-Sep-2014 07:51:24 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      11-Sep-2014 07:51:24 at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
      11-Sep-2014 07:51:24 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
      11-Sep-2014 07:51:24 at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
      11-Sep-2014 07:51:24 at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
      11-Sep-2014 07:51:24 at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)
      11-Sep-2014 07:51:24 Exception in thread "" java.lang.reflect.UndeclaredThrowableException
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.server.SimpleUDPServer$1.run(SimpleUDPServer.java:175)
      11-Sep-2014 07:51:24 at java.lang.Thread.run(Thread.java:745)
      11-Sep-2014 07:51:24 Caused by: java.net.SocketException: Socket closed
      11-Sep-2014 07:51:24 at java.net.PlainDatagramSocketImpl.receive0(Native Method)
      11-Sep-2014 07:51:24 at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:145)
      11-Sep-2014 07:51:24 at java.net.DatagramSocket.receive(DatagramSocket.java:786)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.server.SimpleUDPServer$SimpleServerExchange.processRequest(SimpleUDPServer.java:75)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.server.SimpleUDPServer.attemptConversation(SimpleUDPServer.java:226)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.server.SimpleUDPServer$1.run(SimpleUDPServer.java:171)
      11-Sep-2014 07:51:24 ... 1 more
      11-Sep-2014 07:51:24 Tests run: 3, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 5.337 sec <<< FAILURE! - in org.opennms.netmgt.provision.detector.NtpDetectorTest
      11-Sep-2014 07:51:24 testDetectorSuccess(org.opennms.netmgt.provision.detector.NtpDetectorTest) Time elapsed: 2.039 sec <<< FAILURE!
      11-Sep-2014 07:51:24 java.lang.AssertionError: Testing for NTP service, got false when true is supposed to be returned
      11-Sep-2014 07:51:24 at org.junit.Assert.fail(Assert.java:93)
      11-Sep-2014 07:51:24 at org.junit.Assert.assertTrue(Assert.java:43)
      11-Sep-2014 07:51:24 at org.opennms.netmgt.provision.detector.NtpDetectorTest.testDetectorSuccess(NtpDetectorTest.java:109)

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ranger Benjamin Reed
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: