You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Max Starets (JIRA)" <de...@myfaces.apache.org> on 2010/02/12 23:20:27 UTC

[jira] Created: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Trinidad 2: ClassCastEXception while running componentDemos.jspx
----------------------------------------------------------------

                 Key: TRINIDAD-1723
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Archetype
    Affects Versions: 2.0.0-alpha-2
            Reporter: Max Starets


Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:

java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)

This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833392#action_12833392 ] 

Matthias Weßendorf commented on TRINIDAD-1723:
----------------------------------------------

Hey Max,

I guess that's an issue on your side: the demo work works also fine in Glassfish V3

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833938#action_12833938 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

This same revision works fine with jetty

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862036#action_12862036 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

Like Max said on 16/Feb/10, prior to Blake's change we had only one faces-bean.properties file and that is in the impl jar. Now we have two faces-bean.properties files - one in the impl jar and one in the api. Max talks about the workaround.

I filed a bug against JDeveloper, and it was explained to me that this is not a bug. It seems like we can fix it by changing the setup of our projects.

The following is from a JDev developer who is an expert in this area:
The relevant rules are:

1. If project A depends on project B "Build Output," then the "Build Output"
of project B is *merged* into project A.  If project A is a web application,
this means project A and project B "Build output" are both copied into the
WEB-INF/classes of the resulting WAR.  Merging implies that you can only have
one copy of any particular URI, because it can only exist once within
WEB-INF/classes.

2. If project A depends on a project B "Deployment Profile" (e.g. a JAR
profile), then the result of that deployment profile is included in the
WEB-INF/lib of the resulting WAR.

You can observe these rules in action by creating a WAR deployment profile in
the demo project.  When you edit the profile
and go to the  File Groups->WEB-INF/classes tab, you will see all the classes
contributed by the APIProject and the ImplProject projects, but only one
faces-bean.properties.  (jmw - I have not confirmed this)

trinidad-api.jar and trinidad-impl.jar are JARs, and JARs are the primary way
to have multiple copies of the same URI in the classpath.  To generate JARs
from a JDeveloper project, rule #2 must be used.  I modified
the test app as follows:

1. Create a JAR deployment profile in the APIProject project, and called it
APIProject
2. Create a JAR deployment profile in the ImplProject project, and called it
ImplProject.
3. Modify the dependencies of all three projects.
  a. Project1 (the demo project) depends on the APIProject deployment profile of project
APIProject (instead of on "Build Output")
  b. Project1 depends on the ImplProject deployment profile of project
ImplProject (instead of on "Build Output")
  c. APIProject depends on the ImplProject deployment profile of project
ImplProject (instead of on "Build Output")


> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837333#action_12837333 ] 

Matthias Weßendorf commented on TRINIDAD-1723:
----------------------------------------------

what proxy issue ?

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833932#action_12833932 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

I get this on MAIN trunk using JDeveloper/WLS.

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833202#action_12833202 ] 

Matthias Weßendorf commented on TRINIDAD-1723:
----------------------------------------------

http://localhost:8080/trinidad-demo/faces/componentDemos.jspx

works just with, when running the demo with Jetty



> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833991#action_12833991 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

I switched to rev 900576 and this works fine.
The interesting thing is the difference in the print statements when I run breadcrumbs.jspx.

In 900576, I get:
UINodeRendererBase's encodeEnd, about to call UIXComponentUINode.__getAdapter
__getAdapter for component CoreCommandNavigationItem[CommandNavigationItemFacesBean, id=j_id_id18]
In UIComponentUINode,component instanceof UIXComponent
In UIComponentUINode, returning ((UINodeFacesBean) bean).getUINode()

In the broken one I get:
 UINodeRendererBase's encodeEnd, about to call UIXComponentUINode.__getAdapter
__getAdapater for component CoreCommandNavigationItem[UIXFacesBeanImpl, id=j_id_id18]
In UIComponentUINode,component instanceof UIXComponent
In UIComponentUINode, returning new UIComponentUINode 

Where the printlns are:

  static UINode __getUINode(UIComponent component)
  {
    if (component instanceof UIXComponent)
    {
      FacesBean bean = ((UIXComponent) component).getFacesBean();

      // Since we are using instanceof, unwrap the bean if using the public bean wrapper from
      // the API project
      for (; bean instanceof FacesBeanWrapper; bean = ((FacesBeanWrapper)bean).getWrappedBean());
      System.out.println("In UIComponentUINode,component instanceof UIXComponent ");
      if (bean instanceof UINodeFacesBean)
      {
        System.out.println("In UIComponentUINode, returning ((UINodeFacesBean) bean).getUINode() ");

        return ((UINodeFacesBean) bean).getUINode();
      }
    }
    System.out.println("In UIComponentUINode, returning new UIComponentUINode ");

    return new UIComponentUINode(component, _FACES_NAMESPACE);
  }

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837041#action_12837041 ] 

