Recursive JSP Tags make the server runs into an infinite loop causing a StackOverflowError (Doc ID 1506265.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 9.2.4 to 10.3.6
Information in this document applies to any platform.

Symptoms

Infinite loop during JSP compilation. This causes StackOverflowError and eventually server crash (or Server stuck because HotSpot doesn't throw the exception).
For both issues, an StackOverFLow will happen, but it will been seen in the stacktrace only when it is used with JRockit, otherwise the browser will keep waiting for the response from the server and WLS will be unresponsive.

There are two different scenarios:

1. When a tag call itself (bug 13101234)
2. and when a tag calls a child tag and this calls its parent (bug 13323399)

1. When a tag refers to itself; (self-referencing) the server runs into an
infinite loop during JSP compilation. This causes StackOverflowError and eventually server crash.



Changes

If JVM HotSpot is been used, then probably no feedback will be sent to WLS log.To receive the StackOverFlow then change to JRockit and following options:

set JAVA_OPTIONS=-XX:+CheckStacks -XnoOpt -Xverbose:exceptions  -Xverboselog:jr.out %JAVA_OPTIONS%

 

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