Hi
I got the following error during registration:
2007.11.21 13:23:52 org.jivesoftware.openfire.handler.IQRegisterHandler.handleIQ(IQRegisterHandler.j ava:153) Error during registration. Session not found in [] for key t100@im1.bft.net/PETERYANG01
The context is that the PSI client tries to register to a member-only MUC room.
During registraion, the following code exist: (it seems that Openfire does not allow the registration from other domain over S2S connection).
ClientSession session = sessionManager.getSession(packet.getFrom());
IQ reply = null;
// If no session was found then answer an error (if possible)
if (session == null) {
Log.error("Error during registration. Session not found in " +
sessionManager.getPreAuthenticatedKeys() +
" for key " +
packet.getFrom());
// This error packet will probably won’t make it through
reply = IQ.createResultIQ(packet);
reply.setChildElement(packet.getChildElement().createCopy());
reply.setError(PacketError.Condition.internal_server_error);
return reply;
}
Can i just comment out these lines?
Why these codes are around? what is the purpose?
regards
peter