PDA

View Full Version : [FIXED] Warning messages on Models



Artistan
20 Jan 2012, 11:34 AM
http://visits.benint.net/visits/touch-model/index.html

fields is deprecated as a property directly on the Model prototype. Please put it inside the config object.

proxy is deprecated as a property directly on the Model prototype. Please put it inside the config object.

Url above is an example of it.
Currently I have stores without proxy using models.
These models are fairly simple with RestProxy and JsonReader and a few fields defines.

After the warning messages (notices?)
Then I get a fatal Uncaught TypeError!



Uncaught TypeError: Cannot call method 'getId' of undefined

Ext.define.buildUrlsencha-touch-all-debug.js:24787 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.buildRequestsencha-touch-all-debug.js:24269 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.doRequestsencha-touch-all-debug.js:24467 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.readsencha-touch-all-debug.js:24229 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.loadsencha-touch-all-debug.js:35147 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.updateAutoLoadsencha-touch-all-debug.js:34562 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.generateSetter.settersencha-touch-all-debug.js:3214 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Base.implement.initConfigsencha-touch-all-debug.js:2851 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.constructorsencha-touch-all-debug.js:34432 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Base.implement.callParentsencha-touch-all-debug.js:2773 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.constructorVisitsList.js:22 (http://visits.benint.net/visits/touch-model/BenAdmin/store/base/VisitsList.js?_dc=1327086504959)
Base.implement.callParentsencha-touch-all-debug.js:2773 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.constructorVisitsList.js:19 (http://visits.benint.net/visits/touch-model/BenAdmin/store/VisitsList.js?_dc=1327086504811)
Ext.apply.create.Classsencha-touch-all-debug.js:3023 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
(anonymous function)
Ext.ClassManager.instantiatesencha-touch-all-debug.js:3981 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
(anonymous function)sencha-touch-all-debug.js:1992 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
myAppindex.js:30 (http://visits.benint.net/visits/touch-model/index.js)
Ext.apply.onDocumentReadysencha-touch-all-debug.js:5850 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.onReady.fnsencha-touch-all-debug.js:4957 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.triggerReadysencha-touch-all-debug.js:4938 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
(anonymous function)sencha-touch-all-debug.js:1985 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.requiresencha-touch-all-debug.js:4785 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.triggerReadysencha-touch-all-debug.js:4932 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4507 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.refreshQueuesencha-touch-all-debug.js:4539 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.onFileLoadedsencha-touch-all-debug.js:4854 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
(anonymous function)sencha-touch-all-debug.js:1985 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.apply.injectScriptElement.onLoadFnsencha-touch-all-debug.js:4554 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)

Kcarpenter
30 Jan 2012, 11:20 AM
Same thing here. Anyone have any clue whats going on with this?

aconran
30 Jan 2012, 10:47 PM
The warnings are just grabbing those properties off of the prototype and putting them in the configuration. That should not be causing the getId failure.

Could you create a test case that illustrates the problem so that we can resolve it?

As a side note, the config issue will be resolved in a build in the near future.

Artistan
31 Jan 2012, 4:29 AM
http://visits.benint.net/visits/touch-model/designer.html

I will work on a more simple example if/when I can.

Artistan
31 Jan 2012, 5:39 AM
The warnings are just grabbing those properties off of the prototype and putting them in the configuration. That should not be causing the getId failure.

Could you create a test case that illustrates the problem so that we can resolve it?

As a side note, the config issue will be resolved in a build in the near future.

Here is a MUCH simpler example...

http://visits.benint.net/visits/store-test/designer.html

Phil.Strong
1 Feb 2012, 11:41 PM
This is the same issue we are seeing that crashes designer when you click load data. Looking into this on both levels. It is a framework exception just not sure why yet

svenna
2 Feb 2012, 3:33 AM
The trace an exception looks very much alike a bug in the ST2 PR4 framework, fixed in Beta 1.

http://www.sencha.com/forum/showthread.php?176634-PR4-rest-proxy-read-Uncaught-TypeError-Cannot-call-method-getId-of-undefined

http://www.sencha.com/forum/showthread.php?176493-RestProxy-Problem-with-store.load()-PR4&p=721809

bharatn
2 Feb 2012, 7:46 AM
Thanks Sven for reporting this.

Artistan, this will be fixed soon when we upgrade Touch to Beta1.

aconran
9 Feb 2012, 11:06 PM
This should be fixed as of build 276.