powered by Jive Software

Is correctly for AccountManager''s supportsAccountCreation method

i use openim as my jabber server, i invoke the supportsAccountCreation method , it return fase

when i directly invoke the createAccount() method which comments the supportsAccountCreation() method at source coce , the account is created sucssesed!

i want to ask

the supportsAccountCreation method is correctly?

thx!

Can you paste in an XML transcript (using Smack debug) so that I can check it out?

Thanks,

Matt

source code:

try{

XMPPConnection connection = new XMPPConnection(“localhost”);

Registration reg = new Registration();

reg.setTo(connection.getHost());

System.out.println(reg.toXML());

PacketFilter filter = new AndFilter(new PacketIDFilter(reg.getPacketID()),

new PacketTypeFilter(IQ.class));

PacketCollector collector = connection.createPacketCollector(filter);

connection.sendPacket(reg);

IQ result = (IQ)collector.nextResult(5000);

if (result == null) {

throw new XMPPException(“No response from server.”);

}

else if (result.getType() == IQ.Type.ERROR) {

throw new XMPPException(result.getError());

}

}catch(Exception me){

System.out.println(me.toString());

}

console infomation:

org.jivesoftware.smack.XMPPException: No response from server.

Not sure how this code helps… what is it supposed to show? What I really wanted to see was the XML to and from the server when you call the method from AccountManager.

Thanks,

Matt