java.lang.ClassCastException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19011

  • via JIRA by Michal Malohlava, 9 months ago
    com.sun.proxy.$Proxy19 cannot be cast to water.api.API
  • com.sun.proxy.$Proxy19 cannot be cast to com.hibernate.dao.EvntDAOImpl
  • com.sun.proxy.$Proxy1220 cannot be cast to org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.