在发布带附件的SOAP时,附件的大小大于10 MB。在Wildfly 10.1上由对等方重置连接的套接字异常

时间:2017-06-02 06:25:48

标签: sockets soap wildfly

我已在Wildfly 10.1.0 Final上部署了我的应用程序。我创建一个带附件的SOAP消息并发布该SOAP消息。附件存储在数据库中,并在发布SOAP消息之前获取。如果附件大小小于10 MB,则会成功发布SOAP消息。

如果发生异常,附件大小大于10 MB:

    Caused by: java.net.SocketException: Connection reset by peer: socket write error
361 
    at java.net.SocketOutputStream.socketWrite0(Native Method)
362 
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
363 
    at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
364 
    at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
365 
    at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
366 
    at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:876)
367 
    at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:847)
368 
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
369 
    at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:126)
370 
    at org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:162)
371 
    at org.apache.http.impl.io.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:124)
372 
    at org.apache.http.impl.io.ChunkedOutputStream.write(ChunkedOutputStream.java:181)
373 
    at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:116)
374 
    at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:158)
375 
    at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:162)
376 
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:237)
377 
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:122)
378 
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
379 
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
380 
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
381 
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
382 
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
383 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
384 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
385 
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)

其他应用程序服务器上不会发生此问题。这个问题是WildFly特有的吗? WildFly配置中是否有任何疑难解答?

1 个答案:

答案 0 :(得分:0)

问题已解决。我需要为http监听器调整WildFly配置。我更改了max-post-size和max-header-size的值以适合我的大肥皂附件。