"Memory leaks and/or unexpected behaviour" Warnings In JDeveloper 11.1.1.4.0

(Doc ID 1288588.1)

Last updated on SEPTEMBER 19, 2017

Applies to:

Oracle JDeveloper - Version 11.1.1.4.0 and later
Information in this document applies to any platform.
***Checked for relevance on 17-Jan-2014***

Symptoms

Running a new ADF Faces application in JDeveloper 11.1.1.4, you see the following warning message displayed several times in the JDeveloper Log window:

<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST



When setting up the oracle.adf.share.ADFContext to FINEST as mentioned in this message (see <Note:1288557.1> - How To Set the Logging Level to FINEST),  you see the following error during the deployment:

[04:28:43 PM] Deploying Application...
<ADFContext> <getCurrent> DefaultContext is set as current
<ADFContext> <getApplicationName> Returns default Name
<ADFContext> <getApplicationName> Returns default Name
<ADFContext> <getApplicationName> Returns default Name
<ADFContext> <getCurrent> Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
<ADFContext> <getCurrent> getCurrent stack trace:
java.lang.Thread.getStackTrace(Thread.java:1436)
oracle.adf.share.ADFContext.getCurrent(ADFContext.java:1008)
oracle.adf.share.ADFContext.get(ADFContext.java:1158)
...

Changes

This reproduces for applications that were created in or migrated to JDeveloper 11.1.1.4.0, 11.1.1.5.0 or 11.1.1.6.0.
It didn't reproduce in previous releases.

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