powered by Jive Software

File transfer not working in specific scenario

File transfer working fine between two real users(Mr x to Mr y). But in my application i use one xmpp user as proxy user to send the file when user request. So the proxy user get xml data from database and create file in filesystem temp location, write the xml content to the file and upload the file to the user. In this scenario i am problem. when it try to send the file it get disconnected. And no error or Exception thrown in smack console of the proxy user.

FYI

Openfire 3.7

Smack3.2.1

Please help me to fix the problem. Thanks

Are you using Smack for your project? If yes, you may want to know that 3.2.x has a pretty buggy file transfer code.

Thanks for you reply.

ya. I have seen forums. But how it is possible to working fine in other scenarios. Only this scenarios makes me problem. Any solution?

Check the experimental smack just published on the front page of igniterealtime.

Event i tried with Experimental smak. But still the problem exist. Smack log is:

Error in execution:

– caused by: java.util.concurrent.ExecutionException:

– caused by: Could not establish socket with any provided host: item-not-found(404) Could not establish socket with any provided host

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:199)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFi leTransfer.java:47)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTra nsfer.java:124)

at java.lang.Thread.run(Thread.java:619)

Nested Exception:

java.util.concurrent.ExecutionException:

– caused by: Could not establish socket with any provided host: item-not-found(404) Could not establish socket with any provided host

at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)

at java.util.concurrent.FutureTask.get(FutureTask.java:91)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:193)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFi leTransfer.java:47)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTra nsfer.java:124)

at java.lang.Thread.run(Thread.java:619)

Caused by:

– caused by: Could not establish socket with any provided host: item-not-found(404) Could not establish socket with any provided host

at org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator.createIncomingStre am(FaultTolerantNegotiator.java:113)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:186)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:183)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:190)

… 3 more

Just check with smack 3.2.2 alpha release. It should work fine. I have tested it on android client and it’s working fine.

Thanks,

Shiv

Thank you for your response.

I tried with smack 3.2.2 alpha. It is not working for me…

Now i got following message

Error in execution:

– caused by: java.util.concurrent.ExecutionException:

– caused by: No response from remote client:

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:199)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFi leTransfer.java:47)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTra nsfer.java:124)

at java.lang.Thread.run(Thread.java:619)

Nested Exception:

java.util.concurrent.ExecutionException:

– caused by: No response from remote client:

at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)

at java.util.concurrent.FutureTask.get(FutureTask.java:91)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:193)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.access$100(IncomingFi leTransfer.java:47)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$1.run(IncomingFileTra nsfer.java:124)

at java.lang.Thread.run(Thread.java:619)

Caused by:

– caused by: No response from remote client:

at org.jivesoftware.smackx.filetransfer.FaultTolerantNegotiator.createIncomingStre am(FaultTolerantNegotiator.java:113)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:186)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer$2.call(IncomingFileTr ansfer.java:183)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at org.jivesoftware.smackx.filetransfer.IncomingFileTransfer.negotiateStream(Incom ingFileTransfer.java:190)

… 3 more

Did you find any solution? I am getting the same error. Tried 3.2.1 and 3.2.2