Results 1 to 4 of 4
- 09-27-2010, 06:12 AM #1
Member
- Join Date
- Sep 2010
- Posts
- 2
- Rep Power
- 0
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)
"
- 09-27-2010, 06:52 AM #2
Member
- Join Date
- Sep 2010
- Posts
- 12
- Rep Power
- 0
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.
- 09-27-2010, 07:03 AM #3
Member
- Join Date
- Sep 2010
- Posts
- 2
- Rep Power
- 0
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.
- 09-27-2010, 07:07 AM #4
Member
- Join Date
- Sep 2010
- Posts
- 12
- Rep Power
- 0
Similar Threads
-
java.lang.NoSuchMethodError: org.apache.log4j.Logger.log(Ljava/lang/String;Lorg/apach
By rameshraj in forum JDBCReplies: 5Last Post: 03-17-2011, 02:26 PM -
IndexOutOfBoundsException
By Luciform in forum New To JavaReplies: 8Last Post: 05-24-2010, 03:44 AM -
JFrame 's components size and location problem
By petrosgraf in forum Threads and SynchronizationReplies: 5Last Post: 04-18-2009, 02:24 AM -
IndexOutOfBoundsException with AWT-EventQueue-0
By xcallmejudasx in forum New To JavaReplies: 0Last Post: 03-10-2009, 01:52 PM -
IndexOutOfBoundsException
By aldo1987 in forum New To JavaReplies: 6Last Post: 04-30-2008, 03:48 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks