3 Replies Latest reply on Jan 18, 2013 7:15 PM by Nd-Oracle

    javax.el.ELException: java.lang.ClassCastException: com.bea.portlet.contain

    Nd-Oracle
      Hi All,


      I have created a portlet and deployed it on Weblogic. I am trying from WSRP producer test page and from Functional Setup Manager(FSM, FSPROD envi: its a consumer).
      I have created the portlets in Jdev by right clicking.

      on invoking the taskflow/page from FSM, I am getting this error:

      <Jan 14, 2013 12:40:45 AM PST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /RulesEditorFlow/RuleEditor URI: /oracle/apps/scm/dos/foundation/businessRules/ui/page/RuleEditor.jsff actual-URI: /oracle/apps/scm/dos/foundation/businessRules/ui/page/RuleEditor.jsff.
      javax.el.ELException: java.lang.ClassCastException: com.bea.portlet.container.PortletSessionImpl
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.parser.AstNot.getValue(AstNot.java:59)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.getDisabled(GoLinkRenderer.java:519)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.isDisabled(GoLinkRenderer.java:694)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.handleInaccessibility(GoLinkRenderer.java:597)
      at oracle.adfinternal.view.faces.renderkit.rich.GoLinkRenderer.encodeAll(GoLinkRenderer.java:131)
      at oracle.adfinternal.view.faces.renderkit.rich.CommandLinkRenderer.encodeAll(CommandLinkRenderer.java:158)
      at oracle.adfinternal.view.faces.renderkit.rich.CommandImageLinkRenderer.encodeAll(CommandImageLinkRenderer.java:191)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:858)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:938)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:423)
      at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2788)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:507)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$200(PanelGroupLayoutRenderer.java:30)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:686)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:617)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
      at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
      at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
      at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:364)
      at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1432)
      at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:358)
      ........
      Caused By: java.lang.ClassCastException: com.bea.portlet.container.PortletSessionImpl
      at oracle.bpel.rulessharedutils.impl.RulesClipboardModel.getInstance(RulesClipboardModel.java:44)
      at oracle.bpel.rulesshareddc.model.impl.SimpleTestActionModel.isPasteAllowed(SimpleTestActionModel.java:654)
      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 javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      at com.sun.el.parser.AstNot.getValue(AstNot.java:59)

      ----------------------------------------------------------------------------------------x-x-x---------------------------------------------------------------------

      If I am invoking the same taskflow/page from WSRP producer Test page I am getting:

      <Jan 14, 2013 11:03:00 AM PST> <Error> <oracle.adf.controller.internal.util.TaskFlowUtils> <BEA-000000> <rulesetName>
      <Jan 14, 2013 11:03:00 AM PST> <Error> <oracle.adf.controller.internal.util.TaskFlowUtils> <BEA-000000> <ruleDictName>
      <Jan 14, 2013 11:03:00 AM PST> <Error> <oracle.adf.controller.internal.util.TaskFlowUtils> <BEA-000000> <ruleDictPckg>




      Here are the Envi details: JDEV 11.1.1.7
      WLS Server : 10.3.6.0
      FMWTools: FMWTOOLS_11.1.1.7.0_GENERIC_121029.2237_PATCHES4FA_11.1.1.7.0_PLATFORMS
      portlet.xml file::::::

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <portlet-app version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <portlet id="adf_taskflow_512143045_FSGenericTaskFlow">
      <description>SupplyOrchestration FSGenericTaskFlow</description>
      <portlet-name>SupplyOrchestration_FSGenericTaskFlow</portlet-name>
      <display-name>SupplyOrchestration FSGenericTaskFlow</display-name>
      <portlet-class>oracle.portlet.bridge.adf.application.ADFBridgePortlet</portlet-class>
      <init-param>
      <name>javax.portlet.faces.defaultViewId.view</name>
      <value>/adf.task-flow?adf.tfDoc=/WEB-INF/adfp-portlet-bridge-container.xml&amp;adf.tfId=adfp-portlet-bridge-container&amp;_fragmentTaskFlowDoc=/WEB-INF/oracle/apps/setupHub/remoteApp/publicUi/flow/FSGenericTaskFlow.xml&amp;_fragmentTaskFlowId=FSGenericTaskFlow</value>
      </init-param>
      <init-param>
      <name>oracle.portlet.bridge.adf.SetViewToConsumerLocale</name>
      <value>true</value>
      </init-param>
      <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>VIEW</portlet-mode>
      </supports>
      <supported-locale>en</supported-locale>
      <portlet-info>
      <title>SupplyOrchestration FSGenericTaskFlow</title>
      <short-title>SupplyOrchestration FSGenericTaskFlow</short-title>
      </portlet-info>
      <supported-publishing-event id="ReturnControlToSetupEvent">
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:ReturnControlToSetupEvent</qname>
      </supported-publishing-event>
      <supported-publishing-event id="ultraPortletEvent">
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:ultraPortletEvent</qname>
      </supported-publishing-event>
      <supported-public-render-parameter>adfevent_ReturnControlToSetupEvent</supported-public-render-parameter>
      <supported-public-render-parameter>adfevent_ultraPortletEvent</supported-public-render-parameter>
      <supported-public-render-parameter>taskFlowId</supported-public-render-parameter>
      <supported-public-render-parameter>fsParameters</supported-public-render-parameter>
      <container-runtime-option>
      <name>com.oracle.portlet.requireIFrame</name>
      <value>true</value>
      </container-runtime-option>
      <container-runtime-option>
      <name>com.oracle.portlet.minimumWsrpVersion</name>
      <value>2</value>
      </container-runtime-option>
      </portlet>
      <custom-portlet-mode>
      <portlet-mode>about</portlet-mode>
      </custom-portlet-mode>
      <custom-portlet-mode>
      <portlet-mode>config</portlet-mode>
      </custom-portlet-mode>
      <custom-portlet-mode>
      <portlet-mode>edit_defaults</portlet-mode>
      </custom-portlet-mode>
      <custom-portlet-mode>
      <portlet-mode>preview</portlet-mode>
      </custom-portlet-mode>
      <custom-portlet-mode>
      <portlet-mode>print</portlet-mode>
      </custom-portlet-mode>
      <event-definition id="ReturnControlToSetupEvent">
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:ReturnControlToSetupEvent</qname>
      <value-type>oracle.portlet.bridge.adf.lifecycle.ADFmPayloadWrapper</value-type>
      </event-definition>
      <event-definition id="ultraPortletEvent">
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:ultraPortletEvent</qname>
      <value-type>oracle.portlet.bridge.adf.lifecycle.ADFmPayloadWrapper</value-type>
      </event-definition>
      <public-render-parameter>
      <identifier>adfevent_ReturnControlToSetupEvent</identifier>
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:_adf_event_ReturnControlToSetupEvent</qname>
      </public-render-parameter>
      <public-render-parameter>
      <identifier>adfevent_ultraPortletEvent</identifier>
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:_adf_event_ultraPortletEvent</qname>
      </public-render-parameter>
      <public-render-parameter>
      <identifier>taskFlowId</identifier>
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:taskFlowId</qname>
      </public-render-parameter>
      <public-render-parameter>
      <identifier>fsParameters</identifier>
      <qname xmlns:x="http://xmlns.oracle.com/adfm/contextualEvent">x:fsParameters</qname>
      </public-render-parameter>
      </portlet-app>
      --------------------------------------------------------------------x-x-x------------------------------------------------------

      NOW here is the catch,
      Earlier the entire functionality was working fine, but we had to shift to new branch. From then it has stopped working.
      everything above was working on earlier version: Oracle JDeveloper 11g Release 1 (11.1.1.6.0)
      Also, currently, I am able to invoke all the pages directly on the browser.( SO there is no problem with the page)

      Here are the questions that I have:

      1. why am i getting the classCastException from FSM(consumer).
      2. Why am i getting taskFlow Utils error from WSRP test page.(
      2. Is it because there is a compatibility issue( I recreated the entire portlet from scratch on the new label, still the same issue, the server is also based on latest label).
      3. How can i get over this problem.

      Can you please let me know what I am missing.

      Regards,
      ND