Blake Sullivan commented on TRINIDAD-1723:
------------------------------------------

I think that this is a relatively recent regression (like the proxy issues), since I didn't see it

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834043#action_12834043 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

It does not work in the very next checkin after 900576 . - that is, it stops working in 901411, the checking for TRINIDAD-1668.

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Pavitra Subramaniam (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917120#action_12917120 ] 

Pavitra Subramaniam edited comment on TRINIDAD-1723 at 10/1/10 8:10 PM:
------------------------------------------------------------------------

Should 3c. above be the following?

  c. ImplProject depends on the APIProject's deployment profile (instead of on "Build Output") ?

      was (Author: pasubra):
    Should 3c. above be the following?

  
> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Max Starets (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834287#action_12834287 ] 

Max Starets commented on TRINIDAD-1723:
---------------------------------------

The issue is that WLS is not loading faces-bean.properties from the impl jar, so we get a wrong FacesBean bean created for CorePanelPage.
Prior to Blake's change (revision 901411), we had only one faces-bean.properties in the impl jar. That worked fine in both Jetty and WLS. Since 901411, we have two faces-bean.properties files - one in the impl jar, and one in the api. 

FacesBeanFactory._initializeBeanTypes() calls  _getClassLoader().getResources( "META-INF/faces-bean.properties"); Jetty will return two URLs (one for faces-bean.properties in the api and one in impl), while WLS - only one (in the api).  The behavior of WLS seems wrong to me.

It looks like the faces-bean.properties is required for some unit tests in the API package. A temporary workaround for WLS would be to copy all entries from the impl's faces-bean.properties into the api's faces-bean.properties and building with tests disabled.

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840968#action_12840968 ] 

Blake Sullivan commented on TRINIDAD-1723:
------------------------------------------

Proxy configuration wasn't working correctly.


> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Pavitra Subramaniam (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917120#action_12917120 ] 

Pavitra Subramaniam commented on TRINIDAD-1723:
-----------------------------------------------

Should 3c. above be the following?


> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834515#action_12834515 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

Good find. I agree that this definitely seems like a bug in WLS.

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Max Starets (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833270#action_12833270 ] 

Max Starets commented on TRINIDAD-1723:
---------------------------------------

Could you try running in JDev after generating workspace with 'mvn jdev:jdev'?

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1723) Trinidad 2: ClassCastEXception while running componentDemos.jspx

Posted by "Jeanne Waldman (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833989#action_12833989 ] 

Jeanne Waldman commented on TRINIDAD-1723:
------------------------------------------

I switched to rev 900576 and this works fine.
The interesting thing is the difference in the print statements when I run breadcrumbs.jspx.

In 900576, I get:
UINodeRendererBase's encodeEnd, about to call UIXComponentUINode.__getAdapter
__getAdapter for component CoreCommandNavigationItem[CommandNavigationItemFacesBean, id=j_id_id18]
In UIComponentUINode,component instanceof UIXComponent 
In UIComponentUINode, returning ((UINodeFacesBean) bean).getUINode() 

In the broken one I get:
 UINodeRendererBase's encodeEnd, about to call UIXComponentUINode.__getAdapter
__getAdapater for component CoreCommandNavigationItem[UIXFacesBeanImpl, id=j_id_id18]
In UIComponentUINode,component instanceof UIXComponent 
In UIComponentUINode, returning new UIComponentUINode 

> Trinidad 2: ClassCastEXception while running componentDemos.jspx
> ----------------------------------------------------------------
>
>                 Key: TRINIDAD-1723
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1723
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-alpha-2
>            Reporter: Max Starets
>
> Grab the latest trinidad-2.0.x branch and try running componentDemos.jspx. The following exception will be thrown:
> java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode cannot be cast to org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode
> 	at org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.__getAdapter(UIXComponentUINode.java:439)
> 	at org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:65)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:852)
> 	at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:509)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:531)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:151)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:153)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:80)
> 	at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:546)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRenderer.encodeAll(DocumentRenderer.java:82)
> This does not seem to be JSF 2 specific, but I have not had time to try it on the latest MAIN.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.