azizbodal
31 Dec 2010, 8:16 AM
I am trying to run the XML example that is shown in the Example Explorer however I am not able to to get it to work. I have one modification to the code which is the path to the XML. I have modified it to :
String path = "http://www.sencha.com/examples/data/data.xml";
// use a http proxy to get the data
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, path);
....
When I click the 'Load XML' button, all I get is a 'Loading' message on the grid. Try to debug it, the issue seems to be orginating from the BaseLoader class LoadData Async callback which fails:
protected void loadData(final Object config) {
AsyncCallback<D> callback = new AsyncCallback<D>() {
public void onFailure(Throwable caught) {
onLoadFailure(config, caught);
}
public void onSuccess(D result) {
onLoadSuccess(config, result);
}
};
if (proxy == null) {
loadData(config, callback);
return;
}
proxy.load(reader, config, callback);
}
The exception caught onFailure is:
java.lang.RuntimeException: HttpProxy: Invalid status code 0
Any help will be greatly appreciated.
Thank you.
Aziz Bodal
String path = "http://www.sencha.com/examples/data/data.xml";
// use a http proxy to get the data
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, path);
....
When I click the 'Load XML' button, all I get is a 'Loading' message on the grid. Try to debug it, the issue seems to be orginating from the BaseLoader class LoadData Async callback which fails:
protected void loadData(final Object config) {
AsyncCallback<D> callback = new AsyncCallback<D>() {
public void onFailure(Throwable caught) {
onLoadFailure(config, caught);
}
public void onSuccess(D result) {
onLoadSuccess(config, result);
}
};
if (proxy == null) {
loadData(config, callback);
return;
}
proxy.load(reader, config, callback);
}
The exception caught onFailure is:
java.lang.RuntimeException: HttpProxy: Invalid status code 0
Any help will be greatly appreciated.
Thank you.
Aziz Bodal