I am developing an swing application for sending the mail using authentication. The Issue I am facing is when i enter wrong username and password it is giving AuthenticationException after that when i enter correct userid and password again it is giving same exception. if i close whole application and start again and enter correct uid and password than it is working perfectly.
想要的是,它向用户传递“AusenticationException”,希望向用户传递信息,允许他们改变密码和用户,而不重新启动整个申请。
I am trying it from last 3 days without success please help me.