1 Reply Latest reply on Aug 24, 2011 3:01 AM by Nitin Khekare

    Getting error Cannot convert id_ of type class java.lang.String to class [Ljava.lang.String;

    Nitin Khekare Newbie

      Hi

       

      I am getting an error like

       

      09:51:56,096 SEVERE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http--127.0.0.1-8080-3) JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /tabeditor.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@6352f8]

      09:51:56,096 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/demo].[faces]] (http--127.0.0.1-8080-3) Servlet.service() for servlet faces threw exception: javax.el.ELException: //C:/Project/jboss-as-7.0.0.Final/bin/content/demo.war/WEB-INF/lib/demo-faces.jar/META-INF/Tabs.

      xhtml @117,116 partialTriggers="id_": Cannot convert id_ of type class java.lang.String to class [Ljava.lang.String;

              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76) [jsf-facelets.jar:]

              at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer.getPartialTriggers(XhtmlRenderer.java:1111) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer.shouldRenderId(XhtmlRenderer.java:327) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.CoreRenderer.renderId(CoreRenderer.java:495) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:98) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751) [trinidad-api-1.2.12.jar:]

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:242) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837) [jsf-api.jar:1.2_09-b01-BETA1]

              at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:57) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:65) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:65) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:410) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:69) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:142) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:151) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:78) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1489) [trinidad-api-1.2.12.jar:]

              at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771) [trinidad-api-1.2.12.jar:]

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942) [jsf-api.jar:1.2_09-b01-BETA1]

              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) [jsf-facelets.jar:]

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189) [jsf-api.jar:1.2_09-b01-BETA1]

              at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193) [trinidad-impl-1.2.12.jar:]

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-1.2_13.jar:1.2_13-b01-FCS]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) [jsf-api.jar:1.2_09-b01-BETA1]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147) [tomahawk-1.1.7-SNAPSHOT.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at com.avaya.panther.faces.util.ResourceInjectionFilter.doFilter(ResourceInjectionFilter.java:49) [avaya-faces.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) [trinidad-impl-1.2.12.jar:]

              at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) [trinidad-api-1.2.12.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

       

       

      Actually I have one generic template in which I am using jstl to render the jsf tags.

       

      <c:choose>

          <c:when test="${partialTriggers!=null}">

              <c:set var="partialTriggers_"

                  value="#{partialTriggers}" scope="request" />

          </c:when>

          <c:otherwise>

              <c:set var="partialTriggers_" value="id_," scope="request" />

          </c:otherwise>

      </c:choose>

       

      <tr:commandButton text="Test" id="btn" partialTriggers="#{partialTriggers_}" />

       

      I have specified this template as component and using something like <comp:template partialTriggers="" />

       

      I have specified the jar dependencies and all but still getting the error.

       

      Can anyone help me in this?

       

      Thanks