java.lang.RuntimeException

org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT @1:2 in java.io.InputStreamReader@2ab51acf)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15584

  • org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT @1:2 in java.io.InputStreamReader@2ab51acf)
  • org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT [{"id":1,"title"...@1:145 in java.io.InputStreamReader@422af58)
  • org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT ���������������\[s��...@1:24 in java.io.InputStreamReader@4ddb49d)
  • Stack trace

    • java.lang.RuntimeException: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT @1:2 in java.io.InputStreamReader@2ab51acf) at retrofit2.converter.simplexml.SimpleXmlResponseBodyConverter.convert(SimpleXmlResponseBodyConverter.java:44) at retrofit2.converter.simplexml.SimpleXmlResponseBodyConverter.convert(SimpleXmlResponseBodyConverter.java:23) at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:117) at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211) at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:106) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT @1:2 in java.io.InputStreamReader@2ab51acf) at org.kxml2.io.KXmlParser.next(KXmlParser.java:432) at org.kxml2.io.KXmlParser.next(KXmlParser.java:313) at org.simpleframework.xml.stream.PullReader.read(PullReader.java:105) at org.simpleframework.xml.stream.PullReader.next(PullReader.java:89) at org.simpleframework.xml.stream.NodeReader.readElement(NodeReader.java:111) at org.simpleframework.xml.stream.NodeReader.readRoot(NodeReader.java:85) at org.simpleframework.xml.stream.NodeBuilder.read(NodeBuilder.java:84) at org.simpleframework.xml.stream.NodeBuilder.read(NodeBuilder.java:71) at org.simpleframework.xml.core.Persister.read(Persister.java:562) at retrofit2.converter.simplexml.SimpleXmlResponseBodyConverter.convert(SimpleXmlResponseBodyConverter.java:36)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 1 year ago
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 7 months ago
    5 times, 7 months ago
    11 more bugmates