I already enabled the File Transfer Settings, and the port is open.
When I try to send file I'm getting the xmpp error I mentioned above.
When I'm using other openfire server, the file transfered successfuly (so my code is OK).
Maybe you have another idea?