My Oracle Support Banner

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

Last updated on MARCH 18, 2019

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


In JDeveloper, 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 and VO, based on some DB schema.

In the View Object Editor on the view, performing the following steps reproduces the problem:
  1. double-click the VO 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: <ATTRIBUTE>
    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: <ATTRIBUTE> (same as before)
    Operator : Less than
    Operand  : Literal
    Value  : 10
  8. click OK to close the dialog;
    check that the View Criteria was created
  9. Select the View Criteria 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(
     at java.util.ArrayList.get(
     at oracle.jbo.dt.objects.JboViewCriteriaItemCompound.getItemList(
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateContainerChildren(
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateContainerChildren(
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.populateTree(
     at oracle.jbo.dt.ui.view.VOViewCriteriaTree.setViewCriteria(




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.