we have web application using ridc api to check in document into wcc, it works fine whereas connection inactive for 4 hours, trying to upload first time we get error after then it works fine, we see this error every day first in the morning,
error message
oracle.stellent.ridc.protocol.ProtocolException: java.io.IOException: Stream Closed
at oracle.stellent.ridc.protocol.http.IdcHttpProtocol.sendRequest(IdcHttpProtocol.java:479) ~[ridc-11.1.1.jar:11.1.1]
at oracle.stellent.ridc.protocol.http.auth.FormAuthHandler.sendAuthenticatedRequest(FormAuthHandler.java:137) ~[ridc-11.1.1.jar:11.1.1]
at oracle.stellent.ridc.protocol.http.IdcHttpProtocol.writeRequest(IdcHttpProtocol.java:230) ~[ridc-11.1.1.jar:11.1.1]
at oracle.stellent.ridc.IdcClient.sendRequest(IdcClient.java:181) ~[ridc-11.1.1.jar:11.1.1]
Environemnt
wcc: 11.1.1.8
OS: solaris64
DB: Oracle 11g enterprise edition
sample code
public WccResponse uploadDocument(File file) throws IOException, IdcClientException {
IdcContext idcContext = wccConfigService.getIdcContext();
IdcClient idcClient = wccConfigService.getIdcClient();
ServiceResponse response;
DataBinder binder = initialiseBinder(idcClient);
binder.putLocal(IDC_SERVICE, CHECKIN_UNIVERSAL);
binder.putLocal(D_DOC_TITLE, file.getName());
binder.addFile(PRIMARY_FILE, new TransferFile(file, file.getName()));
try {
response = idcClient.sendRequest(idcContext, binder);
} catch (IdcClientException e) {
LOG.error("Error Uploading to WCC: {}", e);
throw new WccException("Error Uploading to WCC::" + file.getName());
}
DataBinder responseData = response.getResponseAsBinder();
LOG.info("WCC document created. Name: '{}', Id: '{}'", responseData.getLocal(D_DOC_NAME), responseData.getLocal(D_ID));
return new WccResponse(responseData.getLocal(D_ID), responseData.getLocal(D_DOC_NAME));
}
any help, how can resolve the issue.