Cannot Attach OWSM Policies to SOA 12.1.3 REST Endpoint Giving "ADF_FACES-30200" Error (Doc ID 2102950.1)

Last updated on OCTOBER 25, 2016

Applies to:

Oracle Web Services Manager - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

SOA Suite 12.1.3 Bundle Patch 3 or Bundle Patch 4

Symptoms with SOA 12.1.3 Bundle Patch 4

When trying to attach an OWSM policy to a SOA REST endpoint via Fusion Middleware Control, an error pops up:

ADF_FACES-30200: For more information, please see the server's error log for an entry beginning
with:The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.

The error pops up before the list of policies to select from is displayed.

In Admin Server's diagnostic log:

[2015-12-04T12:40:23.075+00:00] [AdminServer] [ERROR] [] [oracle.adfinternal.view.faces.context.RichExceptionHandler] [tid: [ACTIVE].ExecuteThread: '22' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 102385a1-edf7-45f6-a05d-397177dd9746-00003cb4,0] [APP: em] [DSID: 0000L5gyU3_Fw000jzwkno1MOCAb000009] ADF_FACES-30200:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.[[
oracle.adf.controller.activity.ActivityLogicException: ADFC-06015: An exception occurred when invoking a task flow initializer.
  at oracle.adfinternal.controller.util.Utils.createAndLogActivityLogicException(Utils.java:234)
  at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeInitializer(TaskFlowCallActivityLogic.java:713)
  at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.enterTaskFlow(TaskFlowCallActivityLogic.java:628)
  at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeLocalTaskFlow(TaskFlowCallActivityLogic.java:329)
  at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeTaskFlow(TaskFlowCallActivityLogic.java:232)
  at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeDialogTaskFlow(ControlFlowEngine.java:308)
  at oracle.adfinternal.controller.application.DialogRequestHandler.invokeDialogTaskFlow(DialogRequestHandler.java:90)
  at oracle.adfinternal.controller.application.DialogRequestHandler.doCreateView(DialogRequestHandler.java:59)
  at oracle.adfinternal.controller.application.BaseRequestHandlerImpl.createView(BaseRequestHandlerImpl.java:59)
  at org.apache.myfaces.trinidadinternal.application.InternalViewHandlingStrategy.createView(InternalViewHandlingStrategy.java:48)
  at com.sun.faces.application.view.MultiViewHandler.createView(MultiViewHandler.java:160)
  at javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:170)
  at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:108)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:847)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:397)
  at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:117)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:77)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
  at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
  at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
  at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.help.web.rich.OHWFilter.doFilter(OHWFilter.java:197)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:697)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:50)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:554)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.adfinternal.view.faces.caching.filter.AdfFacesCachingFilterImpl.doFilter(AdfFacesCachingFilterImpl.java:136)
  at oracle.adf.view.rich.webapp.AdfFacesCachingFilter.doFilter(AdfFacesCachingFilter.java:66)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.sysman.core.app.exception.EMRuntimeExceptionFilter.doFilter(EMRuntimeExceptionFilter.java:81)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
  at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
  at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
  at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
  at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
  at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
  at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
  at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Caused by: javax.el.ELException: oracle.sysman.emSDK.app.exception.EMSystemException
  at com.sun.el.parser.AstValue.invoke(AstValue.java:258)
  at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
  at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:181)
  at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeInitializer(TaskFlowCallActivityLogic.java:709)
  ... 74 more
Caused by: oracle.sysman.emSDK.app.exception.EMSystemException
  at oracle.sysman.emas.model.policyAttachment.PolicyAttachmentModel.initialAvailablePolicy(PolicyAttachmentModel.java:669)
  at oracle.sysman.emas.model.policyAttachment.PolicyAttachmentModel.initAttachedAndAvailableList(PolicyAttachmentModel.java:268)
  at oracle.sysman.emas.model.policyAttachment.PolicyAttachmentModel.initSubjectAndPolicies(PolicyAttachmentModel.java:1394)
  at oracle.sysman.emas.model.policyAttachment.PolicyAttachmentModel.concreteInitializeData(PolicyAttachmentModel.java:253)
  at oracle.sysman.emas.model.wsm.AbstractWsmModel.initializeData(AbstractWsmModel.java:65)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
  ... 77 more
[2015-12-04T12:40:23.356+00:00] [AdminServer] [NOTIFICATION] [] [oracle.as.ess] [tid: oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl - Incident Dump Executor (created: Fri Dec 04 12:40:23 GMT-00:00 2015)] [userId: weblogic]
[ecid: 102385a1-edf7-45f6-a05d-397177dd9746-00003cba,0] WA Noun does not exist for WorkAssignment://oracle/as/ess/essapp/internal/defaultWA

Symptoms with SOA 12.1.3 Bundle Patch 3

 

When trying to attach an OWSM policy to a SOA REST endpoint via Fusion Middleware Control,
an error pops up:

java.lang.NullPointerException #(emas_view_wsmmt_port_attachPolicyforSOA):
java.lang.NullPointerException

The error pops up before the list of policies to select from is displayed.

In sysman/log/emoms.log:

2015-12-23T12:04:58.651+00:00] [AdminServer] [WARNING] []
[oracle.sysman.emSDK.view.errPopup.ErrorPopupUtil] [tid:
ACTIVE].ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)']
[userId: weblogic] [ecid:3ec9695c-2a7d-4cb3-8bd4-bf6402b6fdca-000001d1,0] [APP: em]
java.lang.NullPointerException[[
javax.faces.FacesException: #{emas_view_wsmmt_port.attachPolicyForSoa}:java.lang.NullPointerException
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:168)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(Co
at org.apache.myfaces.trinidad.component.UIXComponent.broadcastInContext(UIXComponent.java:364)
at org.apache.myfaces.trinidad.component.WrapperEvent.broadcastWrappedEvent(WrapperEvent.java:82)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:111)
[...]
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
... 80 more
Caused by: java.lang.NullPointerException
at oracle.sysman.emas.view.wsmmt.fmw.PortView.attachPolicyForSoa(PortView.java:2310)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:254)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBind

 

Changes

The problem only shows up when try to attach OWSM policies to SOA REST endpoints. Attaching OWSM policies to other SOA endpoints via FMW Control works.

The problem does not show up with SOA 12.1.3 BP 2 and earlier.
The problem does not show up with SOA 12.1.3 BP 4 + patch 18772533 nor with SOA 12.1.3 BP 4 + patch 18772533

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