java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

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

    When using an f:param with the ace:linkButton that doesn't use a String object the following exception is thrown: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.icefaces.ace.util.Utils.asParameterString(Utils.java:288) at org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeHref(LinkButtonRenderer.java:122) at org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeBegin(LinkButtonRenderer.java:102) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:75) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:66) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) 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:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) 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:305) 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:225) 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:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) This is only an issue with the ICEfaces 3.3.0 and recent releases. Testing with the EE 3.2.0 release does not cause this error. This is likely due to the changes made in ICE-8944.

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  2. 0

    When using an f:param with the ace:linkButton that doesn't use a String object the following exception is thrown: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String at org.icefaces.ace.util.Utils.asParameterString(Utils.java:288) at org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeHref(LinkButtonRenderer.java:122) at org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeBegin(LinkButtonRenderer.java:102) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:75) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:66) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826) 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:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) 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:305) 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:225) 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:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) This is only an issue with the ICEfaces 3.3.0 and recent releases. Testing with the EE 3.2.0 release does not cause this error. This is likely due to the changes made in ICE-8944.

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  3. 0

    WSO2 ESB - From VFS to JMS MessageStore

    Stack Overflow | 3 years ago | elPrez1983
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How do you prepopulate an IT Resource field?

    Oracle Community | 7 years ago | 703604
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long
  6. 0

    Classcast exception when running FullTest for Firefox 25

    GitHub | 3 years ago | soulgalore
    java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

    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. java.lang.ClassCastException

      java.lang.Long cannot be cast to java.lang.String

      at org.icefaces.ace.util.Utils.asParameterString()
    2. org.icefaces.ace
      LinkButtonRenderer.encodeBegin
      1. org.icefaces.ace.util.Utils.asParameterString(Utils.java:288)
      2. org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeHref(LinkButtonRenderer.java:122)
      3. org.icefaces.ace.component.linkbutton.LinkButtonRenderer.encodeBegin(LinkButtonRenderer.java:102)
      3 frames
    3. JavaEE 7
      UIComponentBase.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822)
      1 frame
    4. org.icefaces.ace
      PanelRenderer.encodeEnd
      1. org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:75)
      2. org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:66)
      3. org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:238)
      4. org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:135)
      5. org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:73)
      5 frames
    5. JavaEE 7
      Renderer.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1826)
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      3 frames
    6. org.icefaces.impl
      RendererWrapper.encodeChildren
      1. org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
      1 frame
    7. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      3. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      4. javax.faces.component.UIComponent.encodeAll(UIComponent.java:1822)
      4 frames
    8. JSF
      MultiViewHandler.renderView
      1. com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:447)
      2. com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      2 frames
    9. JavaEE 7
      ViewHandlerWrapper.renderView
      1. javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      1 frame
    10. JSF
      LifecycleImpl.render
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      3 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:305)
      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:225)
      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:98)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      10 frames
    15. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
      3 frames
    16. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames