im am Developing a Chat app, at the FileTransfers, i can successfully send file to a spark client, but at the listening, i am receiving NullPointerException error at the negotiating part, here is the IQ received by android client from spark:
RCV (0): <iq id="dnkUY-33" to="reza@reza-hp/Smack" from="admin@reza-hp/Spark 2.6.3"
type="set">
<si xmlns="http://jabber.org/protocol/si" id="jsi_5267323957851897853"
mime-type="image/jpeg" profile="http://jabber.org/protocol/si/profile/file-
transfer">
<file xmlns="http://jabber.org/protocol/si/profile/file-transfer"
name="635px-Food.jpg" size="45135">
<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-single">
<option><value>http://jabber.org/protocol/bytestreams</value></option><option>
<value>http://jabber.org/protocol/ibb</value></option></field></x></feature>
</si></iq>
and here is the error Printed:
07-01 13:40:49.075: W/System.err(1986): java.lang.NullPointerException
07-01 13:40:49.075: W/System.err(1986):
atorg.jivesoftware.smackx.filetransfer.
IncomingFileTransfer.negotiateStream(IncomingFileTransfer.java:173)
07-01 13:40:49.075: W/System.err(1986): at
org.jivesoftware.smackx.filetransfer.
IncomingFileTransfer.access$100(IncomingFileTransfer.java:45)
07-01 13:40:49.075: W/System.err(1986): at
org.jivesoftware.smackx.filetransfer.
IncomingFileTransfer$1.run(IncomingFileTransfer.java:122)
07-01 13:40:49.085: W/System.err(1986): at java.lang.Thread.run(Thread.java:841)
the Exception is null, but According to the IQ provided, it seems transfer Type is a " Stream Initiation " , so i thought may be asmack doesnt discover it by default, does any one has any solution for this, or knows how to discover "Stream Initiation" ? thanks alot in advance <3 oh and im using OpenFire server :)