Some update about this issue. After a lot of trials I found out that it also does not depend from the combination of the MyFaces version and Tobago.

It's depending on the version of the tomcat which I use. With Version 6.0-18 it works on each of my tested platforms. With version 6.0-26 which I did install on my Windows 7 System it fails. But with the 6.0-26 it fails also on a fresh installed Windows XP.

After moving back to 6.0-18 it works.

Maybe somebody with deeper knowledge about tomcat can have a look what could be the problem.

Regards Michael

Am 10.05.2010 18:28, schrieb Volker Weber:
Hi Michael,

i never used jsf 1.2, tobago 1.0.x was developed for jsf 1.1,
but it 'should' be compatible to 1.2.

I don't think the windows version could be the problem, but i dont use windows
(exept a vm to test tobago in IE)

If you got a String instance as selectItems value in jsf1.2 there must
be a Problem in the tobago1.0/jsf1.2 combination.



Regards,
     Volker


2010/5/10 Michael Kakuschky<[email protected]>:
Hello Volker,

for testing I produce a very cutted version of my page where is just one
selectItem in it, this is the one where the logs came from. If I remove the
only one existing selectItems Element the page will be rendered.

Now I found out that if I use tobago 1.0.25 with myfaces 1.1.7 then the
selectedItem works like expected. But know I got other problems like that
some UI Elements not updated with bean attribute values.

Before I was using tobago 10.0.24 with myfaces 1.2.8. This combination is
running fine on my linux server and also on two development systems based on
Windows XP.

The problems began if I ported the development plattform to Windows 7.

Which version combination of myfaces and tobago is the standard one? Can the
reason somehow depend on the version of Windows?

Best regards

Michael

Am 10.05.2010 09:34, schrieb Volker Weber:
Hi Michael,

the valueBinding of one of your selectItems tags returns a String !

Are there any other (tc|f):selectItems tags in your page?
The path to the relevant component is in the stacktrace:
/admin.jsp tc:page=page tc:tabgroup=Main tc:box=partnerDataBox
tc:tabgroup=PartnerDetailsTab tc:panel=partnerDataPanel2


Regards,
     Volker

2010/5/9 Michael Kakuschky<[email protected]>:

Hello,

I have a problem with my application sinced I moved my eclipse
environment
from a Windows XP system to and Windows 7 system. Compiling works fine
and
also a lot of my jsf tobago pages.

But if i run the app on my development system some pages using
tx:selectOneChoice Elements are producing errors like this one:

java.lang.IllegalArgumentException - TYPE ERROR: value NOT instanceof
SelectItem, SelectItem[], Collection, Map. type=java.lang.String

I'm using jre 1.6.0_20, MyFaces 1.2.8 and tobago 1.0.24 with Eclipse
Galileo. These are the same components (except I Java which was version
1.6.0_7) I used on the windows XP based system without problems.

For me everything looks o.k. The data delivered from the getter is r
should
be of Type List<SelectItem>    which is implementing Collection.

Would be great if somebody has an idea and can help me.

Best regards Michael


The source of the page:

<tx:selectOneChoice value="#{myController.country_id}" label="country">
<f:selectItems value="#{countryBean.country_list}" />
</tx:selectOneChoice>

The relevant part of the bean code:

    private List<SelectItem>    country_list = new ArrayList<SelectItem>();

    public CountryBean() {
        super();
        //fill List with some countries
        country_list.add(new SelectItem(820,"Germany"));
        country_list.add(new SelectItem(276,"Germany"));
    }

    public List<SelectItem>    getCountry_list() {
        return country_list;
    }

The StackTrace

Exception while calling encodeEnd on component : {Component-Path :
[Class:
org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /admin.jsp][Class:
org.apache.myfaces.tobago.component.UIPage,Id: page]}

Caused by:
java.lang.IllegalArgumentException - TYPE ERROR: value NOT instanceof
SelectItem, SelectItem[], Collection, Map. type=java.lang.String

|javax.faces.FacesException: Exception while calling encodeEnd on
component
: {Component-Path : [Class:
org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /admin.jsp][Class:
org.apache.myfaces.tobago.component.UIPage,Id: page]}
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
        at
javax.faces.component.UIComponent.encodeAll(UIComponent.java:261)
        at
javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
        at

org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:427)
        at

org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:383)
        at

org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:105)
        at

org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:56)
        at

org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.render(TobagoLifecycle.java:140)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:182)
        at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
        at

