WebCenter Portal Blogs Portlet Records No Analytics Events When Accessed Through Pagelet-Producer

(Doc ID 1465108.1)

Last updated on NOVEMBER 19, 2016

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.0 to 11.1.1.6.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

A WebCenter Portal blogs portlet in a services-producer application sends usage events to the Analytics Collector when run it directly as a servlet and then click on a specific blog post.
However, if proxy this portlet through pagelet-producer, the services-producer application does not send the usage event to the Analytics Collector and reports the error:

"Analytics unable to complete event. java.lang.ClassCastException: com.bea.portlet.container.ResourceRequestImpl cannot be cast to javax.servlet.ServletRequest"

The WC_Portlet_Diagnostics_log shows:

[2012-05-02T11:51:33.215-07:00] [WC_Portlet] [NOTIFICATION] [] [oracle.webcenter.doclib.internal.model.ActivityInstrumentation] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 3fbe32f12c30d401:1ed45936:1370e499e63:-8000-0000000000002456,0:5:1] [WEBSERVICE_PORT.name: WSRP_v2_Markup_Service] [APP: services-producer#V2.0] [J2EE_MODULE.name: services-producer] [WEBSERVICE.name: WSRP_v2_Service] [J2EE_APP.name: services-producer_V2.0] Analytics unable to complete event.[[
java.lang.ClassCastException: com.bea.portlet.container.ResourceRequestImpl
    at oracle.webcenter.framework.service.AnalyticsUtil.populateRequestInfoFromAdfContext(AnalyticsUtil.java:256)
    at oracle.webcenter.framework.service.AnalyticsUtil.sendResourceViewEvent(AnalyticsUtil.java:213)
    at oracle.webcenter.doclib.internal.model.ActivityInstrumentation.sendAnalyticsEvent(ActivityInstrumentation.java:365)
    at oracle.webcenter.doclib.internal.model.ActivityInstrumentation.sendDocumentViewEvent(ActivityInstrumentation.java:303)
    at oracle.webcenter.doclib.internal.view.backing.DocViewer.init(DocViewer.java:109)
    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 com.sun.el.parser.AstValue.invoke(AstValue.java:187)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
    at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:162)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1036)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:921)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:820)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:243)
    at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:105)
    at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1387)
    at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:78)
    at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:474)
    at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:392)
    at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:164)
    at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:112)
    at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1201)
    at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)
    at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:695).

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