org.xml.sax.SAXParseException: Unexpected token (position:TEXT )]}'{"conn": "mo...@1:10771 in java.io.InputStreamReader@4245c080)

Appcelerator JIRA | Rupesh Sharma | 4 years ago
  1. 0

    In Ti.Network.HttpClient API this.responseText is truncated and incomplete in case of android while its complete in case of IOS. Please find the attached app.js and media.js to reproduce the same. Folowing error occurs: {code} E/V8Exception( 2937): Exception occurred at app.js:22: Uncaught TypeError: Cannot read property '0' of undefined E/XMLModule( 2937): (KrollRuntimeThread) [136,7131] Error parsing XML E/XMLModule( 2937): org.xml.sax.SAXParseException: Unexpected token (position:TEXT )]}'{"conn": "mo...@1:10771 in java.io.InputStreamReader@4245c080) E/XMLModule( 2937): at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146) E/XMLModule( 2937): at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107) E/XMLModule( 2937): at ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:82) E/XMLModule( 2937): at ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:624) E/XMLModule( 2937): at ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:84) E/XMLModule( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method) E/XMLModule( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:58) E/XMLModule( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:44) E/XMLModule( 2937): at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:71) E/XMLModule( 2937): at android.os.Handler.handleCallback(Handler.java:615) E/XMLModule( 2937): at android.os.Handler.dispatchMessage(Handler.java:92) E/XMLModule( 2937): at android.os.Looper.loop(Looper.java:137) E/XMLModule( 2937): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) E/TiHttpClient( 2937): (KrollRuntimeThread) [13,7144] Error parsing XML E/TiHttpClient( 2937): org.xml.sax.SAXParseException: Unexpected token (position:TEXT )]}'{"conn": "mo...@1:10771 in java.io.InputStreamReader@4245c080) E/TiHttpClient( 2937): at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146) E/TiHttpClient( 2937): at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107) E/TiHttpClient( 2937): at ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:82) E/TiHttpClient( 2937): at ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:624) E/TiHttpClient( 2937): at ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:84) E/TiHttpClient( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method) E/TiHttpClient( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:58) E/TiHttpClient( 2937): at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:44) E/TiHttpClient( 2937): at org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:71) E/TiHttpClient( 2937): at android.os.Handler.handleCallback(Handler.java:615) E/TiHttpClient( 2937): at android.os.Handler.dispatchMessage(Handler.java:92) E/TiHttpClient( 2937): at android.os.Looper.loop(Looper.java:137) E/TiHttpClient( 2937): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) {code}

    Appcelerator JIRA | 4 years ago | Rupesh Sharma
    org.xml.sax.SAXParseException: Unexpected token (position:TEXT )]}'{"conn": "mo...@1:10771 in java.io.InputStreamReader@4245c080)
  2. 0

    Titanium - PHP+JSON error parsing

    Stack Overflow | 2 years ago | strano
    org.xml.sax.SAXParseException: Unexpected token (position:TEXT {"registered":fa...@2:1 in java.io.InputStreamReader@429a8648)
  3. 0

    Can't connect to a node js server in Android

    Stack Overflow | 3 years ago | Uriel Arvizu
    org.xml.sax.SAXParseException: Unexpected token (position:TEXT faa_rzQcGIc9Vzvt...@1:72 in java.io.InputStreamReader@411485a8)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Appcelerator Developer Center Q&A Unanswered Questions 20

    rssing.com | 1 year ago
    org.xml.sax.SAXParseException: Unexpected token (position:TEXT []@1:3 in java.io.InputStreamReader@423bf438)
  6. 0

    Appcelerator Developer Center Q&A Tag Feed (android)

    rssing.com | 1 year ago
    org.xml.sax.SAXParseException: Unexpected token (position:TEXT []@1:3 in java.io.InputStreamReader@427acdf0)

  1. bmacedo 1 times, last 2 weeks ago
  2. lribeiro 6 times, last 2 months ago
  3. lribeiro 140 times, last 2 months ago
  4. jk 2 times, last 5 months ago
  5. emmanuelstroem 1 times, last 5 months ago
1 more registered users
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.xml.sax.SAXParseException

    Unexpected token (position:TEXT )]}'{"conn": "mo...@1:10771 in java.io.InputStreamReader@4245c080)

    at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse()
  2. Android
    DocumentBuilderImpl.parse
    1. org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:146)
    1 frame
  3. Java RT
    DocumentBuilder.parse
    1. javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
    1 frame
  4. ti.modules.titanium
    HTTPClientProxy.getResponseXML
    1. ti.modules.titanium.xml.XMLModule.parse(XMLModule.java:82)
    2. ti.modules.titanium.network.TiHTTPClient.getResponseXML(TiHTTPClient.java:624)
    3. ti.modules.titanium.network.HTTPClientProxy.getResponseXML(HTTPClientProxy.java:84)
    3 frames
  5. org.appcelerator.kroll
    V8Function$1.run
    1. org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
    2. org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:58)
    3. org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:44)
    4. org.appcelerator.kroll.runtime.v8.V8Function$1.run(V8Function.java:71)
    4 frames
  6. Android Platform
    Looper.loop
    1. android.os.Handler.handleCallback(Handler.java:615)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:137)
    3 frames
  7. org.appcelerator.kroll
    KrollRuntime$KrollRuntimeThread.run
    1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
    1 frame