Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
svenk #1
User title: Mr.
Member since Jul 2007 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: 0k files created during filetransfer
Hi,

I use miniclient and spark clients along with openfire server to test the file transfer; When I send files from spark to miniclient it works but not the other way. I get a 0k file created by spark.
I was hoping if I pasted the send and receive logs from miniclient, you guys can point me to anything that I'm missing. Any help is appreciated.

From Spark to Mini
spark: <iq id="dOOE2-49" to="madhan@venky/MiniClient" from="user1@venky/spark" type="set"><si xmlns="http://jabber.org/protocol/si" id="jsi_2756468538531082847" mime-type="application/octet-stream" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="spark_2_5_8.exe" size="28349440"><desc>Sending file</desc></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field var="stream-method" type="list-multi"><option><value>http://jabber.org/protocol/bytestreams</value></option><option><value>http://jabber.org/protocol/ibb</value></option></field></x></feature></si></iq>

Mini: <iq xmlns="jabber:client" id="dOOE2-49" to="user1@venky/spark" type="result"><si xmlns="http://jabber.org/protocol/si" id="jsi_2756468538531082847"><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>

spark: <iq id="dOOE2-50" to="madhan@venky/MiniClient" from="user1@venky/spark" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_2756468538531082847" mode="tcp"><streamhost jid="proxy.venky" host="172.16.1.89" port="7777"/></query></iq>

mini: <iq xmlns="jabber:client" type="result" to="user1@venky/spark" id="dOOE2-50"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost-used jid="proxy.venky" /></query></iq>

=== this is working ====


From Mini to spark

mini: <iq id="agsXMPP_14" to="san@venky/spark" type="set"><si xmlns="http://jabber.org/protocol/si" profile="http://jabber.org/protocol/si/profile/file-transfer" id="76524e5b-0abe-4ca1-9823-1a7fe67c1cea"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="ChangeLog" size="24312"><range /></file><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>

spark: <iq id="agsXMPP_14" to="madhan@venky/MiniClient" from="san@venky/spark" 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>

mini: <iq xmlns="jabber:client" id="agsXMPP_15" to="san@venky/spark" type="set"><query xmlns="http://jabber.org/protocol/bytestreams" sid="76524e5b-0abe-4ca1-9823-1a7fe67c1cea"><streamhost jid="proxy.venky" host="172.16.1.89" port="7777" /></query></iq>

spark: <iq id="agsXMPP_15" to="madhan@venky/MiniClient" from="san@venky/spark" type="result"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost-used jid="proxy.venky"/></query></iq>

== this is not working; creating 0k files ========

thanking you in advance
Venky
Avatar
Alex #2
Member since Feb 2003 · 4246 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello svenk,

the logfiles are not complete. Can you post also the rest of the logs?
Did you try to debug the code to see why the file has only 0K?

Its a known problem in the XMPP Standards Foundation (XSF) that file transfer code in various clients is not compatible to each other adn that we need a better standard for file transfers.
When we wrote the file transfer example we tested against our own code, Exodus and Psi with success.

I will try to download Spark and debug the file transfer if I have some minutes.

Alex
Alexander Gnauck
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS