StackOverflowError in ADFContext.getCurrentInternal - FacesExpressionEvaluator (Doc ID 1278604.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle JDeveloper - Version: 11.1.1.0.0 to 11.1.1.3.0
Information in this document applies to any platform.

Symptoms

An ADF Faces application sometimes crashes your WebLogic Server with a StackOverflowError
...
Caused by: java.lang.StackOverflowError
at oracle.adf.share.ADFContext.getCurrentInternal(ADFContext.java:795)
at oracle.adf.share.ADFContext.getCurrent(ADFContext.java:775)
at oracle.adf.share.http.HttpSessionScopeAdapter.getSession(HttpSessionScopeAdapter.java:316)
at oracle.adf.share.http.HttpSessionScopeAdapter.containsKey(HttpSessionScopeAdapter.java:198)
at oracle.adf.share.el.ADFContextVariableResolverImpl.resolveVariable(ADFContextVariableResolverImpl.java:111)
...
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluateInternal(OracleExpressionEvaluatorImpl.java:78)
at oracle.adf.share.el.OracleExpressionEvaluatorImpl.evaluate(OracleExpressionEvaluatorImpl.java:48)
at oracle.adfinternal.view.faces.model.FacesExpressionEvaluator._evaluate(FacesExpressionEvaluator.java:79)
at oracle.adfinternal.view.faces.model.FacesExpressionEvaluator.evaluate(FacesExpressionEvaluator.java:36)
at oracle.adf.model.binding.DCUtil.elEvaluate(DCUtil.java:796)
...


The Stack Overflow seems to be caused by an infinite loop in binding layer, when refreshing the page :
...
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.hasRefreshParametersChanged(JUMethodIteratorDef.java:541)
at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:379)
at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:55)
at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:274)
at oracle.adf.model.binding.DCExecutableBinding.isRefreshable(DCExecutableBinding.java:244)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:345)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1592)
at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.hasRefreshParametersChanged(JUMethodIteratorDef.java:553)
at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:379)
at oracle.jbo.uicli.binding.JUMethodIteratorDef.isRefreshable(JUMethodIteratorDef.java:55)
at oracle.adf.model.binding.DCExecutableBindingDef.isRefreshable(DCExecutableBindingDef.java:274)
at oracle.adf.model.binding.DCExecutableBinding.isRefreshable(DCExecutableBinding.java:244)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:345)
at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1592)
<same lines repeated > 10.000 times>
...


This also reproduces in the Integrated WebLogic Server.
However, you don't know the exact steps needed to reproduce the issue.
After the crash, you need to restart your WebLogic Server.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms