java - alert "Invalid jabber ID" when I use sendInvitation method or add withFromJid parameter in new messageBuilder -
i want assign send user. when run program, got error:java.lang.illegalargumentexception: invalid jabber id: . or show invalid jabber id. if no "withfromjid" parameter,the gae default application name send user, can not accepted it, need assign user send one.
elow code:
//code 1.
jid jid = new jid("testa@mygmaildomain.com"); jid fromjid = new jid("testb@mygmaildomain.com"); xmppservice.sendinvitation(jid,fromjid);
//code 2.
jid jid = new jid("testa@mygmaildomain.com"); jid fromjid = new jid("testb@mygmaildomain.com"); message msg = new messagebuilder() .withmessagetype(messagetype.normal) .withrecipientjids(jid) .withfromjid(fromjid) .withbody("hello i'm fancy gae app, how you?") .build();
i run same problem, , cause ended being wrong fromjid
argument, despite exception reporting on jid
argument being invalid. if have @ code in xmppserviceimpl.sendinvitation(jid jabberid, jid fromjid)
method, see how occurs.
check both jid , fromjid correct , exist in xmpp server.
Comments
Post a Comment