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

Several ICMPv6 tests fail with NoRouteToHostException

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Mac OS 10.11.6
      Oracle JDK 1.8.0_101-b13

      Description

      Test output:

      ------------------- begin testPingCallbackTimeoutJni ---------------------
      ERROR COUNTED DOWN
      java.net.NoRouteToHostException: No Route to Host /2001:db8:0:0:4261:6441:6464:7221: sendto error (65, No route to host)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:273)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:261)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:101)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:51)
      	at org.opennms.protocols.rt.RequestTracker.sendRequest(RequestTracker.java:212)
      	at org.opennms.netmgt.icmp.jni6.Jni6Pinger.ping(Jni6Pinger.java:221)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.pingCallbackTimeout(Jni6PingTest.java:178)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.testPingCallbackTimeoutJni(Jni6PingTest.java:191)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at junit.framework.TestCase.runTest(TestCase.java:176)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.runTest(Jni6PingTest.java:69)
      	at junit.framework.TestCase.runBare(TestCase.java:141)
      	at junit.framework.TestResult$1.protect(TestResult.java:122)
      	at junit.framework.TestResult.runProtected(TestResult.java:142)
      	at junit.framework.TestResult.run(TestResult.java:125)
      	at junit.framework.TestCase.run(TestCase.java:129)
      	at junit.framework.TestSuite.runTest(TestSuite.java:252)
      	at junit.framework.TestSuite.run(TestSuite.java:247)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      ------------------- end testPingCallbackTimeoutJni -----------------------
      ------------------- begin testParallelPingJni ---------------------
      ERROR COUNTED DOWN
      java.net.NoRouteToHostException: No Route to Host /2001:db8:0:0:4261:6441:6464:7221: sendto error (65, No route to host)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:273)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:261)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:101)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:51)
      	at org.opennms.protocols.rt.RequestTracker.sendRequest(RequestTracker.java:212)
      	at org.opennms.protocols.rt.RequestTracker$TimedOutRequestCallback.call(RequestTracker.java:328)
      	at org.opennms.protocols.rt.RequestTracker$TimedOutRequestCallback.call(RequestTracker.java:294)
      	at org.opennms.protocols.rt.RequestTracker.processCallbacks(RequestTracker.java:240)
      	at org.opennms.protocols.rt.RequestTracker.access$000(RequestTracker.java:129)
      	at org.opennms.protocols.rt.RequestTracker$1.run(RequestTracker.java:161)
      ERROR COUNTED DOWN
      java.net.NoRouteToHostException: No Route to Host /2001:db8:0:0:4261:6441:6464:7221: sendto error (65, No route to host)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:273)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:261)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:101)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:51)
      	at org.opennms.protocols.rt.RequestTracker.sendRequest(RequestTracker.java:212)
      	at org.opennms.protocols.rt.RequestTracker$TimedOutRequestCallback.call(RequestTracker.java:328)
      	at org.opennms.protocols.rt.RequestTracker$TimedOutRequestCallback.call(RequestTracker.java:294)
      	at org.opennms.protocols.rt.RequestTracker.processCallbacks(RequestTracker.java:240)
      	at org.opennms.protocols.rt.RequestTracker.access$000(RequestTracker.java:129)
      	at org.opennms.protocols.rt.RequestTracker$1.run(RequestTracker.java:161)
      response times = [107.0, 132.0, 126.0, 141.0, 120.0, 126.0, 147.0, 115.0, 122.0, 120.0, 130.0, 126.0, 148.0, 130.0, 110.0, 116.0, 143.0, 120.0, 177.0, 146.0]
      pings = 20, passed = 20 (100.0000000000000000%), failed = 0 (0E-16%), median = 126.0000000000000000, average = 0.1301ms
      ------------------- end testParallelPingJni -----------------------
      ------------------- begin testPingCallbackTimeoutJni ---------------------
      ERROR COUNTED DOWN
      java.net.NoRouteToHostException: No Route to Host /2001:db8:0:0:4261:6441:6464:7221: sendto error (65, No route to host)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:273)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingRequest.send(Jni6PingRequest.java:261)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:101)
      	at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.sendRequest(Jni6IcmpMessenger.java:51)
      	at org.opennms.protocols.rt.RequestTracker.sendRequest(RequestTracker.java:212)
      	at org.opennms.netmgt.icmp.jni6.Jni6Pinger.ping(Jni6Pinger.java:221)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.pingCallbackTimeout(Jni6PingTest.java:178)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.testPingCallbackTimeoutJni(Jni6PingTest.java:191)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at junit.framework.TestCase.runTest(TestCase.java:176)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.runTest(Jni6PingTest.java:69)
      	at junit.framework.TestCase.runBare(TestCase.java:141)
      	at junit.framework.TestResult$1.protect(TestResult.java:122)
      	at junit.framework.TestResult.runProtected(TestResult.java:142)
      	at junit.framework.TestResult.run(TestResult.java:125)
      	at junit.framework.TestCase.run(TestCase.java:129)
      	at junit.framework.TestSuite.runTest(TestSuite.java:252)
      	at junit.framework.TestSuite.run(TestSuite.java:247)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:275)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:183)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      ------------------- end testPingCallbackTimeoutJni -----------------------
      Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 4.086 sec <<< FAILURE! - in org.opennms.netmgt.icmp.jni6.Jni6PingTest
      testPingCallbackTimeoutJni(org.opennms.netmgt.icmp.jni6.Jni6PingTest)  Time elapsed: 0.01 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: null
      	at junit.framework.Assert.fail(Assert.java:55)
      	at junit.framework.Assert.assertTrue(Assert.java:22)
      	at junit.framework.Assert.assertTrue(Assert.java:31)
      	at junit.framework.TestCase.assertTrue(TestCase.java:201)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.pingCallbackTimeout(Jni6PingTest.java:184)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.testPingCallbackTimeoutJni(Jni6PingTest.java:191)
      
      testPingCallbackTimeoutJni(org.opennms.netmgt.icmp.jni6.Jni6PingTest)  Time elapsed: 0.004 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: null
      	at junit.framework.Assert.fail(Assert.java:55)
      	at junit.framework.Assert.assertTrue(Assert.java:22)
      	at junit.framework.Assert.assertTrue(Assert.java:31)
      	at junit.framework.TestCase.assertTrue(TestCase.java:201)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.pingCallbackTimeout(Jni6PingTest.java:184)
      	at org.opennms.netmgt.icmp.jni6.Jni6PingTest.testPingCallbackTimeoutJni(Jni6PingTest.java:191)
      
      
      Results :
      
      Failed tests: 
      org.opennms.netmgt.icmp.jni6.Jni6PingTest.testPingCallbackTimeoutJni(org.opennms.netmgt.icmp.jni6.Jni6PingTest)
        Run 1: Jni6PingTest.runTest:69->testPingCallbackTimeoutJni:191->pingCallbackTimeout:184 null
        Run 2: Jni6PingTest.runTest:69->testPingCallbackTimeoutJni:191->pingCallbackTimeout:184 null
      
      

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              schlend David Schlenk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: