To fix this Ant error message that confuses users into thinking that the cause of the error is somewhere in the foreach tag, do the following steps:

  1. Go to  the download page of ant-contrib at http://sourceforge.net/projects/ant-contrib/files/
  2. Download ant-contrib-0.3 and copy ant-contrib-0.3.jar to the lib folder where your Apache Ant is installed.
  3. In your build.xml file, make sure you declare this XML

That is all!

There are many possible culprits that gets this error.

1) In my case, the problem lay in my model file where the field names specified did not have a comma after each one of them.

Instead of

my file contained this

The comma at the end of each line was missing. It took me a half day to realize these were missing so make sure you double check your model class files for this.

2) Another may be how you use the model class inside a store. It should be the model class name with the package name included.

3) If you define model classes in the app, make sure that you declare them in the app.js file.

So far, these three are the mistakes that I encountered when I was starting with Sencha. There may be others but the main cause of all these is missing characters ;).

Related Posts Plugin for WordPress, Blogger...