Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1277

Got ArrayIndexOutOfBoundsException while try to call Row.getValue(columnName)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.5.1.GA, 2.6.0.Final
    • 2.5.0.Final, 2.6.0.Beta2
    • Query
    • None
    • windows 7 64bit
      java 1.6.0_22

      I'm trying to do is to query some properties of parent and child node together, below is the JCR_SQL2:

      SELECT parent.title, child.age 
      FROM [nt:unstructured] as parent
      FULL OUTER JOIN [nt:unstructured] as child ON ISCHILDNODE(child, parent)
      WHERE child.age =10
      

      the QueryResult.getColumnName() returns ["title", "age"], but I got the follow exception while I try to call Row.getValue("title") method

      java.lang.ArrayIndexOutOfBoundsException: 14
                at org.modeshape.jcr.query.JcrQueryResult$MultiSelectorQueryResultRow.getValue(JcrQueryResult.java:651)
                at javax.jcr.query.Row$getValue.call(Unknown Source)
      

              rhauch Randall Hauch (Inactive)
              flyisland_jira Island Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: