# ArrayIndexOutOfBoundsException when attempting to construct report

**URL:** <https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298>\
**Category:** Gatling (Open-Source)\
**Created:** [September 30, 2016, 7:06pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298 "2016-09-30T19:06:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clint\_McGill](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Clint\_McGill](https://community.gatling.io/u/Clint_McGill)\
**Post date:** [September 30, 2016, 7:06pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/1 "2016-09-30T19:06:28Z")

</div>

Hi,  
Trying to generate a report from a concurrent run on several remote servers. Have already done so several times. Now, suddenly, I’m getting this:

> GATLING\_HOME is set to /home/ubuntu/gatling  
> Parsing log file(s)…  
> Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: -23146894  
> at io.gatling.charts.stats.buffers.CountsBuffer.update(CountBuffer.scala:35)  
> at io.gatling.charts.stats.buffers.ResponsesPerSecBuffers$class.updateResponsesPerSecBuffers(ResponsesPerSecBuffers.scala:32)  
> at io.gatling.charts.stats.ResultsHolder.updateResponsesPerSecBuffers(ResultsHolder.scala:21)  
> at io.gatling.charts.stats.ResultsHolder.addRequestRecord(ResultsHolder.scala:48)  
> at io.gatling.charts.stats.LogFileReader.io$gatling$charts$stats$LogFileReader$$$anonfun$10(LogFileReader.scala:150)  
> at io.gatling.charts.stats.LogFileReader$lambda$$secondPass$1.apply(LogFileReader.scala:145)  
> at io.gatling.charts.stats.LogFileReader$lambda$$secondPass$1.apply(LogFileReader.scala:145)  
> at scala.collection.Iterator$class.foreach(Iterator.scala:893)  
> at scala.collection.Iterator$ConcatIterator.foreach(Iterator.scala:168)  
> at io.gatling.charts.stats.LogFileReader.secondPass(LogFileReader.scala:145)  
> at io.gatling.charts.stats.LogFileReader.io$gatling$charts$stats$LogFileReader$$$anonfun$11(LogFileReader.scala:165)  
> at io.gatling.charts.stats.LogFileReader$lambda$3.apply(LogFileReader.scala:165)  
> at io.gatling.charts.stats.LogFileReader$lambda$3.apply(LogFileReader.scala:165)  
> at io.gatling.charts.stats.LogFileReader.parseInputFiles(LogFileReader.scala:63)  
> at io.gatling.charts.stats.LogFileReader.(LogFileReader.scala:165)  
> at io.gatling.app.LogFileProcessor.initLogFileReader(RunResultProcessor.scala:55)  
> at io.gatling.app.LogFileProcessor.processRunResult(RunResultProcessor.scala:37)  
> at io.gatling.app.Gatling.start(Gatling.scala:66)  
> at io.gatling.app.Gatling$.start(Gatling.scala:57)  
> at io.gatling.app.Gatling$.fromArgs(Gatling.scala:49)  
> at io.gatling.app.Gatling$.main(Gatling.scala:43)  
> at io.gatling.app.Gatling.main(Gatling.scala)

I have no idea why. Any suggestions? I’ve been able to generate reports just fine in the past.

---

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [March 20, 2017, 2:58pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/2 "2017-03-20T14:58:42Z")

</div>

I added my observations here [https://groups.google.com/d/msg/gatling/u21be-M8A3M/elazxvgzCQAJ](https://groups.google.com/d/msg/gatling/u21be-M8A3M/elazxvgzCQAJ)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 20, 2017, 4:21pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/3 "2017-03-20T16:21:21Z")

</div>

Could you please provide a way to reproduce, eg a simulation.log?

---

<div class="post-metadata">

**Author:** ![Clint\_McGill](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Clint\_McGill](https://community.gatling.io/u/Clint_McGill)\
**Post date:** [March 20, 2017, 5:10pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/4 "2017-03-20T17:10:59Z")

</div>

I’d love to, but I’m afraid I don’t have those files any more. If I encounter the error again, I’ll post a followup.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 20, 2017, 8:12pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/5 "2017-03-20T20:12:49Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [March 21, 2017, 8:42am UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/6 "2017-03-21T08:42:43Z")

</div>

For me it happened with the attached file.

[simulation.log](https://community.gatling.io/uploads/short-url/qVNI535cLL7iCZNPR4Wz0QM5pGU.log) (5.73 MB)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 21, 2017, 8:51am UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/7 "2017-03-21T08:51:40Z")

</div>

You sample works just fine for me (checked with both 2.2.4 and master).  
[https://www.dropbox.com/s/eyp5h5uhtpqh5gy/paul.zip?dl=0](https://www.dropbox.com/s/eyp5h5uhtpqh5gy/paul.zip?dl=0)

---

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [March 21, 2017, 10:13am UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/8 "2017-03-21T10:13:09Z")

</div>

Grasping at straws here but my report would be generated on a Debian machine, could this be of interest for you?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 21, 2017, 2:37pm UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/9 "2017-03-21T14:37:39Z")

</div>

I don’t have a Debian, but I tested on OSX, Ubuntu and Fedora.  
Anyway, I fail to see how such issue could be OS related.

I really suspect that don’t have 2.2.3 nor 2.2.4 deployed but actually run an older version.

---

<div class="post-metadata">

**Author:** ![Paul\_Lanzerstorfer](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@Paul\_Lanzerstorfer](https://community.gatling.io/u/Paul_Lanzerstorfer)\
**Post date:** [March 22, 2017, 6:17am UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/10 "2017-03-22T06:17:35Z")

</div>

My pom.xml references 2.2.4, I am using the maven plugin

```auto
<properties>
   <maven.compiler.source>1.8</maven.compiler.source>
   <maven.compiler.target>1.8</maven.compiler.target>
   <scala.version>2.11.8</scala.version>
   <encoding>UTF-8</encoding>

   <gatling.version>2.2.4</gatling.version>
   <gatling-plugin.version>2.2.4</gatling-plugin.version>

   <scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
</properties>

<dependencyManagement>
   <dependencies>
      <dependency>
         <groupId>io.gatling</groupId>
         <artifactId>gatling-app</artifactId>
         <version>${gatling.version}</version>
      </dependency>
      <dependency>
         <groupId>io.gatling</groupId>
         <artifactId>gatling-recorder</artifactId>
         <version>${gatling.version}</version>
      </dependency>
      <dependency>
         <groupId>io.gatling.highcharts</groupId>
         <artifactId>gatling-charts-highcharts</artifactId>
         <version>${gatling.version}</version>
      </dependency>
      <dependency>
         <groupId>org.scala-lang</groupId>
         <artifactId>scala-library</artifactId>
         <version>${scala.version}</version>
      </dependency>
   </dependencies>
</dependencyManagement>

<dependencies>
   <dependency>
      <groupId>io.gatling.highcharts</groupId>
      <artifactId>gatling-charts-highcharts</artifactId>
   </dependency>
   <dependency>
      <groupId>io.gatling</groupId>
      <artifactId>gatling-app</artifactId>
   </dependency>
   <dependency>
      <groupId>io.gatling</groupId>
      <artifactId>gatling-recorder</artifactId>
   </dependency>
   <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
   </dependency>
</dependencies>

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 22, 2017, 9:20am UTC](https://community.gatling.io/t/arrayindexoutofboundsexception-when-attempting-to-construct-report/3298/11 "2017-03-22T09:20:58Z")

</div>

I guess Debian is actually your CI platform.  
Have you checked that it indeed took the pom/gatling upgrade into account and that it’s not actually running an old Gatling version?
