The library fails to perform login and returns a login timeout exception.
This only happens when logging as available (when invisible the bug does not appear) in with an account that has itself in the messenger list.
Eg. If I try to login as available with "theuser" and "theuser" has in the list "theuser" (in my case it was the only contact in the list), it throws a login timeout exception although the user/pass are corect.
Jymsg receives an unknown/bad packet, and reaching "Session::receiveLogon(YMSG9Packet pkt)" throws and exception, I think "YMSG9BadFormatException", and loginOver is never set to true. It seemed to be a null pointer involved in the functions called by "updateFriendsStatus(pkt);".
The code used:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ymf;
//import ymsg.test.*;
import ymsg.network.*;
import ymsg.support.*;
/**
*
* @author Florin
*/
public class Main
{
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
try
{
// TODO code application logic here
ymsg.network.Session session = new ymsg.network.Session();
session.addSessionListener(new MySessionListener());
session.setStatus(StatusConstants.STATUS_AVAILABLE);
//session.setStatus(StatusConstants.STATUS_INVISIBLE);
try
{ session.login("mxdigital", "xipponk");
}
catch(AccountLockedException e)
{ System.out.println("Your account is locked");
if(e.getWebPage()!=null) System.out.println("Please visit: "+e.getWebPage().toString());
throw e;
}
catch(LoginRefusedException e)
{ System.out.println("Yahoo refused our connection. Username/password incorrect?");
throw e;
}
// -----Are we cooking with gas?
if(session.getSessionStatus()==StatusConstants.MESSAGING)
{ System.out.println(session.getConnectionHandler().toString());
}
else
{ System.out.println("Sorry, there was a problem connecting");
}
//sess.sendBuzz("floreabogdanflorin");
//ymsg.test.SwingTestClient a = new ymsg.test.SwingTestClient("mxdigital", "xipponk", "localhost", "5128");
//a.setVisible(true);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
The session listener used.
Logged In: NO
forgot to mention the email .. floreabogdanflorin[*at*]yahoo[*dot*]com