Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render(String) 报错 #56

Open
Mvpanswer7 opened this issue Nov 22, 2017 · 0 comments
Open

render(String) 报错 #56

Mvpanswer7 opened this issue Nov 22, 2017 · 0 comments

Comments

@Mvpanswer7
Copy link

Mvpanswer7 commented Nov 22, 2017

在controller里使用render(字符串)时,一直报这个错,不知道是哪里用错了
java.lang.AbstractMethodError: net.csdn.modules.http.DefaultResponse.originContent(Ljava/lang/String;)Lnet/csdn/modules/http/RestResponse;
at net.csdn.modules.http.ApplicationController.render(ApplicationController.java:121) at streaming.rest.RestController.deleteParam(RestController.scala:111) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.csdn.modules.http.RestController.filter(RestController.java:139) at net.csdn.modules.http.RestController.dispatchRequest(RestController.java:99) at net.csdn.modules.http.HttpServer$DefaultHandler.handle(HttpServer.java:184) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)
[2017-11-22 10:25:40,309][ERROR][modules.http ] System processing error java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.csdn.modules.http.RestController.filter(RestController.java:139) at net.csdn.modules.http.RestController.dispatchRequest(RestController.java:99) at net.csdn.modules.http.HttpServer$DefaultHandler.handle(HttpServer.java:184) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.AbstractMethodError: net.csdn.modules.http.DefaultResponse.originContent(Ljava/lang/String;)Lnet/csdn/modules/http/RestResponse;
at net.csdn.modules.http.ApplicationController.render(ApplicationController.java:121) at streaming.rest.RestController.deleteParam(RestController.scala:111) ... 16 more [2017-11-22 10:25:40,311][INFO ][modules.http.processor.impl] Completed 500 in 91ms POST /admin/params/delete

[2017-11-22 10:25:40,311][WARN ][org.eclipse.jetty.server.HttpChannel] /admin/params/delete java.lang.NullPointerException
at java.io.PrintWriter.write(PrintWriter.java:473) at net.csdn.modules.http.DefaultResponse.output(DefaultResponse.java:196) at net.csdn.modules.http.DefaultResponse.error(DefaultResponse.java:190) at net.csdn.modules.http.HttpServer$DefaultHandler.defaultErrorAction(HttpServer.java:159) at net.csdn.modules.http.HttpServer$DefaultHandler.handle(HttpServer.java:196) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant