when i xmpp protocol to transfer image it's appear following problem:

<iq id="J0d6z-85" to="puli100@122.96.25.106/cdsc" type="set" from="mac001@122.96.25.106/cdsc"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_5549213656611506847" mode="tcp"><streamhost jid="proxy.122.96.25.106" host="null" port="7777"/></query></iq>

why this host is null ,i has configged it in openfire server openfire config:

  1. xmpp.proxy.externalip 122.96.25.106
  2. xmpp.proxy.enabled true

full logs

 11-18 10:12:12.028    2863-3183/com.milanotech.cdscframework D/SMACK﹕ 10:12:12 上午 SENT (1125962112): <iq id="J0d6z-81" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="result"><si xmlns="http://jabber.org/protocol/si"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value><value>http://jabber.org/protocol/ibb</value></field></x></feature></si></iq>
 11-18 10:12:12.028    2863-3467/com.milanotech.cdscframework D/yaxim.StreamHandler﹕ sending <iq id="J0d6z-81" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="result"><si xmlns="http://jabber.org/protocol/si"><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="submit"><field var="stream-method"><value>http://jabber.org/protocol/bytestreams</value><value>http://jabber.org/protocol/ibb</value></field></x></feature></si></iq>
 11-18 10:12:12.028    2863-3468/com.milanotech.cdscframework E/dalvikvm﹕ threadid=30: created from interp,name=pool-8-thread-1
 11-18 10:12:12.028    2863-3468/com.milanotech.cdscframework E/dalvikvm﹕ threadid=30: calling run(),name=pool-8-thread-1
 11-18 10:12:12.028    2863-3469/com.milanotech.cdscframework E/dalvikvm﹕ threadid=31: created from interp,name=pool-8-thread-2
 11-18 10:12:12.028    2863-3469/com.milanotech.cdscframework E/dalvikvm﹕ threadid=31: calling run(),name=pool-8-thread-2
 11-18 10:12:12.088    2863-3184/com.milanotech.cdscframework D/SMACK﹕ 10:12:12 上午 RCV  (1125962112): <iq id="J0d6z-85" to="puli100@122.96.25.106/cdsc" type="set" from="mac001@122.96.25.106/cdsc"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_5549213656611506847" mode="tcp"><streamhost jid="proxy.122.96.25.106" host="null" port="7777"/></query></iq>
 11-18 10:12:12.088    2863-3470/com.milanotech.cdscframework E/dalvikvm﹕ threadid=33: created from interp,name=pool-5-thread-2
 11-18 10:12:12.088    2863-3471/com.milanotech.cdscframework E/dalvikvm﹕ threadid=34: created from interp,name=Thread-336
 11-18 10:12:12.088    2863-3185/com.milanotech.cdscframework D/yaxim.StreamHandler﹕ recv <iq id="J0d6z-85" to="puli100@122.96.25.106/cdsc" from="mac001@122.96.25.106/cdsc" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_5549213656611506847" mode = "tcp"><streamhost jid="proxy.122.96.25.106" host="null" port="7777"/></query></iq>
 11-18 10:12:12.088    2863-3185/com.milanotech.cdscframework I/yaxim.SmackableImp﹕ Ping: server latency 245.311s (estimated)
 11-18 10:12:12.088    2863-3470/com.milanotech.cdscframework E/dalvikvm﹕ threadid=33: calling run(),name=pool-5-thread-2
 11-18 10:12:12.088    2863-3471/com.milanotech.cdscframework E/dalvikvm﹕ threadid=34: calling run(),name=Thread-336
 11-18 10:12:22.088    2863-3468/com.milanotech.cdscframework D/yaxim.StreamHandler﹕ sending <iq id="J0d6z-85" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="error"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_5549213656611506847" mode = "tcp"><streamhost jid="proxy.122.96.25.106" host="null" port="7777"/></query><error code="404" type="cancel"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Could not establish socket with any provided host</text></error></iq>
  11-18 10:12:22.088    2863-3183/com.milanotech.cdscframework D/SMACK﹕ 10:12:22 上午 SENT (1125962112): <iq id="J0d6z-85" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="error"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_5549213656611506847" mode = "tcp"><streamhost jid="proxy.122.96.25.106" host="null" port="7777"/></query><error code="404" type="cancel"><item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Could not establish socket with any provided host</text></error></iq>
 11-18 10:12:22.098    2863-3467/com.milanotech.cdscframework E/dalvikvm﹕ threadid=29: exiting,name=File Transfer jsi_5549213656611506847
 11-18 10:12:22.098    2863-3469/com.milanotech.cdscframework E/dalvikvm﹕ threadid=31: exiting,name=pool-8-thread-2
 11-18 10:12:22.098    2863-3468/com.milanotech.cdscframework E/dalvikvm﹕ threadid=30: exiting,name=pool-8-thread-1
 11-18 10:12:22.108    2863-3184/com.milanotech.cdscframework D/SMACK﹕ 10:12:22 上午 RCV  (1125962112): <iq id="J0d6z-86" to="puli100@122.96.25.106/cdsc" type="set" from="mac001@122.96.25.106/cdsc"><open xmlns="http://jabber.org/protocol/ibb" block-size="4096" sid="jsi_5549213656611506847" stanza="iq"/></iq>
 11-18 10:12:22.108    2863-3184/com.milanotech.cdscframework D/yaxim.StreamHandler﹕ sending <iq id="J0d6z-86" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
 11-18 10:12:22.108    2863-3183/com.milanotech.cdscframework D/SMACK﹕ 10:12:22 上午 SENT (1125962112): <iq id="J0d6z-86" to="mac001@122.96.25.106/cdsc" from="puli100@122.96.25.106/cdsc" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

Related posts

Recent Viewed