Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.io.IOException: Stream Closed

User_HA9F5May 29 2019 — edited Jul 2 2019

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.

Comments
Post Details
Added on May 29 2019
4 comments
1,201 views