当响应大小较大时,我收到以下错误,我们可以通过在 Apigee 中启用流式处理来修复以下错误(目前超出范围,因为需要在所有上游流中工作)
The error pasted below: {"Envelope":{"Body":{"Fault":{"faultcode":"soap:Server","detail":{"source":{"errorcode":"protocol.http.TooBigBody"}},"faultstring":"Body buffer overflow","faultactor":{}}},"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/"}
Run Code Online (Sandbox Code Playgroud)
我计划当我们从下游系统收到上述错误时提出故障。HTTP 状态代码应该是什么?
413请求实体太大
400“消息:反应很大”
我想将单元格值转换为int值,所以我尝试下面的代码:
for (int chk1 = 1; chk1 < m; chk1++ ) {
int intCounter = Integer.parseInt( cells.checkCell(chk1,0).getValue().toString() );
}
Run Code Online (Sandbox Code Playgroud)
但它只接受字符串格式,如果有任何数字然后它给了我
java.lang.NumberFormatException
Run Code Online (Sandbox Code Playgroud)
我怎么能避免这个?有没有办法将所有数据转换为整数或转换为字符串,反之亦然?