ArrayIndexOutOfBounds in Thread.getState() ...

by Pent » Thu, 19 May 2011 04:56:32 GMT


Sponsored Links
 I've had this sometimes in the console, wrote it off as sporadic
malign alien influence. A user just contacted me that it started
happening after an upgrade from 2.2 to 2.2.2.

Brief version:

Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.Thread.getState(Thread.java:812)
at net.dinglisch.android.taskerm.ExecuteService.onStart(Unknown
Source)
at android.app.Service.onStartCommand(Service.java:420)

Looks like a bug in the library or ... ?

No idea if it happens with newer Android versions, it's not mentioned
by the console error reports.

Pent

--------------------------------------------------------------------------------
Full version:

java.lang.RuntimeException: Unable to start service
net.dinglisch.android.taskerm.ExecuteService@45d59050 with Intent
{ cmp=net.dinglisch.android.taskerm/.ExecuteService (has extras) }:
java.lang.ArrayIndexOutOfBoundsException
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:
3153)
at android.app.ActivityThread.access$3800(ActivityThread.java:129)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2180)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4717)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.Thread.getState(Thread.java:812)
at net.dinglisch.android.taskerm.ExecuteService.onStart(Unknown
Source)
at android.app.Service.onStartCommand(Service.java:420)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:
3143)

-- 



Re: ArrayIndexOutOfBounds in Thread.getState() ...

by fadden » Fri, 20 May 2011 07:57:39 GMT


 


Weird.  That line is:

            int state = thread.getStatus();
            if(state != -1) {
                return VMThread.STATE_MAP[state]; // 812
            }

The STATE_MAP array has Thread.State entries for all valid thread
states, suggesting that the thread is in some weird state.
Unfortunately the exception doesn't say what element it was trying to
access.  (Newer versions of the VM and core libs are more verbose on
these exceptions.)

-- 


Sponsored Links


Other Threads

1. Browser Video Plugin

Hi All,

I just want to know when ever there is a video to play in a
webpage(youtube.com) how browser invoke some other app for play the
video, because my requirement is while playing the video then user
presses the "home key" and again launches the browser. the Player
should not be shown aagain.

Thanks is advance...
Regards
Yogi

-- 

2. ATRIX 4G : handset 4" (540x960) with Dual Coreprocessor & 1GB RAM

Kebanyakan racun yg keluar malah pending2 melulu mau beli...
Apa lg yg keluar nanti 

**elus2dompet


** @ndro-id  **

-----Original Message-----
From: Arif Rachman <rif.an...@gmail.com>
Sender: id-android@googlegroups.com
Date: Thu, 6 Jan 2011 15:46:06 
To: <id-android@googlegroups.com>
Reply-To: id-android@googlegroups.com
Subject: Re: [id-android] ATRIX 4G : handset 4" (540x960) with Dual Core
 processor & 1GB RAM

beuuhhhh!!!!!!!

iya nih mantep abisssssss

2011/1/6 Lutfi Hidayat Ramdhani <lutfi.hidayat.ramdh...@gmail.com>






-- 
Solidaritas Serumpun Indonesia (Serunai)
Bank Mandiri KCU Imam Bonjol Jakarta
122-00-0565711-2
a/n Mariski SE/Terra Nova Melati
http://serunaiku.blogspot.com/

-- 
===============
"

-- 
===============
"

3. Got it, WTB : Desire HD BNIB

4. nexian journey RUT

5. [WTS]:HTC HERO White fullset

6. Keyboard Logger not possible?

7. LVL: possible to check license for a different app?