Failed

com.ning.http.client.async.grizzly.GrizzlyAsyncStreamHandlerTest.asyncOptionsTest

Failing for the past 600 builds (Since #721 )
Took 0.6 sec.

Error Message

Index: 0

Stacktrace

java.lang.IndexOutOfBoundsException: Index: 0
	at java.util.Collections$EmptyList.get(Collections.java:4454)
	at com.ning.http.client.async.AsyncStreamHandlerTest.asyncOptionsTest(AsyncStreamHandlerTest.java:435)
	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 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
	at org.testng.TestRunner.privateRun(TestRunner.java:767)
	at org.testng.TestRunner.run(TestRunner.java:617)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
	at org.testng.SuiteRunner.run(SuiteRunner.java:254)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
	at org.testng.TestNG.run(TestNG.java:1057)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:76)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:112)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:115)
	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 org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

Standard Output

Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@7dc5e7b4
07:00:13,075 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback-test.xml] at [file:/home/jenkins/agent/workspace/Grizzly-AHC-master-nightly/target/test-classes/logback-test.xml]
07:00:13,175 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
07:00:13,176 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
07:00:13,185 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE]
07:00:13,248 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - This appender no longer admits a layout as a sub-component, set an encoder instead.
07:00:13,248 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
07:00:13,248 |-WARN in ch.qos.logback.core.ConsoleAppender[CONSOLE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
07:00:13,250 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.eclipse] to INFO
07:00:13,250 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
07:00:13,250 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT]
07:00:13,251 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
07:00:13,253 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@76b0bfab - Registering current configuration as safe fallback point

2022-09-29 07:00:13,367 [main] INFO org.eclipse.jetty.util.log - Logging initialized @730ms to org.eclipse.jetty.util.log.Slf4jLog
2022-09-29 07:00:13,538 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.17.v20190418; built: 2019-04-18T19:45:35.259Z; git: aa1c656c315c011c01e7b21aabb04066635b9f67; jvm 1.8.0_202-b08
2022-09-29 07:00:13,593 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@44a664f2{HTTP/1.1,[http/1.1]}{127.0.0.1:38883}
2022-09-29 07:00:13,594 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@400cff1a{HTTP/1.1,[http/1.1]}{127.0.0.1:37573}
2022-09-29 07:00:13,594 [main] INFO org.eclipse.jetty.server.Server - Started @978ms
2022-09-29 07:00:13,594 [main] INFO com.ning.http.client.async.AbstractBasicTest - Local HTTP server started successfully
2022-09-29 07:00:14,178 [grizzly-ahc-kernel(1) SelectorRunner] DEBUG com.ning.http.client.providers.grizzly.AsyncHttpClientFilter - REQUEST: HttpRequestPacket (
   method=OPTIONS
   url=/
   query=null
   protocol=HTTP/1.1
   content-length=-1
   headers=[
      Host=www.apache.org
      User-Agent=AHC/1.0
      Connection=keep-alive
      Accept=*/*]
)
2022-09-29 07:00:14,194 [AsyncHttpClient-Callback] DEBUG com.ning.http.client.providers.grizzly.AhcEventFilter - RESPONSE: HttpResponsePacket (
  status=301
  reason=Moved Permanently
  protocol=HTTP/1.1
  content-length=0
  committed=false
  headers=[
      server=Varnish
      retry-after=0
      location=https://www.apache.org/
      content-length=0
      accept-ranges=bytes
      date=Thu, 29 Sep 2022 07:00:14 GMT
      via=1.1 varnish
      connection=close
      x-served-by=cache-yul12824-YUL
      x-cache=HIT
      x-cache-hits=0
      x-timer=S1664434814.189801,VS0,VE0]
)