You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "yanghao605 (via GitHub)" <gi...@apache.org> on 2023/08/21 11:08:43 UTC

[GitHub] [servicecomb-java-chassis] yanghao605 opened a new issue, #3912: o.a.s.common.rest.codec.RestCodec的解析请求参数异常的错误信息不合理

yanghao605 opened a new issue, #3912:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3912

   15:15:01 ERROR [group0-1-thread-1] o.a.s.common.rest.codec.RestCodec 73 ->  Parameter is not valid for operation [bids_service.bidsImportRestService.importRestBIDS]. Parameter is [packageFile]. Processor is [formData].
   java.lang.IllegalStateException: getReader() has already been called for this request
   	at org.apache.catalina.connector.Request.getInputStream(Request.java:1053)
   	at org.apache.tomcat.util.http.fileupload.servlet.ServletRequestContext.getInputStream(ServletRequestContext.java:102)
   	at org.apache.tomcat.util.http.fileupload.impl.FileItemIteratorImpl.init(FileItemIteratorImpl.java:178)
   	at org.apache.tomcat.util.http.fileupload.impl.FileItemIteratorImpl.getMultiPartStream(FileItemIteratorImpl.java:205)
   	at org.apache.tomcat.util.http.fileupload.impl.FileItemIteratorImpl.findNextItem(FileItemIteratorImpl.java:224)
   	at org.apache.tomcat.util.http.fileupload.impl.FileItemIteratorImpl.(FileItemIteratorImpl.java:142)
   	at org.apache.tomcat.util.http.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:277)
   	at org.apache.tomcat.util.http.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:301)
   	at org.apache.catalina.connector.Request.parseParts(Request.java:2849)
   	at org.apache.catalina.connector.Request.getParts(Request.java:2750)
   	at org.apache.catalina.connector.Request.getPart(Request.java:2916)
   	at org.apache.catalina.connector.RequestFacade.getPart(RequestFacade.java:803)
   	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:339)
   	at javax.servlet.http.HttpServletRequestWrapper.getPart(HttpServletRequestWrapper.java:339)
   	at org.apache.servicecomb.common.rest.codec.param.FormProcessorCreator$PartProcessor.getValue(FormProcessorCreator.java:185)
   	at org.apache.servicecomb.common.rest.codec.RestCodec.restToArgs(RestCodec.java:63)
   	at org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter.afterReceiveRequest(ServerRestArgsFilter.java:62)
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.prepareInvoke(AbstractRestInvocation.java:239)
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.invoke(AbstractRestInvocation.java:216)
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.runOnExecutor(AbstractRestInvocation.java:206)
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.lambda$scheduleInvocation$0(AbstractRestInvocation.java:162)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:750)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] chengyouling commented on issue #3912: o.a.s.common.rest.codec.RestCodec的解析请求参数异常的错误信息不合理

Posted by "chengyouling (via GitHub)" <gi...@apache.org>.
chengyouling commented on issue #3912:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3912#issuecomment-1687335598

   这个issue对应的PR是不是可以解决你的问题?
   https://github.com/apache/servicecomb-java-chassis/issues/3865


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] yanghao605 commented on issue #3912: o.a.s.common.rest.codec.RestCodec的解析请求参数异常的错误信息不合理

Posted by "yanghao605 (via GitHub)" <gi...@apache.org>.
yanghao605 commented on issue #3912:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3912#issuecomment-1686128176

   上述错误日志显示文件流已经被读取过一次了,但是在RestCodec中输出的错误信息却是参数不合法


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org