Results 1 to 9 of 9

Thread: Failed loading store: says the file doesn't exist when it DOES

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    0
      0  

    Default Failed loading store: says the file doesn't exist when it DOES

    My ST2 app has a few screens tied to stores tied to models and filled with JSONP requests. All is well.

    I'm now trying to create a listview-style menu for them. I've created the model in /app/model just like all the others, created the store in /store like the others (but manually filled with a data: []), and made a view with a listview like all the others, but when I run the app I get

    Error: [Ext.Loader] Failed loading 'app/model/JobMenuItems.js', please verify that the file exists at file:///android_asset/www/sencha-touch-all-debug.js:8010

    The file is definitely there!! What gives? I'm using the latest ST2...

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Are you running your app on a web server? Looks like you are just running off the file system.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    I'm having a similar peculiar error. Running an app on HoneyComb, ST2, PhoneGap 1.6.1 In the emulator it works fine. When I push it to an actual device (a galaxy Tab 10.1) , I get a bunch of errors as ST2 tries to load my app's views, stores, etc.

    --
    04-26 14:06:45.250: D/CordovaLog(7665): Uncaught Error: [Ext.Loader] Failed loading 'app/view/SampleCollectionForm.js', please verify that the file exists
    04-26 14:06:45.250: D/CordovaLog(7665): file:///android_asset/www/samplecollector/assets/js/sencha-touch-all-debug.js: Line 8010 : Uncaught Error: [Ext.Loader] Failed loading 'app/view/SampleCollectionForm.js', please verify that the file exists

    04-26 14:06:45.250: E/Web Console(7665): Uncaught Error: [Ext.Loader] Failed loading 'app/view/SampleCollectionForm.js', please verify that the file exists at file:///android_asset/www/samplecollector/assets/js/sencha-touch-all-debug.js:8010
    --

    I'm pulling my hair out as again, it only does this on the device.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Android 3 is not supported. You need to have your app files required so when you do the build Ext.Loader doesn't try to load anything.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    May 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Hmm, ok, is there an ETA on Honeycomb, ICS support?

    Also, wasn't using the ST builder as it's been bit crochety for me, so just a normal Android/Phonegap eclipse project with the 'assets' dir and I just work with sencha architect from there.

    So where would one do these 'requires'? I'm used to getting the warnings in say Chrome, and then add them as appropriate, but that's usually for framework classes.

  6. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    There is no ETA on Android 3 support, we won't be supporting it. We support Android 4.0.3+ with the native browser and Chrome for Android.

    You can require classes using requires or uses or Ext.require. In Ext.application you can use the same and stores, models, controllers and views.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    May 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Ext.Loader erros in chrome on desktop

    Is it right that the offline mode willnot work out of the box for Sencha and you do not plan on supporting it for now.
    Could you be more explicit with an example on wha tth ework around is? I am a newbie to sencha and am not grasping the hints you have provided in this thread.

    how do I implment the work around with requires etc

  8. #8
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Ext.Loader will not be used in a production build so you don't have to worry about that.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  9. #9
    Sencha User
    Join Date
    May 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Code you point me to a code snippet to explain what would be used in production

    This is very critical piece of the app that I am developing. All examples pointed me to using this for offline mode. your feedback will be greatly appreciated

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •