Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

exception during DMI crashes Tomcat

$
0
0
We have found one particular issue that is causing Smartgwt to throw an uncaught exception and that causes tomcat to crash. We fixed the issue but we are not convinced that this is the end of it.

We have a DMI:
Code:

public class RapidCharge {

        public DSResponse room(DSRequest req) throws Exception { 
                DSResponse response = new DSResponse(); 
                response.setData("Just plain text");
                //response.setDate(new LinkedList<Map<String,Object>());
                return response; 
        }
}

In the DSResponse, if we dont set the data or we set it with text or we set it with an empty list and we have our Operation Binding configured, like so:

Code:

<operationBinding operationType="fetch" operationId="rapidRoomSearch" serverMethod="room" outputs="ID,IDINVOICE,IDRESERVATION,Property,Status,NameFirstName,NameLastname,ConWorkTelephone,ConCellNumber"> 
            <serverObject 
                lookupStyle="new" 
                className="hti.nova.server.DMI.operations.RapidCharge" 
            /> 
        </operationBinding>       
        </operationBindings>

This causes smartgwt to throw an uncaught exception, which crashes everything. If we remove the outputs columns, like so:

Code:

<operationBinding operationType="fetch" operationId="rapidRoomSearch" serverMethod="room"> 
            <serverObject 
                lookupStyle="new" 
                className="hti.nova.server.DMI.operations.RapidCharge" 
            /> 
        </operationBinding>

Then it works. I have made a fix and upgraded this morning, it still continued with the same issue, not sure if something similar is happening else where

Viewing all articles
Browse latest Browse all 4756

Trending Articles