During XMPP communication, a javax.net. SSL. sslexception: specified ed fatal alert: internal_error Error error occurs when you log on to a non-local openfire server using the smack framework. The reason is that there is a logon delay (when the connection fails to be successfully linked to the openfire server) When you log on to the openfire server, this exception occurs.
Solution
1. After connecting to the openfire server, the thread sleep for a period of time before logging on to login.
......
Connection. Connect ();
Thread. Sleep (3000 );
Connection. login (user, pass );
......
2. Set the setpacketreplytimeout parameter.
......
Smackconfiguration. setpacketreplytimeout (packet_reply_timeout );
Config = new connectionconfiguration (server, Port );
......
Note: if an error occurs after the sleep time or setpacketreplytimeout parameter is set, increase the time settings.
Http://community.igniterealtime.org/message/206443#206443