Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5372

UdpTransportTests fail with JDK8 in teardown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • None
    • None
    • Unit Test Broken

    Description

      UdpTransportTest and UdpTransportUsingServerTest both fail on teardown() with the first stack trace on the call to producer.stop(). UpdTransportBindTest fails in a similar fashion on a call to broker.stop, shown in the second stack trace.

      The problem is not just that these tests fail, but that it leaves a process running using port 61616, so subsequent tests fail. To avoid that I will handle the exception in EmbeddedBrokerTestSupport.tearDown() and UdpTestSupport.tearDown()

      java.io.IOException: No such file or directory
      at sun.nio.ch.NativeThread.signal(Native Method)
      at sun.nio.ch.DatagramChannelImpl.implCloseSelectableChannel(DatagramChannelImpl.java:1012)
      at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)
      at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
      at org.apache.activemq.transport.udp.UdpTransport.doStop(UdpTransport.java:424)
      at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
      at org.apache.activemq.transport.AbstractInactivityMonitor.stop(AbstractInactivityMonitor.java:145)
      at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
      at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
      at org.apache.activemq.transport.ResponseCorrelator.stop(ResponseCorrelator.java:132)
      at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
      at org.apache.activemq.transport.CommandJoiner.stop(CommandJoiner.java:81)
      at org.apache.activemq.transport.udp.UdpTestSupport.tearDown(UdpTestSupport.java:185)
      at junit.framework.TestCase.runBare(TestCase.java:146)
      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:255)
      at junit.framework.TestSuite.run(TestSuite.java:250)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

      java.io.IOException: No such file or directory
      at sun.nio.ch.NativeThread.signal(Native Method)
      at sun.nio.ch.DatagramChannelImpl.implCloseSelectableChannel(DatagramChannelImpl.java:1012)
      at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)
      at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
      at org.apache.activemq.transport.udp.UdpTransport.doStop(UdpTransport.java:424)
      at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
      at org.apache.activemq.transport.AbstractInactivityMonitor.stop(AbstractInactivityMonitor.java:145)
      at org.apache.activemq.transport.TransportFilter.stop(TransportFilter.java:65)
      at org.apache.activemq.transport.CommandJoiner.stop(CommandJoiner.java:81)
      at org.apache.activemq.transport.udp.UdpTransportServer.doStop(UdpTransportServer.java:109)
      at org.apache.activemq.util.ServiceSupport.stop(ServiceSupport.java:71)
      at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
      at org.apache.activemq.broker.TransportConnector.stop(TransportConnector.java:280)
      at org.apache.activemq.util.ServiceStopper.stop(ServiceStopper.java:41)
      at org.apache.activemq.broker.BrokerService.stopAllConnectors(BrokerService.java:2106)
      at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:762)
      at org.apache.activemq.EmbeddedBrokerTestSupport.tearDown(EmbeddedBrokerTestSupport.java:61)
      at junit.framework.TestCase.runBare(TestCase.java:146)
      at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:107)
      at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:113)
      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:255)
      at junit.framework.TestSuite.run(TestSuite.java:250)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

      Attachments

        Activity

          People

            Unassigned Unassigned
            kearls Kevin Anthony Earls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: