java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API

JIRA | Michal Malohlava | 2 months ago
  1. 0

    1. Launch Sparkling Water: ``` $SPARK_HOME/bin/spark-submit \ --class water.SparklingWaterDriver \ --packages ai.h2o:sparkling-water-examples_2.11:2.0.0 \ --executor-memory=8g \ --driver-memory=8g \ --conf spark.driver.extraJavaOptions="-XX:MaxPermSize=384m" \ --conf spark.executor.extraJavaOptions="-XX:MaxPermSize=256m" \ --conf spark.ext.h2o.node.log.level=INFO \ --conf spark.ext.h2o.client.log.level=INFO \ ``` 2. insert scala cell 3. invoke `println(hc)` in the scala cell In the console, you should get {noformat} 16/10/04 11:47:06 WARN ServletHandler: /3/scalaint/1 java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API at water.Weaver.make_body(Weaver.java:382) at water.Weaver.genIcerClass(Weaver.java:202) at water.Weaver.javassistLoadClass(Weaver.java:154) at water.Weaver.genDelegate(Weaver.java:74) at water.TypeMap.getIcer(TypeMap.java:190) at water.TypeMap.getIcer(TypeMap.java:177) at water.Iced.icer(Iced.java:55) at water.Iced.writeJSON(Iced.java:65) at water.api.schemas3.SchemaV3.writeJSON(SchemaV3.java:63) at water.Iced.toJsonString(Iced.java:77) at water.api.RequestServer.serveSchema(RequestServer.java:611) at water.api.RequestServer.serveError(RequestServer.java:646) at water.api.RequestServer.serve(RequestServer.java:434) at water.api.RequestServer.doGeneric(RequestServer.java:245) at water.api.RequestServer.doPost(RequestServer.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745) java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API at water.Weaver.make_body(Weaver.java:382) at water.Weaver.genIcerClass(Weaver.java:202) at water.Weaver.javassistLoadClass(Weaver.java:154) at water.Weaver.genDelegate(Weaver.java:74) at water.TypeMap.getIcer(TypeMap.java:190) at water.TypeMap.getIcer(TypeMap.java:177) at water.Iced.icer(Iced.java:55) at water.Iced.frozenType(Iced.java:83) at water.AutoBuffer.put(AutoBuffer.java:735) at water.api.LogAndEchoHandler$1$Icer.write65(LogAndEchoHandler$1$Icer.java) at water.api.LogAndEchoHandler$1$Icer.write(LogAndEchoHandler$1$Icer.java) at water.H2O$H2OCountedCompleter.write(H2O.java:1237) at water.AutoBuffer.put(AutoBuffer.java:736) at water.RPC.call(RPC.java:201) at water.MRTask.remote_compute(MRTask.java:566) at water.MRTask.setupLocal0(MRTask.java:526) at water.MRTask.dfork(MRTask.java:408) at water.MRTask.doAll(MRTask.java:400) at water.MRTask.doAllNodes(MRTask.java:413) at water.api.LogAndEchoHandler.echo(LogAndEchoHandler.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.serve(RequestServer.java:394) at water.api.RequestServer.doGeneric(RequestServer.java:245) at water.api.RequestServer.doPost(RequestServer.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) {noformat}

    JIRA | 2 months ago | Michal Malohlava
    java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API
  2. 0

    1. Launch Sparkling Water: ``` $SPARK_HOME/bin/spark-submit \ --class water.SparklingWaterDriver \ --packages ai.h2o:sparkling-water-examples_2.11:2.0.0 \ --executor-memory=8g \ --driver-memory=8g \ --conf spark.driver.extraJavaOptions="-XX:MaxPermSize=384m" \ --conf spark.executor.extraJavaOptions="-XX:MaxPermSize=256m" \ --conf spark.ext.h2o.node.log.level=INFO \ --conf spark.ext.h2o.client.log.level=INFO \ ``` 2. insert scala cell 3. invoke `println(hc)` in the scala cell In the console, you should get {noformat} 16/10/04 11:47:06 WARN ServletHandler: /3/scalaint/1 java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API at water.Weaver.make_body(Weaver.java:382) at water.Weaver.genIcerClass(Weaver.java:202) at water.Weaver.javassistLoadClass(Weaver.java:154) at water.Weaver.genDelegate(Weaver.java:74) at water.TypeMap.getIcer(TypeMap.java:190) at water.TypeMap.getIcer(TypeMap.java:177) at water.Iced.icer(Iced.java:55) at water.Iced.writeJSON(Iced.java:65) at water.api.schemas3.SchemaV3.writeJSON(SchemaV3.java:63) at water.Iced.toJsonString(Iced.java:77) at water.api.RequestServer.serveSchema(RequestServer.java:611) at water.api.RequestServer.serveError(RequestServer.java:646) at water.api.RequestServer.serve(RequestServer.java:434) at water.api.RequestServer.doGeneric(RequestServer.java:245) at water.api.RequestServer.doPost(RequestServer.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745) java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API at water.Weaver.make_body(Weaver.java:382) at water.Weaver.genIcerClass(Weaver.java:202) at water.Weaver.javassistLoadClass(Weaver.java:154) at water.Weaver.genDelegate(Weaver.java:74) at water.TypeMap.getIcer(TypeMap.java:190) at water.TypeMap.getIcer(TypeMap.java:177) at water.Iced.icer(Iced.java:55) at water.Iced.frozenType(Iced.java:83) at water.AutoBuffer.put(AutoBuffer.java:735) at water.api.LogAndEchoHandler$1$Icer.write65(LogAndEchoHandler$1$Icer.java) at water.api.LogAndEchoHandler$1$Icer.write(LogAndEchoHandler$1$Icer.java) at water.H2O$H2OCountedCompleter.write(H2O.java:1237) at water.AutoBuffer.put(AutoBuffer.java:736) at water.RPC.call(RPC.java:201) at water.MRTask.remote_compute(MRTask.java:566) at water.MRTask.setupLocal0(MRTask.java:526) at water.MRTask.dfork(MRTask.java:408) at water.MRTask.doAll(MRTask.java:400) at water.MRTask.doAllNodes(MRTask.java:413) at water.api.LogAndEchoHandler.echo(LogAndEchoHandler.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at water.api.Handler.handle(Handler.java:56) at water.api.RequestServer.serve(RequestServer.java:394) at water.api.RequestServer.doGeneric(RequestServer.java:245) at water.api.RequestServer.doPost(RequestServer.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) {noformat}

    JIRA | 2 months ago | Michal Malohlava
    java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API
  3. 0

    Using @Transactional annotation for hibernate application resulting in error

    Stack Overflow | 2 years ago | Bhargav Kumar R
    java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to com.hibernate.dao.EvntDAOImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Lumber Liquidators: Hardwood Floors For Less!

    lumberliquidators.com | 9 months ago
    org.apache.tiles.request.render.CannotRenderException: ServletException including path '/WEB-INF/views/ll/template_home.jsp'.
  6. 0

    3.1: ES Search Portlet does not load in Weblogic 10.3.6

    GitHub | 2 years ago | joseorsini
    java.lang.ClassCastException: com.sun.proxy.$Proxy52 cannot be cast to weblogic.servlet.internal.ServletRequestImpl

    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

      com.sun.proxy.$Proxy19 cannot be cast to water.api.API

      at water.Weaver.make_body()
    2. water
      Iced.writeJSON
      1. water.Weaver.make_body(Weaver.java:382)
      2. water.Weaver.genIcerClass(Weaver.java:202)
      3. water.Weaver.javassistLoadClass(Weaver.java:154)
      4. water.Weaver.genDelegate(Weaver.java:74)
      5. water.TypeMap.getIcer(TypeMap.java:190)
      6. water.TypeMap.getIcer(TypeMap.java:177)
      7. water.Iced.icer(Iced.java:55)
      8. water.Iced.writeJSON(Iced.java:65)
      8 frames
    3. water.api.schemas3
      SchemaV3.writeJSON
      1. water.api.schemas3.SchemaV3.writeJSON(SchemaV3.java:63)
      1 frame
    4. water
      Iced.toJsonString
      1. water.Iced.toJsonString(Iced.java:77)
      1 frame
    5. water.api
      RequestServer.doPost
      1. water.api.RequestServer.serveSchema(RequestServer.java:611)
      2. water.api.RequestServer.serveError(RequestServer.java:646)
      3. water.api.RequestServer.serve(RequestServer.java:434)
      4. water.api.RequestServer.doGeneric(RequestServer.java:245)
      5. water.api.RequestServer.doPost(RequestServer.java:199)
      5 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      2 frames
    7. Jetty
      BlockingHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      11. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
      12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      13. org.eclipse.jetty.server.Server.handle(Server.java:370)
      14. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      15. org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
      16. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
      17. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
      18. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
      19. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
      20. org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
      20 frames
    8. GWT dev
      SocketConnector$ConnectorEndPoint.run
      1. org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
      1 frame
    9. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      2 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame