4 Replies Latest reply: Apr 30, 2013 1:53 PM by user12869467 RSS

    Re: javax.faces.convert.Converter error, how to diagnose?

    user12869467
      I’m rendering a region on a page. The region is a table which is entirely build in java. The .jsff for the region looks kind of like this:

      <af:treeTable value="#{backingBeanScope.myBean.treeModel}" var="row" etc…. >

      <af:forEach items="#{backingBeanScope.myBean.columns}" var="column">
      <af:column binding="#{column.adfColumn}" />
      </af:forEach>

      </af:treeTable>

      When a row selection happens, there is context menu build, where one of the menuitems pops a dialog. After the dialog is dismissed a return handler/listener is called:

      public void propertyToolReturnHandler(ReturnEvent event)
      {
      AdfUtil.showMessageDialog(AdfUtil.MESSAGE_TYPE.INFORMATION, “some msg”, “some msg”, true);
      }

      Notice the last param to showMessageDialog, which is “true”, as I want to show the message as inline. However, having it set to “true” causes the following exception. If I set it to “false”, then it does work and a popup message appears with the “some msg” text.

      I’m truly stuck trying to figure out what Converter is missing and where. Any ideas will be most welcomed!

      The error I get:
      [Ljava.lang.Object; cannot be cast to javax.faces.convert.Converter

      ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2

      Examining the EMGC_OMS1.out file I see (partial):

      <Apr 10, 2013 2:39:38 PM PDT> <Error> <oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #2
      java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to javax.faces.convert.Converter
           at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConverter(ValueRenderer.java:197)
           at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.addClientConverterRenderScript(ValueRenderer.java:220)
           at oracle.adfinternal.view.faces.renderkit.rich.OutputLabelRenderer.encodeAll(OutputLabelRenderer.java:241)
           at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1431)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
           at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2778)
           at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.access$500(RegionRenderer.java:49)
           at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer$ChildEncoderCallback.processComponent(RegionRenderer.java:574)
           at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer$ChildEncoderCallback.processComponent(RegionRenderer.java:553)
           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.UIXGroup.processFlattenedChildren(UIXGroup.java:96)
           at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:160)
           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.RegionRenderer._encodeChildren(RegionRenderer.java:270)
           at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)
           at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1431)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
           at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:321)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
           at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2778)
           at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2149)
           at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer.access$500(PanelBoxRenderer.java:39)
           at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer$ChildEncoderCallback.processComponent(PanelBoxRenderer.java:2267)
           at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer$ChildEncoderCallback.processComponen

      Ania.

      Edited by: user12869467 on Apr 12, 2013 1:57 PM