Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Carlos Verdier, 1 year ago
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0	at com.codename1.impl.android.CodenameOneActivity.onRequestPermissionsResult(CodenameOneActivity.java:711)	at android.app.Activity.requestPermissions(Activity.java:4209)	at android.support.v4.app.ActivityCompatApi23.requestPermissions(ActivityCompat23.java:32)	at android.support.v4.app.ActivityCompat.requestPermissions(ActivityCompat.java:316)	at com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7869)	at com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7836)	at com.codename1.impl.android.AndroidImplementation.createMedia(AndroidImplementation.java:2722)	at com.codename1.ui.Display.createMedia(Display.java:2983)	at com.codename1.media.MediaManager.createMedia(MediaManager.java:125)	at com.codename1.media.MediaManager.createMedia(MediaManager.java:94)	at userclasses.StateMachine$41.lambda$run$119(StateMachine.java:5415)	at userclasses.StateMachine$41.access$lambda$1(StateMachine.java)	at userclasses.StateMachine$41$$Lambda$2.run(Unknown Source)	at com.codename1.ui.Display.processSerialCalls(Display.java:1154)	at com.codename1.ui.Display.edtLoopImpl(Display.java:1098)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1207)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1244)	at com.codename1.ui.AnimationManager.addAnimationAndBlock(AnimationManager.java:105)	at com.codename1.ui.Container.replaceComponents(Container.java:869)	at com.codename1.ui.Container.replaceAndWait(Container.java:798)	at userclasses.StateMachine.postDescargaPaginaPubli(StateMachine.java:6035)	at userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:6015)	at userclasses.StateMachine.access$lambda$65(StateMachine.java)	at userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)	at com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)	at com.codename1.ui.Display.processSerialCalls(Display.java:1154)	at com.codename1.ui.Display.edtLoopImpl(Display.java:1098)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1207)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1244)	at com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7873)	at com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7836)	at com.codename1.impl.android.AndroidImplementation.createMedia(AndroidImplementation.java:2722)	at com.codename1.ui.Display.createMedia(Display.java:2983)	at com.codename1.media.MediaManager.createMedia(MediaManager.java:125)	at com.codename1.media.MediaManager.createMedia(MediaManager.java:94)	at userclasses.StateMachine$41.lambda$run$119(StateMachine.java:5415)	at userclasses.StateMachine$41.access$lambda$1(StateMachine.java)	at userclasses.StateMachine$41$$Lambda$2.run(Unknown Source)	at com.codename1.ui.Display.processSerialCalls(Display.java:1154)	at com.codename1.ui.Display.edtLoopImpl(Display.java:1098)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1207)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1244)	at userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:5995)	at userclasses.StateMachine.access$lambda$65(StateMachine.java)	at userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)	at com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)	at com.codename1.ui.Display.processSerialCalls(Display.java:1154)	at com.codename1.ui.Display.edtLoopImpl(Display.java:1098)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1207)	at com.codename1.ui.Display.invokeAndBlock(Display.java:1244)	at com.codename1.ui.AnimationManager.addAnimationAndBlock(AnimationManager.java:105)	at com.codename1.ui.Container.replaceComponents(Container.java:869)	at com.codename1.ui.Container.replaceAndWait(Container.java:798)	at userclasses.StateMachine.postDescargaPaginaPubli(StateMachine.java:6035)	at userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:6015)	at userclasses.StateMachine.access$lambda$65(StateMachine.java)	at userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)	at com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)	at com.codename1.ui.Display.processSerialCalls(Display.java:1154)	at com.codename1.ui.Display.edtLoopImpl(Display.java:1098)	at com.codename1.ui.Display.mainEDTLoop(Display.java:999)	at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)	at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)	at java.lang.Thread.run(Thread.java:761)