XMPP/smack/openfire javax.net. SSL. sslexception: Encrypted ed fatal alert: internal_error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.