Hello everyone!
I’m running in troubles while handling with file transfers after I upgraded from Smack 3.1 to 3.2.
In 3.1 I successfully could ran incoming and outgoing file transfers with two Accounts from jabber.org. One Account was bound to Pidgin and another account to my local running self made application. I could transfer files fromt my app to pidgin and vice versa.
I had to upgrade to 3.2 because I had problems in connecting and logging in to some XMPP-Servers which I have to support in my application.
Now im running into the problem that outgoing file transfers (from my app to pidgin) can be established and successfully transfered, but when I try to send a file from pidgin to my application the transfers stops with an error during negotiating the stream.
Exectly spoken I get an exception:
– caused by: java.util.concurrent.ExecutionException: Could not establish socket with any provided host: item-not-found(404) Could not establish socket with any provided host
It is quite strange, that the getState on the transfer object tells returns ERROR but when i call the getError() method i fall into an nullpointer exception when i try to get the message from. The Exception is printed out with help of the getException() method of the tranfser object.
The following packets generated during the file transfer
<iq id="purplebf500384" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="get">
<query xmlns="http://jabber.org/protocol/disco#info"/>
</iq> <iq id="purplebf500384" to="senton@jabber.org/30aaede48499eda0" type="result">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="client" name="Smack" type="pc"/>
<feature var="http://jabber.org/protocol/xhtml-im"/>
<feature var="http://jabber.org/protocol/muc"/>
<feature var="http://jabber.org/protocol/bytestreams"/>
<feature var="http://jabber.org/protocol/commands"/>
<feature var="http://jabber.org/protocol/si/profile/file-transfer"/>
<feature var="http://jabber.org/protocol/si"/>
<feature var="http://jabber.org/protocol/ibb"/>
</query>
</iq> <iq id="purplebf500385" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="set">
<si xmlns="http://jabber.org/protocol/si" id="purplebf500386" profile="http://jabber.org/protocol/si/profile/file-transfer">
<file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="SNV13036.JPG" size="2443157" date="2011-06-12T12:27:26.078Z"/>
<feature xmlns="http://jabber.org/protocol/feature-neg">
<x xmlns="jabber:x:data" type="form">
<field var="stream-method" type="list-single">
<option>
<value>http://jabber.org/protocol/bytestreams</value>
</option>
<option>
<value>http://jabber.org/protocol/ibb</value>
</option>
</field>
</x>
</feature>
</si>
</iq> <iq id="purplebf500385" to="senton@jabber.org/30aaede48499eda0" from="senton82@jabber.org/3fdb5729d1" 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>
</field>
</x>
</feature>
</si>
</iq> <iq id="purplebf500387" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="set">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="purplebf500386" mode="tcp">
<streamhost jid="senton@jabber.org/30aaede48499eda0" host="10.0.0.99" port="50151"/>
<streamhost jid="senton@jabber.org/30aaede48499eda0" host="192.168.56.1" port="50151"/>
<streamhost jid="proxy.eu.jabber.org" host="91.121.109.155" port="7777"/>
</query>
</iq> <iq id="purplebf500387" to="senton@jabber.org/30aaede48499eda0" from="senton82@jabber.org/3fdb5729d1" type="error">
<query xmlns="http://jabber.org/protocol/bytestreams" sid="purplebf500386" mode="tcp">
<streamhost jid="senton@jabber.org/30aaede48499eda0" host="10.0.0.99" port="50151"/>
<streamhost jid="senton@jabber.org/30aaede48499eda0" host="192.168.56.1" port="50151"/>
<streamhost jid="proxy.eu.jabber.org" host="91.121.109.155" port="7777"/>
</query>
<error code="404" type="CANCEL">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Could not establish socket with any provided host</text>
</error>
</iq> <iq id="purplebf500388" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="set">
<open xmlns="http://jabber.org/protocol/ibb" block-size="4096" sid="purplebf500386" stanza="iq"/>
</iq> <iq id="purplebf500388" to="senton@jabber.org/30aaede48499eda0" from="senton82@jabber.org/3fdb5729d1" type="error">
<open xmlns="http://jabber.org/protocol/ibb" block-size="4096" sid="purplebf500386" stanza="iq"/>
<error code="406" type="MODIFY">
<not-acceptable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq> <iq id="purplebf500389" to="senton@jabber.org/30aaede48499eda0" from="senton82@jabber.org/3fdb5729d1" type="error">
<close xmlns="http://jabber.org/protocol/ibb" sid="purplebf500386"/>
<error code="404" type="CANCEL">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq> <iq id="purplebf500389" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="set">
<close xmlns="http://jabber.org/protocol/ibb" sid="purplebf500386"/>
</iq> <iq id="purplebf500389" to="senton82@jabber.org/3fdb5729d1" from="senton@jabber.org/30aaede48499eda0" type="error">
<error code="440" type="CANCEL">
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
Has anybody any hints why the transfer is failing?
thx in advance