RxJava icon indicating copy to clipboard operation
RxJava copied to clipboard

Caused by java.lang.IndexOutOfBoundsException: Index: 1, Size: 0

Open tarunkonda123 opened this issue 7 years ago • 6 comments

Caused by java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at java.util.ArrayList.get(ArrayList.java:437) a XXX.subscribeActual(Unknown Source:259) at io.reactivex.Observable.subscribe(Unknown Source:14) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source:6) at io.reactivex.Scheduler$DisposeTask.run(Unknown Source:9) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source:13) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

tarunkonda123 avatar Dec 07 '18 06:12 tarunkonda123

Crucial information is missing, such as what is XXX and line 259 and code demonstrating the problem.

akarnokd avatar Dec 07 '18 07:12 akarnokd

it's my packagename+classname

tarunkonda123 avatar Dec 07 '18 08:12 tarunkonda123

. Crashed: RxNewThreadScheduler-11 at io.reactivex.plugins.RxJavaPlugins.initComputationScheduler(Unknown Source:20) at io.reactivex.Observable.subscribe(Unknown Source:22) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source:6) at io.reactivex.Scheduler$DisposeTask.run(Unknown Source:9) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source:13) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

--

Fatal Exception: b.b.c.f: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at io.reactivex.plugins.RxJavaPlugins.initComputationScheduler(Unknown Source:20) at io.reactivex.Observable.subscribe(Unknown Source:22) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source:6) at io.reactivex.Scheduler$DisposeTask.run(Unknown Source:9) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source:13) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)

tarunkonda123 avatar Dec 07 '18 08:12 tarunkonda123

it's my packagename+classname

How do you expect us to help you if you don't provide the necessary details? We can't look into your machine and this very much looks like you have a logical error in your own code.

akarnokd avatar Dec 07 '18 08:12 akarnokd

yes

coolajitsahu avatar Nov 19 '19 10:11 coolajitsahu

In my case, this error, show you because i was try setear a type object List. Something there: List<"AnyObjennt"> paramList = new ArrayList<"AnyObject">(); paramList.set(0, element); // Wrong!!!!! , java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 paramList.add(0, element); Good!!!

ever5390 avatar Mar 30 '20 15:03 ever5390