Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AdfcContext class cast exception when doing hot-deploy from 12C

user607295Oct 23 2016 — edited Oct 25 2016

Hi. I am trying to test out issues that I am having with hot-deploy in 12C.

I am running JDev 12.2.1.1.0. My app consists of a single page containing 2 inputText fields that are bound to a backingBean. I have been changing the values in the constructor of the backing bean rebuilding the ViewController project and refreshing the browser to pull in the changes.

pastedImage_3.png

pastedImage_4.png

This causes the following error message and exception to be thrown in the browser.

pastedImage_0.png

This is the exception that is being displayed in the console.

<Oct 23, 2016, 12:13:38,338 PM MDT> <Warning> <HTTP> <BEA-101400> <The value of servlet-context attribute com.sun.faces.compnent.COMPONENT_DESCRIPTORS_MAP can not be serialized and will be removed when reloading the application, the class of the value object is java.util.concurrent.ConcurrentHashMap.>

<oracle.adf.controller> <ControllerState> <initializeRequest> <ADFc: Deserialization of session state detected but ADF scope HA support is not enabled. Please enable ADF scope HA support in the adf-config.xml file to ensure correct functioning of your application.>

<Oct 23, 2016, 12:13:52,485 PM MDT> <Warning> <HTTP> <BEA-101400> <The value of servlet-context attribute oracle.adfinternal.view.faces.webapp.rich.RichWindowManagerFactory can not be serialized and will be removed when reloading the application, the class of the value object is java.util.ArrayList.>

<oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl> <DiagnosticsDataExtractorImpl> <createADRIncident> <incident 29 created with problem key "ADFC-00032 [ADFc]">

<oracle.adf.view> <RichExceptionHandler> <_logUnhandledException> <ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1>

java.lang.ClassCastException: oracle.adfinternal.controller.state.AdfcContext cannot be cast to oracle.adfinternal.controller.state.AdfcContext

at oracle.adfinternal.controller.state.AdfcContext.getCurrentInstance(AdfcContext.java:266)

at oracle.adfinternal.controller.state.AdfcContext.getCurrentInstance(AdfcContext.java:253)

at oracle.adfinternal.controller.application.SyncNavigationStateListener.afterPhase(SyncNavigationStateListener.java:60)

at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.afterPhase(ADFLifecycleImpl.java:539)

at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchAfterEvent(LifecycleImpl.java:124)

at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchAfterPagePhaseEvent(LifecycleImpl.java:172)

at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchAfterPagePhaseEvent(ADFPhaseListener.java:302)

at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:88)

at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeAfterPhaseLogic(LifecycleImpl.java:459)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:381)

At this stage my only option is to stop the application and re-run it which of course is slow and defeats the purpose of the hot-deploy.

Does anyone have any ideas as to what might be going on.

Thanks - Steve.

This post has been answered by Shemeer on Oct 24 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2016
Added on Oct 23 2016
3 comments
574 views