Hello!
I've updated my version of smartGWT because i want to get the latest version of Timeline object but now i get the following error:
This is the stack trace:
I think this occurs when i want to get records from detasource while setAllCacheData is true. The first time gets all data from the server correctly. The second time the fecht occurs in the client side and it doesn't return anything. I tested with several versions of April until the 2013-04-24 version and all fails. But the version 2013-01-27 works fine.
Here is a simple testCase:
DataSource class with Jersey RestFull and Json
- SmartClient Version: SNAPSHOT_v9.0d_2013-04-01/LGPL Development Only (built 2013-04-01)
Browser: Firefox 20.0 for Ubuntu
Here are some pictures attached from smartGWT console. The Consola1.jpg is the fetch for ther server and gets results. The consola2.jpg is the fetch client Only and doesnĄt return anythin.
Can anyone help me, please?
I've updated my version of smartGWT because i want to get the latest version of Timeline object but now i get the following error:
Code:
[ERROR] [ns] - 00:37:43.407:TMR7:WARN:Log:TypeError: _7 is null Stack from error.stack: DataSource._handleClientOnlyReply/_6() @ ns/sc/modules/ISC_DataBinding.js:501 DataSource._handleClientOnlyReply() @ ns/sc/modules/ISC_DataBinding.js:502 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:296 anonymous() @ ns/sc/modules/ISC_DataBinding.js:1229 $wnd.isc.RPCManager.fireReplyCallback() @ :247 [c]RPCManager.fireReplyCallbacks() @ ns/sc/modules/ISC_DataBinding.js:1230 [c]RPCManager.performOperationReply() @ ns/sc/modules/ISC_DataBinding.js:1229 RPCManager._performTransactionReply() @ ns/sc/modules/ISC_DataBinding.js:1225 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 Timer._fireTimeout() @ ns/sc/modules/ISC_Core.js:966 unnamed() @ ns/sc/modules/ISC_Core.js:962 unnamed() @
Code:
00:37:43.530 [ERROR] [ns] 00:37:43.407:TMR7:WARN:Log:TypeError: _7 is null Stack from error.stack: DataSource._handleClientOnlyReply/_6() @ ns/sc/modules/ISC_DataBinding.js:501 DataSource._handleClientOnlyReply() @ ns/sc/modules/ISC_DataBinding.js:502 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:296 anonymous() @ ns/sc/modules/ISC_DataBinding.js:1229 $wnd.isc.RPCManager.fireReplyCallback() @ :247 [c]RPCManager.fireReplyCallbacks() @ ns/sc/modules/ISC_DataBinding.js:1230 [c]RPCManager.performOperationReply() @ ns/sc/modules/ISC_DataBinding.js:1229 RPCManager._performTransactionReply() @ ns/sc/modules/ISC_DataBinding.js:1225 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 Timer._fireTimeout() @ ns/sc/modules/ISC_Core.js:966 unnamed() @ ns/sc/modules/ISC_Core.js:962 unnamed() @ com.smartgwt.client.core.JsObject$SGWT_WARN: 00:37:43.407:TMR7:WARN:Log:TypeError: _7 is null Stack from error.stack: DataSource._handleClientOnlyReply/_6() @ ns/sc/modules/ISC_DataBinding.js:501 DataSource._handleClientOnlyReply() @ ns/sc/modules/ISC_DataBinding.js:502 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:296 anonymous() @ ns/sc/modules/ISC_DataBinding.js:1229 $wnd.isc.RPCManager.fireReplyCallback() @ :247 [c]RPCManager.fireReplyCallbacks() @ ns/sc/modules/ISC_DataBinding.js:1230 [c]RPCManager.performOperationReply() @ ns/sc/modules/ISC_DataBinding.js:1229 RPCManager._performTransactionReply() @ ns/sc/modules/ISC_DataBinding.js:1225 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:238 Timer._fireTimeout() @ ns/sc/modules/ISC_Core.js:966 unnamed() @ ns/sc/modules/ISC_Core.js:962 unnamed() @ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364) at java.lang.Thread.run(Thread.java:722)
I think this occurs when i want to get records from detasource while setAllCacheData is true. The first time gets all data from the server correctly. The second time the fecht occurs in the client side and it doesn't return anything. I tested with several versions of April until the 2013-04-24 version and all fails. But the version 2013-01-27 works fine.
Here is a simple testCase:
Code:
public void onModuleLoad() { // Consola de desarrollo SmartGWT SC.showConsole(); SC.disableFirebug(); setWidth100(); setHeight100(); UsuarioDS usuarioDS = UsuarioDS.getInstance(); usuarioDS.setCacheAllData(true); SelectItem usuarioItem = new SelectItem(); usuarioItem.setOptionDataSource(usuarioDS); usuarioItem.setAutoFetchData(true); usuarioItem.setValueField("nombreUsuario"); usuarioItem.setDisplayField("nombreUsuario"); DynamicForm dynamicForm = new DynamicForm(); dynamicForm.setWidth100(); dynamicForm.setHeight100(); dynamicForm.setItems(usuarioItem); addMember(dynamicForm); show();
Code:
public class UsuarioDS extends JSONRestDataSource { // Locale private UsuarioConstants locale = GWT.create(UsuarioConstants.class); private static UsuarioDS instance = null; public static UsuarioDS getInstance() { if (instance == null) { instance = new UsuarioDS("usuarioDS"); } return instance; } public UsuarioDS(String idDataSource) { super(); // Establecer Id del DataSource setID(idDataSource); // Operaciones CRUD del REST setFetchDataURL("rest/usuario/fetch"); setCacheAllData(true); // ID DataSourceIntegerField id = new DataSourceIntegerField("id", locale.id()); id.setPrimaryKey(true); // NombreUsuario DataSourceTextField nombreUsuario = new DataSourceTextField ("nombreUsuario", locale.nombreUsuario()); // Asignar campos al Data Source setFields(id, nombreUsuario); } }
Browser: Firefox 20.0 for Ubuntu
Here are some pictures attached from smartGWT console. The Consola1.jpg is the fetch for ther server and gets results. The consola2.jpg is the fetch client Only and doesnĄt return anythin.
Can anyone help me, please?
Comment