I use Smack and xmpp to send messages in the application, when I try to send a picture, I get the error: java.lang.IllegalArgumentException: The provided user id was not a full JID line in this line is:

 OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer(id); 

Before that I recognize the user id through:

 String id= roster.getPresence("test2@irynas-macbook-air.local").getStanzaId(); 

What's wrong? Where to get full JID ?

  • instead of getStanzaId() - getFrom() ? - pavlofff

1 answer 1

I realized what the problem was to specify the id in this format: test2@irynas-macbook-air.local/Irynas-MacBook-Air , where Irynas-MacBook-Air is a resource .