4 Replies Latest reply on Nov 16, 2010 1:50 PM by Andrew Cheung

    picklist problem with complex data types

    Andrew Cheung Newbie

      Hi, all. I am using a picklist to display a list of available items. I cannot get complex type working. Current configurations: RichFaces 3.3.3Final, JSF1.2, GateIn Portal 3.0. Source code in various files are as follows. Any help is much appreciated.

       

        -Andrew

       

      ------------------------------

      regionresults.xhtml:

       

      <rich:pickList id="plRegions" showButtonsLabel="false" copyAllVisible="false" removeAllVisible="false" value="#{brokeradmin.selectedRegions}" converter="ribcvtr">
                  <f:selectItems value="#{brokeradmin.regionResults}"/>
              </rich:pickList>
              <a4j:commandButton id="btnGetSelectedRegions"    action="#{brokeradmin.retrieveSelectedRegions}" value="Show Selected Regions" >
              </a4j:commandButton>
                 <h:outputText id="txtShowRegionsSelected" value="#{brokeradmin.abc}"/>

       

      ----------------------------

      BrokerAdmin.java (this is the backing bean):

       

      private ArrayList<SelectItem> regionResults = null;
      private List<RegionItemBean> selectedRegions =  null;

       

      private String abc = "";

       

      public String getAbc() {
          return abc;
      }
      public void setAbc(String abc) {
          this.abc = abc;
      }

       

      public List<RegionItemBean> getSelectedRegions() {
              return selectedRegions;
          }
          public void setSelectedRegions(List<RegionItemBean> selectedRegions) {
              this.selectedRegions = selectedRegions;
          }
          public ArrayList<SelectItem> getRegionResults() {
              return regionResults;
          }   
         
          public void setRegionResults(ArrayList<SelectItem> regionResults) {
              this.regionResults = regionResults;
          }

       

      public BrokerAdmin() throws java.lang.Exception {
              
            

           //selectedRegions population
               if (getSelectedRegions() == null) {
                   selectedRegions = new ArrayList<RegionItemBean>();   
                   RegionItemBean rib = new RegionItemBean();
                   rib.setLabel("existing region");
                   rib.setValue("111");
                   selectedRegions.add(rib);
                   rib = null;

       

              }
               //need to add the selected regions to the selectedItems list  (the system will do a compare and display it on the right hand side)
               RegionItemBean rib2 = new RegionItemBean();
               rib2.setLabel("existing region");
               rib2.setValue("111");
               regionResults.add(new SelectItem(rib2, "existing region"));

             
          }

       

       

       

      public String retrieveSelectedRegions() {

       

      for (int i=0; i<selectedRegions.size(); i++) {

      //I tried the following code that is commented out, but it will give me the same error in the error log (i.e. java.lang.String cannot be cast to demo.RegionItemBean)
          //        RegionItemBean tmpribsr = selectedRegions.get(i);
          //        String l = tmpribsr.getLabel();
          //        String v = tmpribsr.getValue();
          //        myLogger.error("DEBUGXXX : selected regions tmpstr label = " + tmpribsr.getLabel() + "; value=" + tmpribsr.getValue());
             
          //    myLogger.error("DEBUGXXX : in retrieveSelectedRegions, selectedRegions label =  " + selectedRegions.get(i).getLabel() + "; value = " +  //selectedRegions.get(i).getValue() );   

       

              }

      }

       

      -----------------------------------

      RegionItemBean.java:

       

      package demo;

       

      import org.apache.commons.lang.builder.EqualsBuilder;

       

      public class RegionItemBean {

       

          private String label;
          private String value;
         
          public RegionItemBean(String newlabel, String newvalue){
              label = newlabel;
              value = newvalue;
          }
          public RegionItemBean(){
              label = "";
              value = "";
          }
         
          public String getLabel() {
              return label;
          }
          public void setLabel(String label) {
              this.label = label;
          }
          public String getValue() {
              return value;
          }
          public void setValue(String value) {
              this.value = value;
          }
         
          public boolean equals(Object obj) {
             
              if (obj == null)
                  return false;
              if (obj == this)
                  return true;
              if (obj.getClass() != getClass())
                  return false;

              RegionItemBean rib = (RegionItemBean) obj;
              return new EqualsBuilder().
                  // if deriving: appendSuper(super.equals(obj)).
                  append(label, rib.label).
                  append(value, rib.value).
                  isEquals();

       

          
          }

       


      }

       

      ---------------------------

       

      RegionItemBeanConverter.java (this is the converter. The error in the error log comes from the type casting statement in getAsString ):

       

      package demo;
      import javax.faces.component.UIComponent;
      import javax.faces.context.FacesContext;
      import javax.faces.convert.Converter;

       

      import org.apache.log4j.Logger;

       

      public class RegionItemBeanConverter implements Converter {

          @Override
          public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
              // TODO Auto-generated method stub
              int index = arg2.indexOf(':');
             
              return new RegionItemBean(arg2.substring(0, index), arg2.substring(index + 1));

       

          }

       

          @Override
          public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
              // TODO Auto-generated method stub
              RegionItemBean rib = (RegionItemBean) arg2;
              return rib.getLabel() + ":" + rib.getValue();
          }

       

      }

       

      faces-config.xml:

       

      <managed-bean>
        <description>Demo Broker Admin</description>
        <managed-bean-name>brokeradmin</managed-bean-name>
        <managed-bean-class>demo.BrokerAdmin</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
        <managed-bean>
        <description>Demo Region Item Bean</description>
        <managed-bean-name>regionitembean</managed-bean-name>
        <managed-bean-class>demo.RegionItemBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
        <converter>  
         <converter-id>ribcvtr</converter-id>  
         <converter-class>demo.RegionItemBeanConverter</converter-class>  
      </converter>

       

      ------------------------

      The error that I got in the server.log:

       

      2010-11-05 15:49:28,918 SEVERE [facelets.viewhandler] (http-127.0.0.1-8080-3) Error Rendering View[/pages/regionresults.xhtml]

      java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean

          at demo.RegionItemBeanConverter.getAsString(Unknown Source)

          at org.richfaces.renderkit.ConvertedSelectItem.get(ConvertedSelectItem.java:49)

          at org.richfaces.renderkit.PickListRenderer.getConvertedItems(PickListRenderer.java:523)

          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:283)

          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:264)

          at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)

          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)

          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:1100)

          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:651)

          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)

          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)

          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)

          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)

          at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)

          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)

          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)

          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

          at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)

          at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)

          at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)

          at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)

          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)

          at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)

          at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)

          at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)

          at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)

          at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)

          at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)

          at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)

          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:201)

          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:61)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIPage.run(UIPage.gtmpl:8)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIPageBody.run(UIPageBody.gtmpl:31)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:171)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIPortal.run(UIPortal.gtmpl:18)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)

          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UISiteBody.run(UISiteBody.gtmpl:31)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIContainer.run(UIContainer.gtmpl:47)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)

          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:104)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)

          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)

          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)

          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)

          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:568)

          at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:109)

          at org.exoplatform.web.WebAppController.service(WebAppController.java:143)

          at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)

          at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)

          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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)

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

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

          at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)

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

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

          at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)

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

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

          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)

          at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)

          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)

          at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)

          at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)

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

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

          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

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

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

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

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

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

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

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

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

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

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

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

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

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

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Unknown Source)

      2010-11-05 15:49:28,949 SEVERE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.0.1-8080-3) JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /pages/regionresults.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@2d3634e3]

      2010-11-05 15:49:28,957 SEVERE [org.jboss.portletbridge.bridge] (http-127.0.0.1-8080-3) Error processing execute lifecycle

      javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean

          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)

          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

          at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:1100)

          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:651)

          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)

          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)

          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)

          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)

          at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)

          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)

          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)

          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

          at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)

          at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)

          at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)

          at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)

          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)

          at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)

          at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)

          at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)

          at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)

          at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)

          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)

          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

          at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)

          at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)

          at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)

          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:201)

          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:61)

          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

          at UIPage.run(UIPage.gtmpl:8)

      at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPageBody.run(UIPageBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:171)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortal.run(UIPortal.gtmpl:18)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UISiteBody.run(UISiteBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIContainer.run(UIContainer.gtmpl:47)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:104)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:568)
          at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:109)
          at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
          at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
          at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
          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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
          at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
          at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
          at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean
          at demo.RegionItemBeanConverter.getAsString(Unknown Source)
          at org.richfaces.renderkit.ConvertedSelectItem.get(ConvertedSelectItem.java:49)
          at org.richfaces.renderkit.PickListRenderer.getConvertedItems(PickListRenderer.java:523)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:283)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:264)
          at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
          ... 222 more
      2010-11-05 15:49:29,055 ERROR [org.gatein.pc.container.javax_portlet_faces_GenericFacesPortlet] (http-127.0.0.1-8080-3) The portlet threw an exception
      javax.portlet.PortletException: Error process faces request
          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:600)
          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)
          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)
          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)
          at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)
          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)
          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
          at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
          at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
          at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
          at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
          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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
          at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
          at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
          at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
          at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
          at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
          at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
          at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:201)
          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:61)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPage.run(UIPage.gtmpl:8)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPageBody.run(UIPageBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:171)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortal.run(UIPortal.gtmpl:18)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UISiteBody.run(UISiteBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIContainer.run(UIContainer.gtmpl:47)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:104)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:568)
          at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:109)
          at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
          at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
          at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
          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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
          at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
          at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
          at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Unknown Source)
      Caused by: javax.portlet.faces.BridgeException: Error processing render lifecycle
          at org.jboss.portletbridge.ExceptionHandlerBase.processRenderException(ExceptionHandlerBase.java:72)
          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:688)
          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)
          ... 218 more
      Caused by: javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
          at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:1100)
          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:651)
          ... 219 more

      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean
          at demo.RegionItemBeanConverter.getAsString(Unknown Source)
          at org.richfaces.renderkit.ConvertedSelectItem.get(ConvertedSelectItem.java:49)
          at org.richfaces.renderkit.PickListRenderer.getConvertedItems(PickListRenderer.java:523)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:283)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:264)
          at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
          ... 222 more
      2010-11-05 15:49:29,094 ERROR [portal:UIPortletLifecycle] (http-127.0.0.1-8080-3) Portlet render threw an exception
      org.exoplatform.services.portletcontainer.PortletContainerException: Error process faces request
          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:280)
          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:61)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPage.run(UIPage.gtmpl:8)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPageBody.run(UIPageBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:171)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortal.run(UIPortal.gtmpl:18)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)
          at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UISiteBody.run(UISiteBody.gtmpl:31)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIContainer.run(UIContainer.gtmpl:47)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)
          at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)
          at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)
          at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:104)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
          at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
          at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)
          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)
          at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
          at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
          at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)
          at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)
          at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
          at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:568)
          at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:109)
          at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
          at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
          at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
          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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
          at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
          at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
          at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
          at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Unknown Source)
      Caused by: javax.portlet.PortletException: Error process faces request
          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:600)
          at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)
          at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:354)
          at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)
          at javax.portlet.GenericPortlet.render(GenericPortlet.java:259)
          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)
          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
          at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
          at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
          at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
          at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
          at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
          at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
          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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
          at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
          at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
          at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
          at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
          at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
          at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
          at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
          at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
          at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
          at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
          at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:201)
          ... 161 more
      Caused by: javax.portlet.faces.BridgeException: Error processing render lifecycle
          at org.jboss.portletbridge.ExceptionHandlerBase.processRenderException(ExceptionHandlerBase.java:72)
          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:688)
          at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)
          ... 218 more
      Caused by: javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
          at org.jboss.portletbridge.AjaxPortletBridge.render(AjaxPortletBridge.java:1100)
          at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:651)
          ... 219 more
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to demo.RegionItemBean
          at demo.RegionItemBeanConverter.getAsString(Unknown Source)
          at org.richfaces.renderkit.ConvertedSelectItem.get(ConvertedSelectItem.java:49)
          at org.richfaces.renderkit.PickListRenderer.getConvertedItems(PickListRenderer.java:523)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:283)
          at org.richfaces.renderkit.html.PickListRendererGen.doEncodeChildren(PickListRendererGen.java:264)
          at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
          ... 222 more

        • 1. Re: picklist problem with complex data types
          ibstmt Newbie

          I had the exact same problem. I solved it by checking for the object type:

           

          public String getAsString(FacesContext arg0, UIComponent arg1, Object obj) {
                  if (obj instanceof RegionItemBean)
                      return ((RegionItemBean)obj).getLabel() + ":" + ((RegionItemBean)obj).getValue();
                  return null;
              }

          • 2. Re: picklist problem with complex data types
            Andrew Cheung Newbie

            I tried your solution, but it only solved part of the problem (I.e. the Cast Exception problem is gone, but the problem now becomes that if I select items from the left hand side of the picklist, I got the following error message in the log:

             

            2010-11-10 08:04:15,034 ERROR [demo.RegionItemBeanConverter] (http-127.0.0.1-8080-1) DEBUGXXX : in converter getAsObject, arg2 = null
            2010-11-10 08:04:15,035 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.0.1-8080-1) String index out of range: -1
            java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(Unknown Source)
                at demo.RegionItemBeanConverter.getAsObject(Unknown Source)
                at org.ajax4jsf.util.SelectUtils.getConvertedValue(SelectUtils.java:240)
                at org.ajax4jsf.util.SelectUtils.getConvertedUISelectManyValue(SelectUtils.java:199)
                at org.richfaces.renderkit.PickListRenderer.getConvertedValue(PickListRenderer.java:224)
                at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                at javax.faces.component.UIInput.validate(UIInput.java:868)
                at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                at org.ajax4jsf.component.UIAjaxForm.processValidators(UIAjaxForm.java:82)
                at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:447)
                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
                at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:463)
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1096)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:824)
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:541)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:575)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:184)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:84)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
                at sun.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
                at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
                at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
                at org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:355)
                at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:132)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:61)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
                at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
                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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
                at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                at java.lang.Thread.run(Unknown Source)
            2010-11-10 08:04:15,058 SEVERE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-127.0.0.1-8080-1) JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /pages/regionresults.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@465089a4]
            2010-11-10 08:04:15,058 SEVERE [org.jboss.portletbridge.bridge] (http-127.0.0.1-8080-1) Error processing execute lifecycle
            javax.faces.FacesException: String index out of range: -1
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:84)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1096)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:824)
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:541)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:575)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:184)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:84)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
                at sun.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
                at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
                at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
                at org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:355)
                at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:132)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:61)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
                at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
                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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
                at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                at java.lang.Thread.run(Unknown Source)
            Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(Unknown Source)
                at demo.RegionItemBeanConverter.getAsObject(Unknown Source)
                at org.ajax4jsf.util.SelectUtils.getConvertedValue(SelectUtils.java:240)
                at org.ajax4jsf.util.SelectUtils.getConvertedUISelectManyValue(SelectUtils.java:199)
                at org.richfaces.renderkit.PickListRenderer.getConvertedValue(PickListRenderer.java:224)
                at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                at javax.faces.component.UIInput.validate(UIInput.java:868)
                at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                at org.ajax4jsf.component.UIAjaxForm.processValidators(UIAjaxForm.java:82)
                at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:447)
                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
                at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:463)
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                ... 108 more
            2010-11-10 08:04:15,123 ERROR [org.gatein.pc.container.javax_portlet_faces_GenericFacesPortlet] (http-127.0.0.1-8080-1) The portlet threw an exception
            javax.portlet.PortletException: Error process faces request
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:543)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:575)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:184)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:84)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
                at sun.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
                at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
                at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
                at org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:355)
                at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:132)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:61)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
                at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
                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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
                at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                at java.lang.Thread.run(Unknown Source)
            Caused by: javax.portlet.faces.BridgeException: Error processing resource lifecycle
                at org.jboss.portletbridge.ExceptionHandlerBase.processResourceException(ExceptionHandlerBase.java:91)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:835)
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:541)
                ... 103 more
            Caused by: javax.faces.FacesException: String index out of range: -1
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:84)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1096)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:824)
                ... 104 more
            Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(Unknown Source)
                at demo.RegionItemBeanConverter.getAsObject(Unknown Source)
                at org.ajax4jsf.util.SelectUtils.getConvertedValue(SelectUtils.java:240)
                at org.ajax4jsf.util.SelectUtils.getConvertedUISelectManyValue(SelectUtils.java:199)
                at org.richfaces.renderkit.PickListRenderer.getConvertedValue(PickListRenderer.java:224)
                at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                at javax.faces.component.UIInput.validate(UIInput.java:868)
                at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                at org.ajax4jsf.component.UIAjaxForm.processValidators(UIAjaxForm.java:82)
                at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:447)
                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
                at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:463)
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                ... 108 more
            2010-11-10 08:04:15,143 ERROR [portal:UIPortletActionListener] (http-127.0.0.1-8080-1) Problem while serving resource for the portlet: local._dumbvalue
            javax.portlet.PortletException: Error process faces request
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:543)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:575)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:184)
                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:84)
                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)
                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)
                at sun.reflect.GeneratedMethodAccessor493.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)
                at org.gatein.wci.command.CommandServlet.doPost(CommandServlet.java:166)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)
                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)
                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)
                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)
                at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)
                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)
                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:229)
                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)
                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)
                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)
                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)
                at org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:355)
                at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:132)
                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:61)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
                at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
                at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
                at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:115)
                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
                at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
                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.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)
                at com.brookfieldres.rlpportal.portal.web.SampleFilter.doFilter(SampleFilter.java:46)
                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:108)
                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)
                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                at java.lang.Thread.run(Unknown Source)
            Caused by: javax.portlet.faces.BridgeException: Error processing resource lifecycle
                at org.jboss.portletbridge.ExceptionHandlerBase.processResourceException(ExceptionHandlerBase.java:91)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:835)
                at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:541)
                ... 103 more
            Caused by: javax.faces.FacesException: String index out of range: -1
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:84)
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                at org.jboss.portletbridge.AjaxPortletBridge.execute(AjaxPortletBridge.java:1096)
                at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:824)
                ... 104 more
            Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(Unknown Source)
                at demo.RegionItemBeanConverter.getAsObject(Unknown Source)
                at org.ajax4jsf.util.SelectUtils.getConvertedValue(SelectUtils.java:240)
                at org.ajax4jsf.util.SelectUtils.getConvertedUISelectManyValue(SelectUtils.java:199)
                at org.richfaces.renderkit.PickListRenderer.getConvertedValue(PickListRenderer.java:224)
                at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
                at javax.faces.component.UIInput.validate(UIInput.java:868)
                at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
                at javax.faces.component.UIInput.processValidators(UIInput.java:672)
                at org.ajax4jsf.component.UIAjaxForm.processValidators(UIAjaxForm.java:82)
                at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:447)
                at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:240)
                at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:463)
                at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
                ... 108 more
            2010-11-10 08:04:15,162 INFO  [STDOUT] (http-127.0.0.1-8080-1) SampleFilter end of the 'rlpportal'

             

            Note:

            1. The code that populates the other left-hand-side items is not shown above,but it is just a bunch of statements such as

            regionResults.add(new SelectItem("region1Value", "region1Display"));

             

            where regionResults is ArrayList<SelectItem>

             

            2. I realized that only the item that is originally on the right hand side (i.e. the item with the label "existing region" if you refer to the code I posted in my original post) is an instance of the RegionItemBean when getAsString is called. (The item that I picked from the left hand side returns null when getAs String is called).

             

             

            Any help is appreciated.

             

              -Andrew

            • 3. Re: picklist problem with complex data types
              Ilya Shaikovsky Master

              looks like reall issue. please post issue to jira and attach your sampleand exceptions.

              • 4. Re: picklist problem with complex data types
                Andrew Cheung Newbie

                I have reported the issue to jira, but found a workaround in the meantime:

                 

                First, further observation from my previous post:

                >I  realized that only the item that is originally on the right hand side   (i.e. the item with the label "existing region" if you refer to the code   I posted in >my original post) is an instance of the RegionItemBean  when  getAsString is called. (The item that I picked from the left hand  side  returns null when >getAs String is called).

                 

                It  turns out that for these items on the left hand side, the string  version of the object returns just the value instead of "label:value".

                 

                So the workaround would be to avoid anything to do with the label in the equals method. The modified code are as follows:

                 

                RegionItemBean.java :

                 

                public boolean equals(Object obj) {
                        
                         if (obj == null)
                             return false;
                         if (obj == this)
                             return true;
                         if (obj.getClass() != getClass())
                             return false;
                 
                         RegionItemBean rib = (RegionItemBean) obj;

                 

                        return new EqualsBuilder().
                             // if deriving: appendSuper(super.equals(obj)).
                         //    append(label, rib.label).  //workaround for the bug  reported to JIRA (sometimes label is empty); so we only compare the  value
                             append(value, rib.value).
                             isEquals();

                 

                    
                     }

                 

                -------------------------

                RegionItemBeanConverter.java :

                 

                @Override
                     public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
                         // TODO Auto-generated method stub
                         myLogger.error("DEBUGXXX : in converter getAsObject, arg2 = " + arg2);
                        
                         int index = arg2.indexOf(':');
                         if (index == -1) {
                             return new RegionItemBean(arg2,arg2);         //workaround  for index out of range issue (arg2 should contain "label:value"; but  sometimes it only contain "value" due to the bug reported in JIRA)
                         }
                         else {
                             return new RegionItemBean(arg2.substring(0, index), arg2.substring(index + 1));
                         }
                        

                 

                    }

                 

                    @Override
                     public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) {
                         // TODO Auto-generated method stub
                         myLogger.error("DEBUGXXX : in converter getAsString");
                         if (arg2 instanceof RegionItemBean) {
                             myLogger.error("DEBUGXXX : in converter getAsString, arg2 is instance of RegionItemBean");
                             return ((RegionItemBean)arg2).getLabel() + ":" + ((RegionItemBean)arg2).getValue();
                         }
                         else {
                             myLogger.error("DEBUGXXX : in converter getAsString, arg2 is NOT instance of RegionItemBean");
                             myLogger.error("DEBUGXXX : object string = " + arg2.toString());
                             return null;
                         }
                     }