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 11.1.1.3.0 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 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(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)
...

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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