Tree's leaf node as commandLink throws up error
NachiMar 15 2013 — edited Mar 20 2013Hello,
I have a tree component in a .jsff. This tree has its leaf node as a af:commandlink. The command link component has an actionListener and action methods configured. When a leaf node is clicked for the first time we are seeing an ADF Faces message that there is a NPE turning up. The messages in the logs are
WARNING: ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2
Throwable occurred: javax.el.ELException: java.lang.NullPointerException
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
..............
Caused by: java.lang.NullPointerException
at oracle.adf.model.binding.DCBindingContainer.callAfterRowNavigated(DCBindingContainer.java:2542)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:591)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:558)
............
Upon clicking the OK button, the navigation continues fine; indicating that the actionListener and the action methods are fine. I have confirmed this with diagnostic messages in the server logs(thanks ADF Logging!)
Subsequent clicks on the same or other leaf nodes do not throw this error.
Has anyone seen this kind of behaviour or could anyone help me understand what is going wrong.
Thanks in advance.
Nachi