02 November 2010

TROUBLESHOOTING: : Name criteriaItemsForSearch not found in the given object: null.

Error

oracle.jbo.expr.JIEvalException: JBO-25077: Name criteriaItemsForSearch not found in the given object: null.
            at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:246)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: oracle.jbo.JboException: Error getting property:criteriaItemsForSearch on bean:null of type:
            at oracle.jbo.common.JboBeanUtils._adapt(JboBeanUtils.java:196)
            at oracle.jbo.common.JboBeanUtils.getProperty(JboBeanUtils.java:121)
            at oracle.jbo.common.JboBeanUtils.getPropertyInMapOrBean(JboBeanUtils.java:235)
            ... 202 more
Caused by: java.lang.NullPointerException
          ...

 Resolution
Check to see if you have a row in your View Criteria

eg. In your BC you might using         
// ViewCriteriaRow r = (ViewCriteriaRow)vc.getCurrentRow(); //this will break it!!!!!!!!!!
instead of:

ViewCriteriaRow r = (ViewCriteriaRow)vc.first();  //this is the correct approach

Notes:


oracle.jbo.ViewCriteriaRow
public static final java.lang.String
"conjunction"
public static final java.lang.String
"criteriaItemsForSearch"
public static final java.lang.String
"ViewCriteriaName"
public static final java.lang.String
"nestedViewCriteria"
public static final java.lang.String
"properties"
public static final java.lang.String
"viewObjectBindVars"


No comments:

Post a Comment

You might also like:

Related Posts Plugin for WordPress, Blogger...