[ 
https://issues.apache.org/jira/browse/SOLR-7462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14511414#comment-14511414
 ] 

Erick Erickson commented on SOLR-7462:
--------------------------------------

Scott:

There's some fairly detailed instructions here: 
http://wiki.apache.org/solr/HowToContribute. It's actually surprisingly easy to 
build Solr from a checkout. You need subversion command-line (there are Git 
repos too) and ant.

The first build will take a while as a bunch of stuff has to be brought in by 
ivy.

Note that the "one true build system" uses subversion and ant. The git and 
maven variants should work too but are there for convenience.

> ArrayIndexOutOfBoundsException in RecordingJSONParser.java
> ----------------------------------------------------------
>
>                 Key: SOLR-7462
>                 URL: https://issues.apache.org/jira/browse/SOLR-7462
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.1
>            Reporter: Scott Dawson
>
> With Solr 5.1 I'm getting an occasional fatal exception during indexing. It's 
> an ArrayIndexOutOfBoundsException at line 61 of 
> org/apache/solr/util/RecordingJSONParser.java. Looking at the code (see 
> below), it seems obvious that the if-statement at line 60 should use a 
> greater-than sign instead of greater-than-or-equals.
>   @Override
>   public CharArr getStringChars() throws IOException {
>     CharArr chars = super.getStringChars();
>     recordStr(chars.toString());
>     position = getPosition();
>     // if reading a String , the getStringChars do not return the closing 
> single quote or double quote
>     //so, try to capture that
>     if(chars.getArray().length >=chars.getStart()+chars.size()) {     // line 
> 60
>       char next = chars.getArray()[chars.getStart() + chars.size()]; // line 
> 61
>       if(next =='"' || next == '\'') {
>         recordChar(next);
>       }
>     }
>     return chars;
>   }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to