Note that there are some explanatory texts on larger screens.

plurals
  1. POksoap2 xmlPullParserException unterminated entity ref
    primarykey
    data
    text
    <p>I have a user email me yesterday that he is having a problem with my application so i started debugging with him and had him sent me the log of the phone and he is getting a <code>XmlPullParserError</code> when he makes a call to the server</p> <pre><code>E/Message Exchange::CallWebService(6426): Exception: org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:TEXT �������`I�...@1:18 in java.io.InputStreamReader@406c8808) 05-31 12:33:25.573 W/System.err(6426): org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:TEXT �������`I�...@1:18 in java.io.InputStreamReader@406c8808) 05-31-12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.exception(KXmlParser.java:273)05-31 12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.error(KXmlParser.java:269)05-31-12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.pushEntity(KXmlParser.java:781)05-31 12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.pushText(KXmlParser.java:849)05-31 12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.nextImpl(KXmlParser.java:354)05-31 12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.next(KXmlParser.java:1378)05-31 12:33:25.573 W/System.err(6426): at org.kxml2.io.KXmlParser.nextTag(KXmlParser.java:1408)05-31 12:33:25.573 W/System.err(6426): at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:126)05-31 12:33:25.573 W/System.err(6426): at org.ksoap2.transport.Transport.parseResponse(Transport.java:100)05-31 12:33:25.573 W/System.err(6426): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:195)05-31 12:33:25.573 W/System.err(6426): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)05-31 12:33:25.573 W/System.err(6426): at ecm2.android.MessageExchange$1.run(MessageExchange.java:96)05-31 12:33:25.573 W/System.err(6426): at java.lang.Thread.run(Thread.java:1019)05-31 12:33:27.928 </code></pre> <p>this is the line it always fails at</p> <pre><code>trans.call(SOAP_ACTION, soapEnvelope); </code></pre> <p>that makes the call to the server and it just throws an error. I have the <code>same exact phone</code> this person has and I had him running the <code>exact version I am running</code>, I had not problems calling the server but he still had a problem.</p> <p>I had him uninstall and reinstall several times so I dont know what would cause this on his phone and not mine?</p> <p>this is how i create the XML</p> <pre><code>private static String CreateCallXML(String sDeviceID, String sEMailAddress, String sVersion) { Logging logger = new Logging(); XmlSerializer serializer = Xml.newSerializer(); StringWriter writer = new StringWriter(); try { serializer.setOutput(writer); serializer.startDocument("UTF-8", true); serializer.startTag("", "PostData"); serializer.startTag("", "RetrieveMsg"); serializer.attribute("", "ver", sVersion); serializer.attribute("", "DevID", sDeviceID); serializer.attribute("", "eMailAddress", sEMailAddress); logger.append("D", className, "CreateCallXML", "LastIncMsgID:" + Settings.LastIncMsgID); logger.append("D", className, "CreateCallXML", "LastDLMsgID: " + Settings.LastDLMsgID); serializer.attribute("", "LastIncMsgID", "" + Settings.LastIncMsgID); serializer.attribute("", "LastDLMsgID", "" + Settings.LastDLMsgID); serializer.endTag("", "RetrieveMsg"); serializer.endTag("", "PostData"); serializer.endDocument(); return writer.toString(); } catch (Exception e) { return null; } } </code></pre> <p><strong>Update 2:</strong></p> <p>after going through the code it appears that the users email address is the problem an example of the users email address is <code>abcd3961@gmail.com</code> if I use that it throws the exception when it hits the line to make the call to the server. If I change one letter in the email address it executes the call fine.</p> <p>is this a ksoap problem? and how can I get around this as i cannot tell him to change his email address?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload