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

JIRA | Michal Malohlava | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 6 months ago | Michal Malohlava
    java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to water.api.API
  2. 0

    Help:basic RMI question

    Google Groups | 2 decades ago | Paolo De Lutiis
    java.lang.ClassCastException: serverPackage.ServerClass_Stub at clientPackage.myApplet.init(myApplet.java:line#) at sun.applet.AppletPanel.run(AppletPanel.java:273) at java.lang.Thread.
  3. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Shared hosting Bungeecord problems.

    GitHub | 3 years ago | Arksenu
    java.lang.ClassCastException: bka cannot be cast to fs All my servers are set to onlinemode: false Here is my config.yml groups: arksenu: - admin disabled_commands: - find player_limit: -1 stats: 347d1d62-6fb6-4869-bd43-7d0745de8e3c permissions: default: - bungeecord.command.server - bungeecord.command.list admin: - bungeecord.command.ip - bungeecord.command.alert - bungeecord.command.end - bungeecord.command.reload listeners: - max_players: 18 fallback_server: hub host: 0.0.0.0:35289 bind_local_address: true ping_passthrough: false tab_list: GLOBAL_PING default_server: hub forced_hosts: pvp.md-5.net: hub tab_size: 60 force_default_server: true motd: ’Network’ query_enabled: false query_port: 25565 timeout: 30000 connection_throttle: 4000 servers: hub: address: 108.170.8.146:35289 restricted: false motd: test UvGames: address: 66.85.165.170:26200 restricted: false motd: test UvPrison: address: 66.85.128.90:25928 restricted: false motd: test ip_forward: false online_mode: true And here is my console message -> UpstreamBridge has disconnected disconnected with: Exception Connecting:RuntimeException : Server is online mode! @ net.md_5.bungee.ServerConnector:188
  6. 0

    SWTBot/Troubleshooting - Eclipsepedia

    eclipse.org | 1 year ago
    java.lang.ClassCastException: org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:331) at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208) at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:115) at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)

    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