[ https://issues.apache.org/jira/browse/LENS-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14948452#comment-14948452 ]
Amareshwari Sriramadasu commented on LENS-704: ---------------------------------------------- Actually all tests are skipped on https://builds.apache.org/job/Lens-Commit/org.apache.lens$lens-server/1099/testReport/junit/org.apache.lens.server.query/. So, I'm thinking for some reason one of the test setups is failing and is showing up as this failure always. I'm thinking it could be because of LensJerseyTest.getTestPort() is not synchronised and two tests are picking up same port - just hypothesis by looking at the code. For TestQueryEndEmailNotifier.setUp failure happened in build #1099 : The SMTPServer is listening a fixed port(25000), which could have been picked by other tests. Shall we use random port here as well ? > org.apache.lens.server.query.QueryAPIErrorResponseTest.setUp fails sometimes > ---------------------------------------------------------------------------- > > Key: LENS-704 > URL: https://issues.apache.org/jira/browse/LENS-704 > Project: Apache Lens > Issue Type: Bug > Components: server, test > Reporter: Amareshwari Sriramadasu > Fix For: 2.5 > > > Here is the log: > {noformat} > Error Message > javax.ws.rs.ProcessingException: IOException thrown when trying to start > grizzly server > Stacktrace > org.glassfish.jersey.test.spi.TestContainerException: > javax.ws.rs.ProcessingException: IOException thrown when trying to start > grizzly server > at > org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer.start(GrizzlyTestContainerFactory.java:90) > at org.glassfish.jersey.test.JerseyTest.setUp(JerseyTest.java:487) > at org.apache.lens.server.LensJerseyTest.setUp(LensJerseyTest.java:66) > at org.apache.lens.server.TestServerMode.setUp(TestServerMode.java:62) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) > at > org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) > at org.testng.TestRunner.beforeRun(TestRunner.java:641) > at org.testng.TestRunner.run(TestRunner.java:609) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) > at org.testng.SuiteRunner.run(SuiteRunner.java:240) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1123) > at org.testng.TestNG.run(TestNG.java:1031) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:181) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) > 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) > Caused by: javax.ws.rs.ProcessingException: IOException thrown when trying to > start grizzly server > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:276) > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:138) > at > org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer.start(GrizzlyTestContainerFactory.java:88) > at org.glassfish.jersey.test.JerseyTest.setUp(JerseyTest.java:487) > at org.apache.lens.server.LensJerseyTest.setUp(LensJerseyTest.java:66) > at org.apache.lens.server.TestServerMode.setUp(TestServerMode.java:62) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) > at > org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) > at org.testng.TestRunner.beforeRun(TestRunner.java:641) > at org.testng.TestRunner.run(TestRunner.java:609) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) > at org.testng.SuiteRunner.run(SuiteRunner.java:240) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1123) > at org.testng.TestNG.run(TestNG.java:1031) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:181) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) > 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) > Caused by: java.net.BindException: Address already in use > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:444) > at sun.nio.ch.Net.bind(Net.java:436) > at > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at > org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(TCPNIOBindingHandler.java:132) > at > org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(TCPNIOBindingHandler.java:88) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:233) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:213) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(TCPNIOTransport.java:204) > at > org.glassfish.grizzly.http.server.NetworkListener.start(NetworkListener.java:681) > at > org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:276) > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:274) > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:138) > at > org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer.start(GrizzlyTestContainerFactory.java:88) > at org.glassfish.jersey.test.JerseyTest.setUp(JerseyTest.java:487) > at org.apache.lens.server.LensJerseyTest.setUp(LensJerseyTest.java:66) > at org.apache.lens.server.TestServerMode.setUp(TestServerMode.java:62) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) > at > org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) > at org.testng.TestRunner.beforeRun(TestRunner.java:641) > at org.testng.TestRunner.run(TestRunner.java:609) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) > at org.testng.SuiteRunner.run(SuiteRunner.java:240) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1123) > at org.testng.TestNG.run(TestNG.java:1031) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:181) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113) > 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) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)