Hi there,
I've just updated to latest SmartGWT LGPL => SmartClient Version: v9.1p_2014-07-15/LGPL Development Only (built 2014-07-15). I'm using Firefox 26 on Windows 7 x64 with latest updates. On serverside I'm using JSON Rest webservices implemented using Jersey
When I start the webapp, automatically a fetch is done. Always worked but after the version update Firefox freeze and I get this stacktrace in the SC debug window:
I don't use preffix / suffix in any DataSource definition. Then, the JSON response sent from server and the stacktrace
Why is this happening? This worked fine in 4.0 and earlier versions. Looking in Releases Notes I can't see any related major change in RestDataSource
I've just updated to latest SmartGWT LGPL => SmartClient Version: v9.1p_2014-07-15/LGPL Development Only (built 2014-07-15). I'm using Firefox 26 on Windows 7 x64 with latest updates. On serverside I'm using JSON Rest webservices implemented using Jersey
When I start the webapp, automatically a fetch is done. Always worked but after the version update Firefox freeze and I get this stacktrace in the SC debug window:
Code:
11:16:04.496:XRP7:INFO:RestDataSource:empresaGestoraDS:DataSource specifies jsonPrefix, but not present in response returned from server. Processing response anyway. 11:16:04.497:XRP7:INFO:RestDataSource:empresaGestoraDS:DataSource specifies jsonSuffix, but not present in response returned from server. Processing response anyway.
Code:
11:16:04.527:XRP7:DEBUG:xmlBinding:empresaGestoraDS:Raw response data: { "response":{ "status":0, "startRow":0, "endRow":1, "totalRows":1, "data":[ { "id":32739, "alias":"Foo", "modoFacturacion":null, "fechaDesde":null, "observacionesPago":null, "tipoPago":null, "tipoPagoDefecto":"BarBarBar", "cantidadDias":null, "apartirDia":null, "esCliente":false, "esProveedor":false, "valoracionProveedor":"A", "observacionValoracionProveedor":null, "activo":true, "secuencia":null, "documentosIdentidad":[ { "id":32741, "tipo":"cif", "identificador":"T000000" } ], "direcciones":[ { "id":32740, "direccion":"Vía, 2", "pais":{ "idPais":1, "nombrePais":"España", "provincias":null }, "provincia":{ "idProvincia":28, "nombreProvincia":"Madrid", "codigoProvincia":"28", "pais":{ "idPais":1, "nombrePais":"España", "provincias":null }, "poblaciones":null }, "poblacion":{ "idPoblacion":16318, "nombrePoblacion":"Alcalá de Henares", "provincia":{ "idProvincia":28, "nombreProvincia":"Madrid", "codigoProvincia":"28", "pais":{ "idPais":1, "nombrePais":"España", "provincias":null }, "poblaciones":null }, "codigosPostales":null }, "codigoPostal":{ "idCodigoPostal":5871, "nombreCodigoPostal":"28805", "poblaciones":null }, "esDireccionFacturacion":false } ], "mediosContacto":[ { "id":32742, "medio":"FAX", "valor":"0000000" }, { "id":32743, "medio":"TELEFONOFIJO", "valor":"000000" } ], "notas":[ ], "cuentaFacturacion":null, "cuentaFacturacionAlt":null, "condicionesParada":[ ], "razonSocial":"FooBar", "logoGeneral":"x.jpg", "logoDocumentos":"y.jpg", "registroMercantil":"TestTest", "cuentasBancarias":[ { "id":32744, "entidad":"Banco Popular", "numeroCuenta":"1234567" } ], "tipoMoneda":"EURO" } ], "errors":null } } 11:16:04.529:XRP7:INFO:xmlBinding:empresaGestoraDS:JSON recordXPath: '/response/data', selected: Array[1] 11:16:04.549:XRP7:WARN:Log:TypeError: _1 is null Stack from error.stack: DataSource.validateJSONRecord() @ ns/sc/modules/ISC_DataBinding.js:601 DataSource.validateJSONRecord() @ ns/sc/modules/ISC_DataBinding.js:604 DataSource.validateJSONRecord() @ ns/sc/modules/ISC_DataBinding.js:604 DataSource.validateJSONRecord() @ ns/sc/modules/ISC_DataBinding.js:604 DataSource.recordsFromObjects() @ ns/sc/modules/ISC_DataBinding.js:600 DataSource._handleJSONReply() @ ns/sc/modules/ISC_DataBinding.js:586 isc.A.$379() @ ns/sc/modules/ISC_DataBinding.js:600 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:259 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:320 anonymous() @ ns/sc/modules/ISC_DataBinding.js:1575 $wnd.isc.RPCManager.fireReplyCallback() @ :262 [c]RPCManager.fireReplyCallbacks() @ ns/sc/modules/ISC_DataBinding.js:1580 [c]RPCManager.performOperationReply() @ ns/sc/modules/ISC_DataBinding.js:1573 RPCManager._performTransactionReply() @ ns/sc/modules/ISC_DataBinding.js:1558 [c]RPCManager.performTransactionReply() @ ns/sc/modules/ISC_DataBinding.js:1484 anonymous() @ ns/sc/modules/ISC_Core.js:50 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:259 [c]Comm.performXmlTransactionReply() @ ns/sc/modules/ISC_Core.js:1084 anonymous() @ ns/sc/modules/ISC_Core.js:50 [c]Class.fireCallback() @ ns/sc/modules/ISC_Core.js:259 Comm._fireXMLCallback() @ ns/sc/modules/ISC_Core.js:1067 Comm.sendXmlHttpRequest/_12() @ ns/sc/modules/ISC_Core.js:1072 unnamed() @ 11:16:04.558:XRP7:WARN:Log:Uncaught JavaScript exception: TypeError: _1 is null in http://127.0.0.1:8888/ns/sc/modules/ISC_DataBinding.js, line 601
Comment