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:
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:
This causes smartgwt to throw an uncaught exception, which crashes everything. If we remove the outputs columns, like so:
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
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; } }
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>
Code:
<operationBinding operationType="fetch" operationId="rapidRoomSearch" serverMethod="room"> <serverObject lookupStyle="new" className="hti.nova.server.DMI.operations.RapidCharge" /> </operationBinding>
Comment