Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException from KXmlParser #129

Open
hossain-khan opened this issue Nov 11, 2016 · 0 comments
Open

ArrayIndexOutOfBoundsException from KXmlParser #129

hossain-khan opened this issue Nov 11, 2016 · 0 comments
Labels
Milestone

Comments

@hossain-khan
Copy link
Owner

hossain-khan commented Nov 11, 2016

https://blog.google/products/android/rss/ feed throws ArrayIndexOutOfBoundsException see SO http://stackoverflow.com/questions/11967062/arrayindexoutofboundsexception-in-androids-kxmlparser

11-10 20:06:03.716 563-563/info.hossainkhan.dailynewsheadlines E/HeadlinesPresenter: Failed to load responses.
     java.lang.ArrayIndexOutOfBoundsException: src.length=8192 srcPos=4104 dst.length=8192 dstPos=0 length=-4066
         at java.lang.System.arraycopy(System.java:229)
         at org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1508)
         at org.kxml2.io.KXmlParser.readValue(KXmlParser.java:1356)
         at org.kxml2.io.KXmlParser.next(KXmlParser.java:393)
         at org.kxml2.io.KXmlParser.next(KXmlParser.java:313)
         at com.pkmmte.pkrss.parser.Rss2Parser.handleNode(Rss2Parser.java:132)
         at com.pkmmte.pkrss.parser.Rss2Parser.parse(Rss2Parser.java:85)
         at com.pkmmte.pkrss.PkRSS.load(PkRSS.java:179)
         at com.pkmmte.pkrss.RequestCreator.get(RequestCreator.java:182)
         at info.hossainkhan.android.core.newsprovider.RssFeedNewsProvider$1.call(RssFeedNewsProvider.java:83)
         at info.hossainkhan.android.core.newsprovider.RssFeedNewsProvider$1.call(RssFeedNewsProvider.java:76)
         at rx.Observable.unsafeSubscribe(Observable.java:8666)
         at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
         at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:220)
         at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
         at java.util.concurrent.FutureTask.run(FutureTask.java:237)
         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
         at java.lang.Thread.run(Thread.java:818)

Once this happens, app is not able to load contents anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant