smoyer
06-17-2009, 01:04 PM
We have a laszlo application that loads datacombobox lists from datasets retrieved at runtime. We have several datasets defined on the canvas like this:
<dataset name="ourList" type="http" request="false" timeout="60000" queuerequests="true" />
DoRequest for each is called in the oninit method of the canvas:
ourList.setSrc(pathToServlet);
ourList.setQueryType("GET");
ourList.setQueryString({fileName: 'ourList.xml'});
ourList.doRequest();
The doGet method of a java servlet is called that passes the appropriate xml back to the canvas in the response. This works great for almost all of our users. We have a few users that end up with empty lists in the datacombobox. In this case, the onerror method fires and getErrorString() returns 'client could not parse XML from server'. We have never been able to replicate the error ourselves.
We use OL 3.4 and deploy in SOLO mode on an Apache server. We compile to SWF 8. Java runs on Tomcat. Proxied is set to false on the canvas. The content type of the response is set to "text/xml".
Does anyone see anything that we are doing wrong? Is there anything besides getErrorString() that could provide additional information so that we can resolve this?
<dataset name="ourList" type="http" request="false" timeout="60000" queuerequests="true" />
DoRequest for each is called in the oninit method of the canvas:
ourList.setSrc(pathToServlet);
ourList.setQueryType("GET");
ourList.setQueryString({fileName: 'ourList.xml'});
ourList.doRequest();
The doGet method of a java servlet is called that passes the appropriate xml back to the canvas in the response. This works great for almost all of our users. We have a few users that end up with empty lists in the datacombobox. In this case, the onerror method fires and getErrorString() returns 'client could not parse XML from server'. We have never been able to replicate the error ourselves.
We use OL 3.4 and deploy in SOLO mode on an Apache server. We compile to SWF 8. Java runs on Tomcat. Proxied is set to false on the canvas. The content type of the response is set to "text/xml".
Does anyone see anything that we are doing wrong? Is there anything besides getErrorString() that could provide additional information so that we can resolve this?