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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Michal Malohlava, 1 year ago
com.sun.proxy.$Proxy19 cannot be cast to water.api.API
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.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.