I've updated to 2.0.1 on the Droid and updated the SDK to 0.9.5. The Exception occurs when tapping on the MapView after a certain sequence of interations. I wish I cound see the actual code that raised the ArrayIndexOutOfBoundsException.
Following is the stack trace from Eclipse and the supposed breakpoint shown in the source code: MapDroid [Android Application] DalvikVM[localhost:8603] Thread [<3> main] (Suspended (exception ArrayIndexOutOfBoundsException)) ViewRoot.handleMessage(Message) line: 1740 ViewRoot(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4338 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 860 ZygoteInit.main(String[]) line: 618 NativeStart.main(String[]) line: not available [native method] Thread [<13> Binder Thread #2] (Running) Thread [<11> Binder Thread #1] (Running) Thread [<19> AsyncTask #1] (Running) Daemon Thread [<23> [email protected]@4489dfe8] (Running) Thread [<15> Binder Thread #3] (Running) Thread [<17> AsyncTask #2] (Running) Thread [<21> AsyncTask #3] (Running) Thread [<25> TrafficService] (Running) Thread [<27> MapService] (Running) In android.core.view.ViewRoot.java, lines 1739-1741 are: 1739: } *finally* { *1740: if* (callWhenDone) { *1741: try* { On Tue, Dec 15, 2009 at 10:56 AM, xinit <[email protected]> wrote: > Hi, > > You should not be seeing errors in the platform so there should be no > need to download the Android source in order to debug your > application. > > Please reply with full error that you are getting, it should be > pointing to the line in your code. > > Rgds > > Gerard > > On Dec 15, 5:01 am, frankw <[email protected]> wrote: > > I've many times debugged my Java EE code running on Tomcat and JBoss > > quite effectivley with Eclipse, but I'm running into a brick wall > > debugging an Android app on the Droid. I think I have to debug on the > > device and not the AVM because the app interacts with MapView, GPS, > > etc. Maybe I need to use the AVM to effectively debug? > > > > What happens is I get NullPointerException or > > ArrayOutOfBoundsException in the main thread at something like > > ViewRoot.draw(boolean) line: 1373. Of course, by default, the source > > won't be found. So I downloaded the source with Git and pointed > > Eclipse at it. However, I think I don't have the right source, because > > the line is that the exception appears to have been thrown from is not > > completely relevant. How can I be sure I'm using the correct source > > code for debugging the Droid? > > > > After writing this, I've found that although Eclipse is not displaying > > the little green dot when I set a breakpoint in the Andorid code, it > > does show up in the breakpoint view and I can step through the code. > > Not sure if this helps me. Is it perhaps my ignorance of Dalvik and/or > > debugging threaded code? > > > > Anyway, I wish I could see the actual Java statement that caused the > > exception. Does anyone have suggestions on how I can effectivley debug > > my Android code? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

