2 Replies Latest reply: Dec 2, 2013 7:45 AM by Shankar RSS

    Authentication in ADF App using BAM Data Control

    910707
      Hi
      I' having problems with an ADF application using Oracle BAM Data Control. Whe I run the project I've the following error:

      According to Oracle Fusion Middleware Error Messages Reference seems to be an issues with the authentication against the JMS Server and the rigth credentials.

      oracle.bam.common.messaging.api.MessageFrameworkException: BAM-00562: Authentication Failure
           at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.authenticate(MessageConsumerRegistryFactory.java:210)
           at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.getInstance(MessageConsumerRegistryFactory.java:171)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:176)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.<init>(AbstractChangeListListener.java:88)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.SimpleChangeListListener.<init>(SimpleChangeListListener.java:75)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.action.MessagingAction.register(MessagingAction.java:62)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.internalHandle(StateMachine.java:213)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.handle(StateMachine.java:151)
           at oracle.tip.tools.ide.bam.dc.rt.provider.BAMDataProvider.startEvents(BAMDataProvider.java:303)
           at oracle.tip.tools.ide.bam.dc.rt.BAMDataControl.startEvents(BAMDataControl.java:354)
           at oracle.adf.model.bean.DCBeanDataControl.startEvents(DCBeanDataControl.java:2603)
           at oracle.tip.tools.ide.bam.dc.dt.adapter.BAMAdapterDCService.startEvents(BAMAdapterDCService.java:211)
           at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3927)
           at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3920)
           at oracle.jbo.uicli.binding.JUCtrlValueBinding.startEvents(JUCtrlValueBinding.java:3732)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.startEvents(FacesCtrlHierNodeBinding.java:141)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._addActiveDataListener(FacesCtrlHierBinding.java:932)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.startActiveData(FacesCtrlHierBinding.java:824)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startModel(PageDataUpdateManager.java:976)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startComponent(PageDataUpdateManager.java:939)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._startActiveData(PageDataUpdateManager.java:483)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.startActiveData(PageDataUpdateManager.java:458)
           at oracle.adfinternal.view.faces.context.RichPhaseListener$StartStopADSContextCallback.invokeContextCallback(RichPhaseListener.java:890)
           at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1041)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
           at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
           at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
           at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
           at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:461)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:444)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
           at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
           at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      <StateMachine> <internalHandle> null
      java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.internalHandle(StateMachine.java:213)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.StateMachine.handle(StateMachine.java:151)
           at oracle.tip.tools.ide.bam.dc.rt.provider.BAMDataProvider.startEvents(BAMDataProvider.java:303)
           at oracle.tip.tools.ide.bam.dc.rt.BAMDataControl.startEvents(BAMDataControl.java:354)
           at oracle.adf.model.bean.DCBeanDataControl.startEvents(DCBeanDataControl.java:2603)
           at oracle.tip.tools.ide.bam.dc.dt.adapter.BAMAdapterDCService.startEvents(BAMAdapterDCService.java:211)
           at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3927)
           at oracle.adf.model.binding.DCBindingContainer.startDCEvents(DCBindingContainer.java:3920)
           at oracle.jbo.uicli.binding.JUCtrlValueBinding.startEvents(JUCtrlValueBinding.java:3732)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.startEvents(FacesCtrlHierNodeBinding.java:141)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel._addActiveDataListener(FacesCtrlHierBinding.java:932)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.startActiveData(FacesCtrlHierBinding.java:824)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startModel(PageDataUpdateManager.java:976)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager$ActiveComponentRecord.startComponent(PageDataUpdateManager.java:939)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._startActiveData(PageDataUpdateManager.java:483)
           at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.startActiveData(PageDataUpdateManager.java:458)
           at oracle.adfinternal.view.faces.context.RichPhaseListener$StartStopADSContextCallback.invokeContextCallback(RichPhaseListener.java:890)
           at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1041)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1380)
           at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:555)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1330)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1424)
           at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:168)
           at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
           at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
           at oracle.adfinternal.view.faces.context.RichPhaseListener.handleStartAndStopActiveData(RichPhaseListener.java:461)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:444)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
           at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
           at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.bam.common.messaging.api.MessageFrameworkException, msg=BAM-00562: Authentication Failure
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:186)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.<init>(AbstractChangeListListener.java:88)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.SimpleChangeListListener.<init>(SimpleChangeListListener.java:75)
           at oracle.tip.tools.ide.bam.dc.rt.fsm.action.MessagingAction.register(MessagingAction.java:62)
           ... 76 more
      Caused by: oracle.bam.common.messaging.api.MessageFrameworkException: BAM-00562: Authentication Failure
           at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.authenticate(MessageConsumerRegistryFactory.java:210)
           at oracle.bam.common.messaging.api.MessageConsumerRegistryFactory.getInstance(MessageConsumerRegistryFactory.java:171)
           at oracle.tip.tools.ide.bam.dc.rt.provider.activedata.AbstractChangeListListener.registerAsMessageConsumer(AbstractChangeListListener.java:176)

      Can someone please help to resolve that error
      Thanks a lot
      Damian

      Edited by: 907704 on Jan 12, 2012 8:14 AM