SmartGWTPower 2.3
GWT 1.7
Code from MainEntryPoint.java class
The RPCManager.setLoginRequiredCallback(lrc) call is throwing this error in the GWT Console:
When I comment out the RPCManager.setLoginRequiredCallback(lrc) call, my application appears to work (with the exception of the timeout callback feature). When I uncomment that RPCManager call, I see the error in the GWT Log.
Can you reproduce this error?
GWT 1.7
Code:
class TZLoginRequiredCallback implements LoginRequiredCallback { public void loginRequired(int transactionNum, com.smartgwt.client.rpc.RPCRequest request, com.smartgwt.client.rpc.RPCResponse response) { SC.say("TZ", "You have been logged out, do you want to proceed to login page?", new BooleanCallback() { public void execute(Boolean value) { if(value != null && value) { Window.Location.replace(GWT.getHostPageBaseURL() + "login.jsp"); } } }); } }
Code:
LoginRequiredCallback lrc = new TZLoginRequiredCallback(); RPCManager.setLoginRequiredCallback(lrc);
Code:
[ERROR] Unable to load module entry point class com.ancerno.tz.client.MainEntryPoint (see associated exception for details) com.google.gwt.core.client.JavaScriptException: (TypeError): Object expected number: -2146823281 description: Object expected at com.smartgwt.client.rpc.RPCManager.setLoginRequiredCallback(Native Method) at com.ancerno.tz.client.MainEntryPoint.onModuleLoad(MainEntryPoint.java:68)
Can you reproduce this error?
Comment