[ 
https://issues.apache.org/jira/browse/YARN-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228699#comment-14228699
 ] 

Steve Loughran commented on YARN-2912:
--------------------------------------

stack
{code}
       at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.instantiateGrizzlyWebServer(GrizzlyWebTestContainerFactory.java:219)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:129)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:86)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory.create(GrizzlyWebTestContainerFactory.java:79)
        at 
com.sun.jersey.test.framework.JerseyTest.getContainer(JerseyTest.java:342)
        at com.sun.jersey.test.framework.JerseyTest.<init>(JerseyTest.java:217)
        at 
org.apache.hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps.<init>(TestNMWebServicesApps.java:172)

testNodeApps(org.apache.hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps)
  Time elapsed: 0.001 sec  <<< ERROR!
com.sun.jersey.test.framework.spi.container.TestContainerException: 
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at 
org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:413)
        at 
org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:384)
        at 
org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:375)
        at 
org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:549)
        at 
org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:255)
        at 
com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:326)
        at 
com.sun.jersey.api.container.grizzly2.GrizzlyServerFactory.createHttpServer(GrizzlyServerFactory.java:343)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.instantiateGrizzlyWebServer(GrizzlyWebTestContainerFactory.java:219)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:129)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory$GrizzlyWebTestContainer.<init>(GrizzlyWebTestContainerFactory.java:86)
        at 
com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory.create(GrizzlyWebTestContainerFactory.java:79)
        at 
com.sun.jersey.test.framework.JerseyTest.getContainer(JerseyTest.java:342)
        at com.sun.jersey.test.framework.JerseyTest.<init>(JerseyTest.java:217)
        at 
org.apache.hadoop.yarn.server.nodemanager.webapp.TestNMWebServicesApps.<init>(TestNMWebServicesApps.java:172)
{code}

> Jersey Tests failing with port in use
> -------------------------------------
>
>                 Key: YARN-2912
>                 URL: https://issues.apache.org/jira/browse/YARN-2912
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>         Environment: jenkins on java 8
>            Reporter: Steve Loughran
>
> Jersey tests like TestNMWebServices apps are failing with port in use.
> The jersey test runner appears to always use the same port unless a system 
> property is set to point to a different one. Every test should really be 
> changing that sysprop in a @Before method



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to