Results 1 to 4 of 4
  1. #1
    biswajithit is offline Member
    Join Date
    Sep 2010
    Posts
    2
    Rep Power
    0

    Default java.lang.IndexOutOfBoundsException: Invalid location 1, size is 2

    Hi, I got an indexOutOfBound error . The description caught me in mess.

    It says java.lang.IndexOutOfBoundsException: Invalid location 1, size is 2

    I am unable to understand the exception description.

    any help..

    "
    09-19 17:02:20.258 E/AndroidRuntime( 1939): java.lang.IndexOutOfBoundsException: Invalid location 1, size is 2
    09-19 17:02:20.258 E/AndroidRuntime( 1939): at java.util.ArrayList.get(ArrayList.java:341)
    09-19 17:02:20.258 E/AndroidRuntime( 1939): at com.cooliris.media.PathBarLayer.renderBlended(Path BarLayer.java:177)
    09-19 17:02:20.258 E/AndroidRuntime( 1939): at com.cooliris.media.RenderView.onDrawFrame(RenderVi ew.java:642)
    09-19 17:02:20.258 E/AndroidRuntime( 1939): at android.opengl.GLSurfaceView$GLThread.guardedRun(G LSurfaceView.java:1127)
    09-19 17:02:20.258 E/AndroidRuntime( 1939): at android.opengl.GLSurfaceView$GLThread.run(GLSurfac eView.java:975)

    "

  2. #2
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

    Default

    this error faced when your index from one array is out of range array size, for example your array size is 2 and you want to get index 4.

  3. #3
    biswajithit is offline Member
    Join Date
    Sep 2010
    Posts
    2
    Rep Power
    0

    Default

    But in that case it is saying the location/index is 1 where size is 2..

    which is valid (It should not be an exception). I got this error only once.

  4. #4
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    0

Similar Threads

  1. Replies: 5
    Last Post: 03-17-2011, 02:26 PM
  2. IndexOutOfBoundsException
    By Luciform in forum New To Java
    Replies: 8
    Last Post: 05-24-2010, 03:44 AM
  3. JFrame 's components size and location problem
    By petrosgraf in forum Threads and Synchronization
    Replies: 5
    Last Post: 04-18-2009, 02:24 AM
  4. IndexOutOfBoundsException with AWT-EventQueue-0
    By xcallmejudasx in forum New To Java
    Replies: 0
    Last Post: 03-10-2009, 01:52 PM
  5. IndexOutOfBoundsException
    By aldo1987 in forum New To Java
    Replies: 6
    Last Post: 04-30-2008, 03:48 AM

Posting Permissions

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