javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean

ICEsoft JIRA Issue Tracker | Arran Mccullough | 4 years ago
  1. 0

    [ICE-8480] ELException - Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean - ICEsoft JIRA Issue Tracker

    icesoft.org | 11 months ago
    javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean
  2. 0

    A custom converter has been created so that the ice:selectBooleanCheckbox can use a Byte value instead of a Boolean. Due to a known issue with JSF, a custom renderer for the CheckboxRenderer is required so that the getAsObject() method can be correctly called. This code is working fine with ICEfaces 1.8.x. Upon migration to ICEfaces 3.1.0 this code is no longer working and is throwing the following exception: javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) at javax.faces.component.UIOutput.getValue(UIOutput.java:169) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:43) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:143) at com.icesoft.faces.renderkit.dom_html_basic.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:84) at com.icesoft.faces.component.ext.renderkit.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:33) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    ICEsoft JIRA Issue Tracker | 4 years ago | Arran Mccullough
    javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean
  3. 0

    A custom converter has been created so that the ice:selectBooleanCheckbox can use a Byte value instead of a Boolean. Due to a known issue with JSF, a custom renderer for the CheckboxRenderer is required so that the getAsObject() method can be correctly called. This code is working fine with ICEfaces 1.8.x. Upon migration to ICEfaces 3.1.0 this code is no longer working and is throwing the following exception: javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) at javax.faces.component.UIOutput.getValue(UIOutput.java:169) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:43) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:143) at com.icesoft.faces.renderkit.dom_html_basic.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:84) at com.icesoft.faces.component.ext.renderkit.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:33) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    ICEsoft JIRA Issue Tracker | 4 years ago | Arran Mccullough
    javax.el.ELException: /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Passing objects via EJB RMI - NullPointerException

    Stack Overflow | 4 years ago | dakotapearl
    javax.el.ELException: /index.xhtml @18,90 value="#{webbean.stringViaObject}": java.lang.NullPointerException
  6. 0

    glassfish - connection with mysql crashes

    Stack Overflow | 4 years ago | greenskin
    javax.el.ELException: /system/index.xhtml @96,131 value="#{indexBean.documentNr}": javax.persistence.PersistenceException: Exception [EclipseLink-4019] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException Exception Description: Error while obtaining information about the database. Refer to the nested exception for more details.

  1. marcbouvierdav 3 times, last 3 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.el.ELException

    /welcomeICEfaces.xhtml @22,94 value="#{testBean.checkBoxValue}": Cannot convert 0 of type class java.lang.Byte to class java.lang.Boolean

    at com.sun.faces.facelets.el.TagValueExpression.getValue()
  2. JSF
    TagValueExpression.getValue
    1. com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)
    1 frame
  3. JavaEE 7
    UIOutput.getValue
    1. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
    2. javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
    3. javax.faces.component.UIOutput.getValue(UIOutput.java:169)
    3 frames
  4. com.icesoft.faces
    CheckboxRenderer.encodeBegin
    1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:43)
    2. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:143)
    3. com.icesoft.faces.renderkit.dom_html_basic.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:84)
    4. com.icesoft.faces.component.ext.renderkit.CheckboxRenderer.encodeBegin(CheckboxRenderer.java:33)
    4 frames
  5. JavaEE 7
    UIComponentBase.encodeBegin
    1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
    1 frame
  6. JSF
    GridRenderer.encodeChildren
    1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
    2. com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185)
    3. com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129)
    3 frames
  7. JavaEE 7
    Renderer.encodeChildren
    1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
    2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)
    3. javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
    3 frames
  8. org.icefaces.impl
    RendererWrapper.encodeChildren
    1. org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
    1 frame
  9. JavaEE 7
    UIComponent.encodeAll
    1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
    2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)
    3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
    4. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
    4 frames
  10. JSF
    LifecycleImpl.render
    1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
    2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    3. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
    4. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    5. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    5 frames
  11. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    1 frame
  12. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  13. org.netbeans.modules
    MonitorFilter.doFilter
    1. org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    1 frame
  14. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    10 frames
  15. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    3 frames
  16. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:662)
    3 frames