"Error creating renderer: java.lang.ArrayIndexOutOfBoundsException: 48"

raa
raa New Altair Community Member
edited November 5 in Community Q&A
Does anyone know how to solve this error Error
"creating renderer: java.lang.ArrayIndexOutOfBoundsException: 48".

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Can you please post the process that resulted in this error?

    Best regards,
    Marius
  • raa
    raa New Altair Community Member
    Hi ,

    Thanks you for your reply. I was reading documents from files. In the process I have 54 directories.

    Regards,
    raa
  • MariusHelf
    MariusHelf New Altair Community Member
    To investigate the issue I need the exact process you used. Please attach to your post as described here: http://rapid-i.com/rapidforum/index.php/topic,4782.0.html

    Furthermore, if the dialog box displaying the error message has a button to submit a bug, please click that button, then choose "show bug report" and copy the text from there to you next post.

    Thank you!

    Best regards,
    Marius
  • raa
    raa New Altair Community Member
    Hi,

    The process called "Process Documents".
    here is the code that I used

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.3.008">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
        <parameter key="parallelize_main_process" value="true"/>
        <process expanded="true">
          <operator activated="true" class="text:process_document_from_file" compatibility="5.3.000" expanded="true" height="76" name="Process Documents from Files (3)" width="90" x="45" y="75">
            <list key="text_directories">
              <parameter key="C11" value="C:\Users\Ramy\Desktop\RCVLEV2\C11"/>
              <parameter key="C12" value="C:\Users\Ramy\Desktop\RCVLEV2\C12"/>
              <parameter key="C13" value="C:\Users\Ramy\Desktop\RCVLEV2\C13"/>
              <parameter key="C14" value="C:\Users\Ramy\Desktop\RCVLEV2\C14"/>
              <parameter key="C16" value="C:\Users\Ramy\Desktop\RCVLEV2\C16"/>
              <parameter key="C17" value="C:\Users\Ramy\Desktop\RCVLEV2\C17"/>
              <parameter key="C21" value="C:\Users\Ramy\Desktop\RCVLEV2\C21"/>
              <parameter key="C22" value="C:\Users\Ramy\Desktop\RCVLEV2\C22"/>
              <parameter key="C23" value="C:\Users\Ramy\Desktop\RCVLEV2\C23"/>
              <parameter key="C24" value="C:\Users\Ramy\Desktop\RCVLEV2\C24"/>
              <parameter key="C32" value="C:\Users\Ramy\Desktop\RCVLEV2\C32"/>
              <parameter key="C33" value="C:\Users\Ramy\Desktop\RCVLEV2\C33"/>
              <parameter key="C34" value="C:\Users\Ramy\Desktop\RCVLEV2\C34"/>
              <parameter key="C42" value="C:\Users\Ramy\Desktop\RCVLEV2\C42"/>
              <parameter key="E11" value="C:\Users\Ramy\Desktop\RCVLEV2\E11"/>
              <parameter key="E61" value="C:\Users\Ramy\Desktop\RCVLEV2\E61"/>
              <parameter key="E71" value="C:\Users\Ramy\Desktop\RCVLEV2\E71"/>
              <parameter key="C15" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C15"/>
              <parameter key="C17" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C17"/>
              <parameter key="C18" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C18"/>
              <parameter key="C31" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C31"/>
              <parameter key="C33" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C33"/>
              <parameter key="C41" value="C:\Users\Ramy\Desktop\RCVLEV2\F_C41"/>
              <parameter key="E12" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E12"/>
              <parameter key="E13" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E13"/>
              <parameter key="E14" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E14"/>
              <parameter key="E21" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E21"/>
              <parameter key="E31" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E31"/>
              <parameter key="E41" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E41"/>
              <parameter key="E51" value="C:\Users\Ramy\Desktop\RCVLEV2\F_E51"/>
              <parameter key="G15" value="C:\Users\Ramy\Desktop\RCVLEV2\F_G15"/>
              <parameter key="M13" value="C:\Users\Ramy\Desktop\RCVLEV2\F_M13"/>
              <parameter key="M14" value="C:\Users\Ramy\Desktop\RCVLEV2\F_M14"/>
              <parameter key="GCRIM" value="C:\Users\Ramy\Desktop\RCVLEV2\GCRIM"/>
              <parameter key="GDEF" value="C:\Users\Ramy\Desktop\RCVLEV2\GDEF"/>
              <parameter key="GDIP" value="C:\Users\Ramy\Desktop\RCVLEV2\GDIP"/>
              <parameter key="GDIS" value="C:\Users\Ramy\Desktop\RCVLEV2\GDIS"/>
              <parameter key="GENT" value="C:\Users\Ramy\Desktop\RCVLEV2\GENT"/>
              <parameter key="GENV" value="C:\Users\Ramy\Desktop\RCVLEV2\GENV"/>
              <parameter key="GFAS" value="C:\Users\Ramy\Desktop\RCVLEV2\GFAS"/>
              <parameter key="GHEA" value="C:\Users\Ramy\Desktop\RCVLEV2\GHEA"/>
              <parameter key="GJOB" value="C:\Users\Ramy\Desktop\RCVLEV2\GJOB"/>
              <parameter key="GODD" value="C:\Users\Ramy\Desktop\RCVLEV2\GODD"/>
              <parameter key="GPO" value="C:\Users\Ramy\Desktop\RCVLEV2\GPO"/>
              <parameter key="GPRO" value="C:\Users\Ramy\Desktop\RCVLEV2\GPRO"/>
              <parameter key="GREL" value="C:\Users\Ramy\Desktop\RCVLEV2\GREL"/>
              <parameter key="GSPO" value="C:\Users\Ramy\Desktop\RCVLEV2\GSPO"/>
              <parameter key="GTOUR" value="C:\Users\Ramy\Desktop\RCVLEV2\GTOUR"/>
              <parameter key="GVIO" value="C:\Users\Ramy\Desktop\RCVLEV2\GVIO"/>
              <parameter key="GVOTE" value="C:\Users\Ramy\Desktop\RCVLEV2\GVOTE"/>
            </list>
            <parameter key="vector_creation" value="Term Frequency"/>
            <process expanded="true">
              <operator activated="true" class="text:tokenize" compatibility="5.3.000" expanded="true" height="60" name="Tokenize (3)" width="90" x="45" y="30"/>
              <operator activated="true" class="text:transform_cases" compatibility="5.3.000" expanded="true" height="60" name="Transform Cases (3)" width="90" x="180" y="30"/>
              <operator activated="true" class="text:filter_stopwords_dictionary" compatibility="5.3.000" expanded="true" height="76" name="Filter Stopwords (3)" width="90" x="315" y="30">
                <parameter key="file" value="C:\Users\Ramy\Desktop\stopwords.txt"/>
              </operator>
              <connect from_port="document" to_op="Tokenize (3)" to_port="document"/>
              <connect from_op="Tokenize (3)" from_port="document" to_op="Transform Cases (3)" to_port="document"/>
              <connect from_op="Transform Cases (3)" from_port="document" to_op="Filter Stopwords (3)" to_port="document"/>
              <connect from_op="Filter Stopwords (3)" from_port="document" to_port="document 1"/>
              <portSpacing port="source_document" spacing="0"/>
              <portSpacing port="sink_document 1" spacing="0"/>
              <portSpacing port="sink_document 2" spacing="0"/>
            </process>
          </operator>
          <connect from_op="Process Documents from Files (3)" from_port="word list" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
    \

    the error will show in the log window as follow "Error creating renderer: java.lang.ArrayIndexOutOfBoundsException: 48"

    Thanks and regards,
    Raa
  • MariusHelf
    MariusHelf New Altair Community Member
    Raa,

    you have some duplicate classes in Process Documents, at least C17 and C33. Remove the respective lines, or rename the classes, and the process should run fine. I admit that the error message should be improved, and I forwarded this issue to our developers.

    Best regards,
    Marius
  • shravan
    shravan New Altair Community Member

    Regarding Text Mining Process
    when I am giving input text file which consists of 9000 text documents (5 positive groups,4 negative groups ) each group consists of 1000 documents for term matrix
    it process up to 2000 documents only and shows the following error.

    WARNING: Error creating renderer:
    java.lang.ArrayIndexOutOfBoundsException: 2

    please give me the suggestion to overcome this.


    Regard's
    Shravan