IBM Support

IBM FileNet FDM: Intermittent error java.net.SocketException: Connection reset

Troubleshooting


Problem

FileNet Deployment Manager (FDM) intermittently errors during the export step and the following error is found in FDM deployment.log file: filenet_error.api.com.filenet.apiimpl.imex.LoggingStream - The export process is stopping because an exception is being thrown ... com.filenet.api.exception.EngineRuntimeException: FNRCE0066E: E_UNEXPECTED_EXCEPTION: An unexpected exception occurred. The unexpected exception is chained to this exception. Message was: Connection reset at com.filenet.imex.impl.threads.ContentQueueItem.writeContentToDisk(ContentQueueItem.java:211) at com.filenet.imex.impl.threads.ContentQueueItem.downloadContent(ContentQueueItem.java:102) at com.filenet.imex.impl.threads.ExportContentConsumer.run(ExportContentConsumer.java:67) ... Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:200) at java.net.SocketInputStream.read(SocketInputStream.java:132) ... sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnect… at java.io.FilterInputStream.read(FilterInputStream.java:144) at java.io.PushbackInputStream.read(PushbackInputStream.java:197)

Symptom

- The error is likely to occur with larger datasets.

- No errors found in WebSphere system logs.

Resolving The Problem

First, add the following configuration settings to work around a Java bug:

1. Add the following JVM parameter to the JVM hosting Content Engine (CE):
-DFileNet.WSI.HttpFaultResponseCode=599

2. Add the following JVM parameter on the client (FDM):
-Dsun.net.http.retryPost=false

To do so, add it to DeploymentManager.ini
-vm
C:/Program Files (x86)/IBM/FileNet/ContentEngine/tools/_jvm/jre/bin
-vmargs
-Xms256m
-Xmx768m
-Dsun.net.http.retryPost=false

If IBM HTTP Server (IHS) is between FDM and CE, also add to the CE JVM:
-Dsun.net.http.retryPost=false

Second, set the persistent connections to unlimited to work around a WebSphere bug. This is a connection reset during an HTTP chunked input stream read, and is therefore likely to be caused by this WebSphere APAR.

PI11176: RST CONNECTION IF LEFT 1 OR 2 BYTES UNREAD DURING THE HTTP POST AND CHUNKING
http://www-01.ibm.com/support/docview.wss?uid=swg1PI11176

The current work around for this behavior is to set the "persistent connections" setting in the HTTP Channels of WebSphere to "Unlimited persistent requests per connection".

This can be found in the following location in WAS 8.5.5:

1. Sign in to WebSphere Integrated Solutions.
1. Navigate to Servers > Server Types > WebSphere application servers > server_name > Ports.
2. Click "View associated transports" at WC_defaulthost.
3. Click HTTPQueueInboundDefault.
4. Click HTTP inbound channel
5. Under Persistent connections,
5.A. Check <checkbox> Use persistent keep alive connections.
5.B. Click Unlimited persistent requests per connection.

You should change this setting for both WC_defaulthost and WC_defaulthost_secure.

[{"Product":{"code":"SSNW2F","label":"FileNet P8 Platform"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Content Engine","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.2.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
FileNet P8 Platform

Software version:
5.2.1

Operating system(s):
Windows

Document number:
279253

Modified date:
17 June 2018

UID

swg21983298