Forum Stats

  • 3,836,787 Users
  • 2,262,189 Discussions
  • 7,900,109 Comments

Discussions

Lov criterion randomly raises an ADF faces error

ArisDs
ArisDs Member Posts: 11 Red Ribbon
edited Jun 21, 2022 11:53AM in JDeveloper and ADF

Hi All,

We have an application developed with 11.1.1.7 Jdev version, which was migrated to the latest 12.2.1.4 version.

Inside the application we had some pages where an af:query component and its according tables are displayed. At the view criteria there are some criterion displayed as LOVs and one of them is mandatory.

Customer reported an issue where when a user tries to simply enter a value to the mandatory criterion with the lov, without any other action, he get an adf faces error. This issue is not consistent and it can randomly be raised once every ten tries let's say.

A sample of the logs that we get is the following. Do you have any suggestions ?

Thanks,

Aris


<oracle.adf.view> <RichExceptionHandler> <_logUnhandledException> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6>

java.lang.NullPointerException

   at oracle.jbo.server.ViewObjectImpl.clearRowSetDataByRowFilterKeyInternal(ViewObjectImpl.java:10756)

   at oracle.adf.model.bean.DCCriteriaBaseVOImpl.clearViewAccessorResultsByRowFilterKey(DCCriteriaBaseVOImpl.java:132)

   at oracle.adf.model.bean.DCCriteriaBaseVOImpl.clearViewAccessorResultsByRowFilterKey(DCCriteriaBaseVOImpl.java:134)

   at oracle.adf.model.bean.DCCriteriaBaseVOImpl.clearViewAccessorResultsByRowFilterKey(DCCriteriaBaseVOImpl.java:134)

   at oracle.adf.model.bean.DCCriteriaRowImpl.clearViewAccessorResultsByRowFilterKey(DCCriteriaRowImpl.java:194)

   at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.rebuildVCTree(JUSearchBindingCustomizer.java:2944)

   at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion._loadCriterionList(FacesCtrlSearchBinding.java:5146)

   at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion.getCriterionList(FacesCtrlSearchBinding.java:5021)

   at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer._renderAdditionalContent(QueryRenderer.java:1471)

   at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer.renderHeaderRow(QueryRenderer.java:705)

   at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:384)

   at oracle.adfinternal.view.faces.renderkit.rich.QueryRenderer.encodeAll(QueryRenderer.java:650)

   at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1963)

   at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:547)

   at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1256)

   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

   at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:669)

   at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:686)

   at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3763)

   at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderChildrenAfterHelpAndInfo(PanelHeaderRenderer.java:818)

   at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer._renderContentCell(PanelHeaderRenderer.java:1421)

   at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.renderContentRow(PanelHeaderRenderer.java:727)

   at oracle.adfinternal.view.faces.renderkit.rich.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:396)

   at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1963)

   at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:547)

   at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1256)

   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

   at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:669)

Comments

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,551 Red Diamond

    Hm, nothing in the stack trace rings a bell. Have you checked the remaining part of the stack trace (the cause part) too?

    Have you tried to create a test case directly in 12.2.1.4 (don't migrate, but build a new page!)?

    If you don't see this behavior in the test case I guess there is some configuration that has been changed. You can compare the old page against the test case or simply use the new page in the existing app.


    Timo

  • dvohra21
    dvohra21 Member Posts: 14,612 Gold Crown

    Does the error message include a Caused By section; if yes please post.

  • ArisDs
    ArisDs Member Posts: 11 Red Ribbon
    edited Jun 22, 2022 6:22AM

    Hi,

    This is the full logs that are generated. Note that I have applied also locally the latest available ADF patch Patch 33697227. But the issue is still randomly raised with or without the patch.

    Thanks