Wildfly 开始返回 UT000128:在读取所有数据之前远程对等点已关闭连接

问题描述 投票:0回答:1

我们在 AWS 上的 JBoss Wildfly 上部署了一个 Java 应用程序(在带有 ELB 的 EC2 实例上)。

应用程序的功能是上传文件。

但是突然没有任何更改上传开始失败并出现错误: “UT000128:在读取所有数据之前,远程对等点关闭了连接”

会是AWS的问题吗?我们可以做什么? 重新启动 EC2 实例没有帮助

@POST
@Path("/")
@Consumes({TEXT_CSV, APPLICATION_XLSX, APPLICATION_ZIP})
@Produces("application/json;charset=UTF-8")
public Response postDataFile(InputStream is) {
   File file = null;
   try {
     file = File.createTempFile("prefix", "suffix");
     try (FileOutputStream os = new FileOutputStream(file)) {
       byte[] buf = new byte[1024];
       int count;
       while ((count = is.read(buf)) != -1) { // Here exception is thrown
         os.write(buf, 0, count);
       }
     }

在以下行中抛出异常:

is.read(buf)

java amazon-web-services wildfly
1个回答
0
投票

@SebinThomas 我在哪里可以找到 httpd.config 文件。我找不到 Firefox 浏览器面临同样的问题

© www.soinside.com 2019 - 2024. All rights reserved.