java.lang.IndexOutOfBoundsException

tip

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I forgot about this setting, and when I don't provide it, this crashes my entire app with an OutOfBounds Exception. This needs to have a default, and the default needs to be documented somewhere. You can reproduce this by trying to run the File tests on MobileSpec, or All Tests! E/FileUtils(17964): File plugin configuration error: Please set AndroidPersistentFileLocation in config.xml to one of "internal" (for new applications) or "compatibility" (for compatibility with previous versions) W/System.err(17964): java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 W/System.err(17964): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) W/System.err(17964): at java.util.ArrayList.get(ArrayList.java:308) W/System.err(17964): at org.apache.cordova.file.FileUtils.requestFileSystem(FileUtils.java:740) W/System.err(17964): at org.apache.cordova.file.FileUtils.access$1(FileUtils.java:736) W/System.err(17964): at org.apache.cordova.file.FileUtils$11.run(FileUtils.java:290) W/System.err(17964): at org.apache.cordova.file.FileUtils$24.run(FileUtils.java:461) W/System.err(17964): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) W/System.err(17964): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) W/System.err(17964): at java.lang.Thread.run(Thread.java:841) W/System.err(17964): java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 W/System.err(17964): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) D/CordovaActivity(17964): Paused the application! D/CordovaWebView(17964): Handle the pause W/System.err(17964): at java.util.ArrayList.get(ArrayList.java:308) W/System.err(17964): at org.apache.cordova.file.FileUtils.requestFileSystem(FileUtils.java:740) W/System.err(17964): at org.apache.cordova.file.FileUtils.access$1(FileUtils.java:736) W/System.err(17964): at org.apache.cordova.file.FileUtils$11.run(FileUtils.java:290) W/System.err(17964): at org.apache.cordova.file.FileUtils$24.run(FileUtils.java:461) W/System.err(17964): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) W/System.err(17964): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) W/System.err(17964): at java.lang.Thread.run(Thread.java:841) D/CordovaLog(17964): file:///android_asset/www/autotest/pages/file.html: Line 54 : [ERROR] Problem setting up root filesystem for test running! Error to follow.
    via by Joe Bowser,
  • RenderError
    via GitHub by Okamiwolf144
    ,
  • Muzei Crash when downloading
    via GitHub by iToobi
    ,
  • Context Item Selected Error
    via Stack Overflow by user3073480
    ,
    • java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at org.apache.cordova.file.FileUtils.requestFileSystem(FileUtils.java:740) at org.apache.cordova.file.FileUtils.access$1(FileUtils.java:736) at org.apache.cordova.file.FileUtils$11.run(FileUtils.java:290) at org.apache.cordova.file.FileUtils$24.run(FileUtils.java:461) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841)

    Users with the same issue

    filpgame
    3 times, last one,
    Indri Yunita
    2 times, last one,
    Stefan Braune
    7 times, last one,
    bayukresno
    3 times, last one,
    Unknown visitor1 times, last one,
    237 more bugmates