<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3 in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477416#M8517</link>
    <description>&lt;P&gt;Windows 10 64-bit&lt;BR /&gt;JavaSE 1.8.0_192&lt;BR /&gt;splunk-sdk-java-1.6.5.jar&lt;BR /&gt;opencsv-2.3.jar&lt;/P&gt;
&lt;P&gt;Only for certain dates/data does this seem to occur, very frustrating.&lt;BR /&gt;Does not appear to be a data volume issue, larger row counts can be successfully extracted.&lt;BR /&gt;Leads me to believe it's data-dependent, but cannot determine the cause. &lt;BR /&gt;Investigating data via splunk web GUI was inconclusive.&lt;/P&gt;
&lt;P&gt;while ((event = resultsReader.getNextEvent()) != null)&lt;/P&gt;
&lt;P&gt;throws java.lang.ArrayIndexOutOfBoundsException: 3&lt;/P&gt;
&lt;P&gt;Does the "3" value provide any insight?&lt;BR /&gt;Detailed exception data attached as graphic image.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8438iD5B69CC51AE74E88/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:26:35 GMT</pubDate>
    <dc:creator>fredthefrog</dc:creator>
    <dc:date>2020-06-07T18:26:35Z</dc:date>
    <item>
      <title>Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477416#M8517</link>
      <description>&lt;P&gt;Windows 10 64-bit&lt;BR /&gt;JavaSE 1.8.0_192&lt;BR /&gt;splunk-sdk-java-1.6.5.jar&lt;BR /&gt;opencsv-2.3.jar&lt;/P&gt;
&lt;P&gt;Only for certain dates/data does this seem to occur, very frustrating.&lt;BR /&gt;Does not appear to be a data volume issue, larger row counts can be successfully extracted.&lt;BR /&gt;Leads me to believe it's data-dependent, but cannot determine the cause. &lt;BR /&gt;Investigating data via splunk web GUI was inconclusive.&lt;/P&gt;
&lt;P&gt;while ((event = resultsReader.getNextEvent()) != null)&lt;/P&gt;
&lt;P&gt;throws java.lang.ArrayIndexOutOfBoundsException: 3&lt;/P&gt;
&lt;P&gt;Does the "3" value provide any insight?&lt;BR /&gt;Detailed exception data attached as graphic image.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8438iD5B69CC51AE74E88/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477416#M8517</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-06-07T18:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477417#M8518</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Additional server info:&lt;/STRONG&gt; &lt;BR /&gt;
Splunk&amp;gt;enterprise 7.3.2&lt;BR /&gt;
Version:7.3.2&lt;BR /&gt;
Build: c60db69f8e32&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477417#M8518</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-02-21T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477418#M8519</link>
      <description>&lt;P&gt;I'm quickly determining the cause may not be the SDK or the ResultsReaderCsv, but my Java code.  When I find it, I will post the resolution.  Thank you for reading.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477418#M8519</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-02-21T19:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477419#M8520</link>
      <description>&lt;P&gt;I'm reducing the Java code to the absolute bare minimum to determine if the problem persists.  If it does, then it's definitely the Java SDK.   Meanwhile, can anyone provide a reliable Java example of paging through &amp;gt;200K events/results?  &lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 18:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477419#M8520</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-02-23T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477420#M8521</link>
      <description>&lt;P&gt;Finally got the stack trace I've been needing.&lt;BR /&gt;
    Retrieving results page 8&lt;BR /&gt;
    java.lang.ArrayIndexOutOfBoundsException: 3&lt;BR /&gt;
        at com.splunk.ResultsReaderCsv.getNextEventInCurrentSet(ResultsReaderCsv.java:109)&lt;BR /&gt;
        at com.splunk.ResultsReader.getNextElement(ResultsReader.java:87)&lt;BR /&gt;
        at com.splunk.ResultsReader.getNextEvent(ResultsReader.java:64)&lt;BR /&gt;
        at SplunkQuery.parseSplunkResults(SplunkQuery.java:479)&lt;BR /&gt;
        at SplunkQuery.main(SplunkQuery.java:194)&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 18:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477420#M8521</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-02-23T18:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Java JDK - ResultsReaderCsv throws java.lang.ArrayIndexOutOfBoundsException: 3</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477421#M8522</link>
      <description>&lt;P&gt;This is an explanation of the root cause, and not an answer/solution as such.  Upon ingesting over thirty different log files, Splunk has aggregated eight data lines from three different log files into a single result.  ResultsReaderCSV is barfing when it runs past the end of the first line of the multi-line string value.&lt;/P&gt;

&lt;P&gt;To validate the log file ingestion, I asked our Splunk admins to double-check their configuration for the specific attributes of this file, and they said they were as expected, and correct.  I'm guessing the original log file on that date had corrupted line endings on the first line of the event group, and that was throwing off the OpenCSV code that fetches the next line.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 11:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-JDK-ResultsReaderCsv-throws-java-lang/m-p/477421#M8522</guid>
      <dc:creator>fredthefrog</dc:creator>
      <dc:date>2020-02-26T11:00:08Z</dc:date>
    </item>
  </channel>
</rss>

