我正在使用smack库发送数据包并且我收到错误503我想它可能是由主体括号中的xml引起但我不确定。我试图使自己的PacketExtension不是正文,但它没有帮助。这是我从服务器回来的消息。收到消息但是另一个客户端并且解析得很好,但我想知道为什么会出错。
<message id="Ly3iT-34" to="yyyyyy" from="xxxxxx" type="error"><body><xxxxx type="road_status_choose">
<version>1.1</version>
<msg_id>137482497930710041374824168527</msg_id>
<timestamp>1374824979307</timestamp>
<road_status_previous_path class="java.util.ArrayList">
<road_status>
<road_status_name>Postój</road_status_name>
<road_status_id>2</road_status_id>
</road_status>
</road_status_previous_path>
<status_list_id>1</status_list_id>
<road_status_path class="java.util.ArrayList">
<road_status>
<road_status_name>Jazda</road_status_name>
<road_status_id>1</road_status_id>
</road_status>
<road_status>
<road_status_name>Z ładunkiem</road_status_name>
<road_status_id>7</road_status_id>
<road_status_parent_id>1</road_status_parent_id>
</road_status>
</road_status_path>
<status_list_type>0</status_list_type>
</infis_message></body><error code="503" type="CANCEL"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error><properties xmlns="http://www.jivesoftware.com/xmlns/xmpp/properties"><property><name>RECEIVED</name><value type="boolean">true</value></property></properties></message>
提前致谢!