My Oracle Support Banner

WLS12.2.1.4 Expression Language "weblogic.servlet.jsp.ELHelper.evaluate" Returns null (Doc ID 2846228.1)

Last updated on FEBRUARY 09, 2024

Applies to:

Oracle WebLogic Server - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

After upgrade to WLS 12.2.1.4,  Expression Language "weblogic.servlet.jsp.ELHelper.evaluate" Returns null

JSP code that call when trying to execute something as below the expression ${variableNoDefinida} for undeclared variable takes null value in WebLogic Server 12.2.1.4, while in WebLogic Server 10.3.6 it assign a "false" Boolean value. 
  java.lang.Boolean boolVar = (java.lang.Boolean) weblogic.servlet.jsp.ELHelper.evaluate(“${notDefinedVariable}”, java.lang.Boolean.class, pageContext, null);


In the library, the behavior change it's not exclusive of Boolean objects but all but strings.
WebLogic ELHelper calls the ELSupport.coerceToType method (in org.glassfish.javax.el) that shows different behavior between versions 10.3.6 and 12.2.1.4


Addition of system property "javax.el.bc2.2=true" to JVM start-up arguments also do not resolve or change behavior reported.

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.