Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SERVER_TRANSPORT error

    Hi Isomorphic,

    We have an application which communicates with database with expensive DB operations. But we are getting "Server returned TRANSPORT_ERROR with no error message performing operation" message pop up when we deploy our application in tomcat. But this we wont see when we run through GWT inbuilt server through IDE.

    We have set time out of dsRequest to 30 min. Below is our code.

    Code:
     public DataGrid(SearchManager reportParams) {
            setAlternateRecordStyles(true);
            setAutoFitExpandField("REVENUE");
            setCanEdit(false);
            setCanResizeFields(true);
            setShowGridSummary(true);
            setShowGroupSummary(true);
            setShowGroupSummaryInHeader(true);
            setShowFilterEditor(true);
            String imgHTML = imgHTML(StringClientDefinitions.LOADING_IMAGE_PATH, IntegerConst.LOADING_MSG_WIDTH, IntegerConst.LOADING_ICON_HEIGHT);
            setLoadingDataMessage("Loading..." + " <br> " + imgHTML);
            setFields(getColumnsList(reportParams));
            setDataPageSize(IntegerConst.DATA_PAGE_SIZE);
            setGroupByMaxRecords(IntegerConst.RECORD_SIZE);
            setDataSource(DataSource.get(reportParams.getReportsDataSourceID()));
            setFetchOperation(reportParams.getReportsOperationID());
            Criteria criteria = reportParams.getCriteria();
            setCriteria(criteria);
            setInitialCriteria(criteria);
            setInitialSort(reportParams.getGridSortParameters());
            setVisibleColumns(reportParams);
            DSRequest dsRequest = new DSRequest();
            dsRequest.setTimeout(1800000);
            filterData(criteria, new DSCallback() {
                public void execute(DSResponse dsResponse, Object o, DSRequest dsRequest) {
                }
            }, dsRequest);
        }
    Do we need to mention anything in server.properties to avoid timeout issue? or let us know why we will get SERVER_TRANSPORT error.

    Thanks,
    Yathish

    #2
    Browsers, servers and intervening network devices may as enforce timeouts which a web application cannot control. A good rule of thumb is not to try to have a request last longer than two minutes. Beyond that, have the server kick off a long-running process (use eg Quartz or JMS) the return an immediate response to the browser telling it to check back for results later.

    Comment

    Working...
    X