[JDEV] HELP!!! Jabber Logout kill server!
Leon Kwan
leon at icon.com.hk
Mon Dec 4 05:29:49 CST 2000
Hello any genius,
I am using jabberbeans to develop an jabber client.
I am facing the problem of logging out.
originally, there is no problem while logout.
My logout code is:
connection.delPacketListener(myPacketListener);
connection.delPacketListener(myMessagePacketListener);
connection.delPacketListener(myIQPacketListener);
connection.delConnectionListener(myConnectionListener);
connection.disconnect();
But after I installed icqtransport, I add the following codes before my
original logout code if I found that the user has registered icq to the
jabber server.
PresenceBuilder pb=new PresenceBuilder();
pb.setStatus(null);
pb.setStateShow(null);
pb.setToAddress(null);
pb.setType("unavailable");
pb.setFromAddress(new JID ("leon", "redhat", "JabberApplet"));
connection.send(pb.build());
but then when I run logout, no matter I have registered the ICQ or not,
the server will die at the same time with the error code in server side:
Mon Dec 4 19:21:40 2000 warn/etherx error 'Interrupted system call'
reading from socket ''
anyone have any hints??
I tried to use winjab, it works fine without killing error, so I think
icqtransport and jserver should be ok.
so any developer have used jabberbeans to develop face the same problem?
-Leon
More information about the JDev
mailing list