Hi,
We updated our application from 4.0p to latest 5.0p nightly (2015-10-31) and encountered the following error right at the startup of the application:
com.google.gwt.core.client.JavaScriptException: (ReferenceError) : criteria is not defined
at Unknown.fetchData_1_g...
Our app initializes some of our DataSources when starting up by calling OurDataSource.getInstance().fetchData(). We tracked down the problem to the method DataSource.java/fetchData method of 5.0p:
public native void fetchData() /*-{
var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();
if(@com.smartgwt.client.data.Criterion::instanceOf(Ljava/lang/Object;)(criteria)) {
@com.smartgwt.client.util.JSOHelper::setAttribute(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;Ljava/lang/String;)(criteria.@com.smartgwt.client.data.Criterion::getJsObj()(),"_constructor","AdvancedCriteria");
}
self.fetchData();
}-*/;
The application fails on the second line of this method because "criteria" is not set. 4.0p variant of this method does not have this line. Before debugging any furher (our application is quite complex) - any ideas what might be going on here ? Thanks!
We updated our application from 4.0p to latest 5.0p nightly (2015-10-31) and encountered the following error right at the startup of the application:
com.google.gwt.core.client.JavaScriptException: (ReferenceError) : criteria is not defined
at Unknown.fetchData_1_g...
Our app initializes some of our DataSources when starting up by calling OurDataSource.getInstance().fetchData(). We tracked down the problem to the method DataSource.java/fetchData method of 5.0p:
public native void fetchData() /*-{
var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();
if(@com.smartgwt.client.data.Criterion::instanceOf(Ljava/lang/Object;)(criteria)) {
@com.smartgwt.client.util.JSOHelper::setAttribute(Lcom/google/gwt/core/client/JavaScriptObject;Ljava/lang/String;Ljava/lang/String;)(criteria.@com.smartgwt.client.data.Criterion::getJsObj()(),"_constructor","AdvancedCriteria");
}
self.fetchData();
}-*/;
The application fails on the second line of this method because "criteria" is not set. 4.0p variant of this method does not have this line. Before debugging any furher (our application is quite complex) - any ideas what might be going on here ? Thanks!
Comment