i have a problem sending smack messages with attached properties. i’'m using smack1.0-beta2.
the following exception is thrown at client2, if i try to send a message with included string-property from client1 to client2…
exception:
‘‘org.xmlpull.v1.XmlPullParserException: parser must be on START_TAG or TEXT to read text (position: START_TAG seen …ttp://www.jivesoftware.com/xmlns/xmpp/properties’’>… @1:1014)
at org.xmlpull.mxp1.MXParser.nextText(MXParser.java:1115)
at org.jivesoftware.smack.PacketReader.parseProperties(PacketReader.java:597)
at org.jivesoftware.smack.PacketReader.parseMessage(PacketReader.java:499)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:247)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:73)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:98)’’
the client can’'t interpret the incoming xml-stream…
as far is i can figure out, this xml-stream seems valid, so there must be either a problem in the XMLPullParserimplementation or some bug in the smack PacketReader.class that i wasn’'t able to find…
or i’'m just 2 stupid to do it right - please help
‘‘org.xmlpull.v1.XmlPullParserException: parser must be on START_TAG or TEXT to read text (position: START_TAG seen …ttp://www.jivesoftware.com/xmlns/xmpp/properties’’>… @1:1014)
The error message looks suspcious. There’'s a backslash before the ending single quote for the xmlns attribute. Could there be an escaping error somewhere?
Could you explain briefly where the problem stemmed from? I was able to recreate the same error yesterday, but waking up this morning I seem to have lost the ability to crash the application. lol.
Also, it’‘s probably somewhere on this site, but what’'s the ETA for the release of beta 3?
I believe that trying to read properties attached to packets was basically entirely broken. It was due to a bit of faulty XML parsing logic.
There’'s no ETA on beta 3 quite, yet, although it will likely be out soon, since there are many important changes. One good way to track progress is to look at the list of open vs. fixed issues in the issue tracker.