Cannot Define More Than One View Criteria For The Same Attribute. (Doc ID 1199351.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version: 11.1.1.3.0 and later   [Release: No Release Description and later ]
Information in this document applies to any platform.

Symptoms

In JDeveloper 11.1.1.3.0, the JDeveloper IDE crashes when adding, within a View Criteria,
the same attribute more than once.

The problem reproduces as the following:


Create an ADF BC project including EO Employees and VO EmployeesView, based on HR Schema.

In the View Object Editor on EmployeesView, performing the following steps reproduces the problem:

  1. double-click EmployeesView to open the editor
  2. click "Query"
  3. click "+" on the right of "View Criteria"
  4. in the "Create View Criteria" dialog, click "Add Item"
  5. enter/select the following values:
    Attribute: JobId
    Operator : Greater than
    Operand  : Literal
    Value  : 1
  6. select the "Group()" node and click "Add Item" again
  7. enter/select the following values:
    Conjunction: AND
    Attribute: JobId
    Operator : Less than
    Operand  : Literal
    Value  : 10
  8. click OK to close the dialog;
    check that the View Criteria was created ("EmployeesViewCriteria" if you didn't change its name).
  9. Select "EmployeesViewCriteria" and click the Edit icon (pencil), or double-click it;
    nothing happens.

When you run JDeveloper from the Console (jdev.exe), it shows the following IndexOutOfBoundsException and stack trace:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
     at java.util.ArrayList.RangeCheck(ArrayList.java:547)
     at java.util.ArrayList.get(ArrayList.java:322)
     at oracle.jbo.dt.objects.JboViewCriteriaItemCompound.getItemList(JboViewCriteriaItemCompound.java:130)
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateContainerChildren(VOViewCriteriaTree.java:142)
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateContainerChildren(VOViewCriteriaTree.java:112)
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateTree(VOViewCriteriaTree.java:87)
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.setViewCriteria(VOViewCriteriaTree.java:62)
...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms