I’ve got a page using a treegrid to select records and a dynamic form to add/update records in an xmlHttpRequest datasource. At some point during development, I started getting this error in firebug with any update/delete operations and the request is never sent to the server.
Exception… “Cannot modify properties of a WrappedNative” nsresult: “0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)” location: “JS frame :: <removed-server-url>/isomorphic/system/modules/ISC_Core.js :: anonymous :: line 389” data: no]
Nothing shows up in the smartclient developer console unless i evaluate the dynForm.saveData() method. that gives:
Add and Fetch operations work without any problems.
From what I can tell, the form is very similar to other pages i’ve done with a list grid to select and a dynamic form to update. The only difference being the TreeGrid.
Have you seen this before? Any fixes I could try? Let me know what other information you need.
Hi Jesse
We haven’t seen this before, but would really like to get to the bottom of it asap. A couple of things that might help us pin this down:
since the issue occurs on update and delete operations only, it may be related to the primaryKey value and/or how it is derived from XML.
What do your field definitions look like in your datasource, and what are some example values given to the primary key field of the records that are tripping this bug?
if you run the same code in Internet Explorer do you encounter any errors? If you get a javascript error, we would expect to see a stack-trace logged to the developer console - if so, could you copy and paste it into this report? This would be very helpful in figuring out where this error is coming from.
Does FireBug log any kind of stack-trace when this error is generated, in addition to the single line describing the exception. If so, can you copy out the information and add it to this report?
Well I cleared out the database table being used for the datasource and started with creating fresh data. The problem has gone away and it’s working fine now.
Maybe I had saved some bad data during page development resulting in bad primaryKeys as mentioned in 1)
I’ll try to save more stack information next time it happens