org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
        at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
        at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
        at

org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)
        at

org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
        at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.FacesException: Exception while calling encodeEnd
on
component : {Component-Path : [Class:
org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /admin.jsp][Class:
org.apache.myfaces.tobago.component.UIPage,Id: page][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_314771723_3][Class:
org.apache.myfaces.tobago.component.UITabGroup,Id: Main]}
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
        at

org.apache.myfaces.tobago.component.UITabGroup.encodeEnd(UITabGroup.java:140)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:86)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd(PageRenderer.java:171)
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
        ... 36 more
Caused by: javax.faces.FacesException: Exception while calling encodeEnd
on
component : {Component-Path : [Class:
org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /admin.jsp][Class:
org.apache.myfaces.tobago.component.UIPage,Id: page][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_314771723_3][Class:
org.apache.myfaces.tobago.component.UITabGroup,Id: Main][Class:
org.apache.myfaces.tobago.component.UITab,Id:
j_id_jsp_1140637804_0][Class:
org.apache.myfaces.tobago.component.UIForm,Id:
j_id_jsp_1140637804_21][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_1140637804_22][Class:
org.apache.myfaces.tobago.component.UIBox,Id:
partnerDataBox][Class: org.apache.myfaces.tobago.component.UITabGroup,Id:
PartnerDetailsTab]}
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
        at

org.apache.myfaces.tobago.component.UITabGroup.encodeEnd(UITabGroup.java:140)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:86)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:47)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.renderkit.RenderUtil.encodeChildren(RenderUtil.java:58)
        at

org.apache.myfaces.tobago.renderkit.html.speyside.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:74)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.renderTabGroupView(TabGroupRenderer.java:454)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEnd(TabGroupRenderer.java:168)
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
        ... 48 more
Caused by: javax.faces.FacesException: Exception while calling encodeEnd
on
component : {Component-Path : [Class:
org.apache.myfaces.tobago.component.UIViewRoot,ViewId: /admin.jsp][Class:
org.apache.myfaces.tobago.component.UIPage,Id: page][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_314771723_3][Class:
org.apache.myfaces.tobago.component.UITabGroup,Id: Main][Class:
org.apache.myfaces.tobago.component.UITab,Id:
j_id_jsp_1140637804_0][Class:
org.apache.myfaces.tobago.component.UIForm,Id:
j_id_jsp_1140637804_21][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_1140637804_22][Class:
org.apache.myfaces.tobago.component.UIBox,Id:
partnerDataBox][Class: org.apache.myfaces.tobago.component.UITabGroup,Id:
PartnerDetailsTab][Class: org.apache.myfaces.tobago.component.UITab,Id:
j_id_jsp_1140637804_54][Class:
org.apache.myfaces.tobago.component.UIPanel,Id: partnerDataPanel2][Class:
org.apache.myfaces.tobago.component.UICell,Id:
j_id_jsp_1140637804_67][Class:
org.apache.myfaces.tobago.component.UIPanel,Id: j_id56][Class:
org.apache.myfaces.tobago.component.UISelectOne,Id: j_id59]}
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:627)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:86)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:47)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:379)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:276)
        at

org.apache.myfaces.tobago.component.UIPanelBase.encodeChildren(UIPanelBase.java:43)
        at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:79)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:47)
        at

org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:70)
        at

org.apache.myfaces.tobago.renderkit.RenderUtil.encodeChildren(RenderUtil.java:58)
        at

org.apache.myfaces.tobago.renderkit.html.speyside.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:74)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.renderTabGroupView(TabGroupRenderer.java:454)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEnd(TabGroupRenderer.java:168)
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
        ... 67 more
Caused by: java.lang.IllegalArgumentException: TYPE ERROR: value NOT
instanceof SelectItem, SelectItem[], Collection, Map.
type=java.lang.String
        at

org.apache.myfaces.tobago.component.ComponentUtil.getSelectItems(ComponentUtil.java:606)
        at

org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SelectOneChoiceRenderer.encodeEnd(SelectOneChoiceRenderer.java:61)
        at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:624)
        ... 89 more
|







--
Elbe-Net
Michael Kakuschky
Paalzowweg 14
21029 Hamburg

tel: +49 40 72910427
mobile: +49 171 4754025
e-mail: [email protected]





--
Elbe-Net
Michael Kakuschky
Paalzowweg 14
21029 Hamburg

tel: +49 40 72910427
mobile: +49 171 4754025
e-mail: [email protected]

Reply via email to