Many deploy tests fail on 7u.
Failure output:
java.lang.Exception: Failed to start webserver: tried port numbers: 8135-8137, need investigate
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at com.sun.deploy.cache.CachedJarFileTest.setUp(Unknown Source)
at sun.tests.junit.DeployTestCase.runBare(Unknown Source)
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:344)
at sun.nio.ch.Net.bind(Net.java:336)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:98)
at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
at com.sun.net.httpserver.HttpServer.create(HttpServer.java:129)
at sun.tests.helpers.WebServer.start(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at com.sun.deploy.cache.CachedJarFileTest.setUp(Unknown Source)
at junit.framework.TestCase.runBare(TestCase.java:132)
at sun.tests.junit.DeployTestCase.runBare(Unknown Source)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:36)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
Failure output:
java.lang.Exception: Failed to start webserver: tried port numbers: 8135-8137, need investigate
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at com.sun.deploy.cache.CachedJarFileTest.setUp(Unknown Source)
at sun.tests.junit.DeployTestCase.runBare(Unknown Source)
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:344)
at sun.nio.ch.Net.bind(Net.java:336)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:98)
at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
at com.sun.net.httpserver.HttpServer.create(HttpServer.java:129)
at sun.tests.helpers.WebServer.start(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at sun.tests.helpers.WebServer.startServer(Unknown Source)
at com.sun.deploy.cache.CachedJarFileTest.setUp(Unknown Source)
at junit.framework.TestCase.runBare(TestCase.java:132)
at sun.tests.junit.DeployTestCase.runBare(Unknown Source)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:36)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:743)
- duplicates
-
JDK-8015692 java.net.BindException is thrown on Windows XP when HTTP server is started and stopped in the loop.
-
- Closed
-
- relates to
-
JDK-8015692 java.net.BindException is thrown on Windows XP when HTTP server is started and stopped in the loop.
-
- Closed
-