Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13108

InfinispanServerRule completely hides exceptions from driver startup ending up with IndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.0.0.Dev01
    • Fix Version/s: None
    • Component/s: Test Suite
    • Labels:
      None

      Description

      While debugging ISPN-13107 the only available log to go on is the following:

      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
        at java.base/java.util.Objects.checkIndex(Objects.java:372)
        at java.base/java.util.ArrayList.get(ArrayList.java:459)
        at org.infinispan.server.test.core.ForkedInfinispanServerDriver.stop(ForkedInfinispanServerDriver.java:138)
        at org.infinispan.server.test.core.AbstractInfinispanServerDriver.stop(AbstractInfinispanServerDriver.java:156)
        at org.infinispan.server.test.core.TestServer.stopServerDriver(TestServer.java:45)
        at org.infinispan.server.test.junit4.InfinispanServerRule$1.evaluate(InfinispanServerRule.java:81)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
        at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      
      https://ci.wildfly.org/buildConfiguration/WF_PullRequest_WindowsJdk11/260058?
      

      which is because the server failed to start.

      The errors must be caught and logged.

        Attachments

          Activity

            People

            Assignee:
            rhusar Radoslav Husar
            Reporter:
            rhusar Radoslav Husar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: