阅读:2817 回复:2
实名用户_f4853669
2

帖子

3

跟帖

96

积分

初级榴莲
初级榴莲

[BUG反馈]java 10.6 restful接口Post请求500错误

楼主#
更多 发布于:2019-05-27 20:01
Portal端日志
2019-05-27 19:52:43 - [ERROR] - Required request body is missing: public OThinker.H3.Controller.RestfulApi.Entity.RestfulApiResult OThinker.H3.Controller.RestfulApi.OrgRestfulApi.addOrgPost(OThinker.H3.Portal.webservices.Entity.OrgPostView) - com.h3bpm.base.controller.handler.ExceptionAdviceHandler.exceptionHandler(ExceptionAdviceHandler.java:39)
org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public OThinker.H3.Controller.RestfulApi.Entity.RestfulApiResult OThinker.H3.Controller.RestfulApi.OrgRestfulApi.addOrgPost(OThinker.H3.Portal.webservices.Entity.OrgPostView)
       at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:154)
       at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:128)
       at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
       at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:158)
       at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128)
       at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
       at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
       at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
       at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
       at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
       at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
       at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
       at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
       at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at com.h3bpm.base.zipkin.CustomizingDelegatingTracingFilter.doFilter(CustomizingDelegatingTracingFilter.java:20)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
       at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:209)
       at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:244)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
       at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2555)
       at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2544)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
       at java.lang.Thread.run(Thread.java:748)
请问有大神遇到过这样的问题吗,该如何解决
实名用户_f4853669
2

帖子

3

跟帖

96

积分

初级榴莲
初级榴莲
1楼#
发布于:2019-05-27 20:03

描述:POST请求

图片:2863E1FF-3080-4b6d-9C91-F79644BDD5EB.png

POST请求
@tiger
2

帖子

7

跟帖

120

积分

初级榴莲
初级榴莲
2楼#
发布于:2019-07-03 02:39
碰到通过样的问题,有大神出来解答的吗?
游客

返回顶部