Internal server error when a user is added

Hello everyone

I am kinda new to XMPP world. What I am trying to do is simple (at least it sounds simple). I have an open fire server running on a centos box. I am trying to send a simple “add roster request” to the server using:

I followed the instructions given in “Professional XMPP Programming with JavaScript and jQuery” and created a console like web page to send and recieve stanzas to and from server. After sending the above stanza this is what I get:

<iq type=‘error’



<item jid=‘another-user’


<error code=‘500’


I checked the server error log and this is what I got:

2011.03.05 00:41:46 [org.jivesoftware.openfire.handler.IQRosterHandler.handleIQ(IQRosterHandler.jav a:128)] Internal server error
org.jivesoftware.openfire.auth.UnauthorizedException: org.jivesoftware.openfire.user.UserNotFoundException
at org.jivesoftware.openfire.handler.IQRosterHandler.manageRoster(IQRosterHandler. java:234)
at org.jivesoftware.openfire.handler.IQRosterHandler.handleIQ( :105)
at org.jivesoftware.openfire.handler.IQHandler.process(
at org.jivesoftware.openfire.IQRouter.handle(
at org.jivesoftware.openfire.IQRouter.route(
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(
at org.jivesoftware.openfire.SessionPacketRouter.route( 0)
at org.jivesoftware.openfire.SessionPacketRouter.route( )
at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets( 611)
at org.jivesoftware.openfire.http.HttpSessionManager$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)
Caused by: org.jivesoftware.openfire.user.UserNotFoundException
at org.jivesoftware.openfire.user.DefaultUserProvider.loadUser(DefaultUserProvider .java:91)
at org.jivesoftware.openfire.user.UserManager.getUser(
at org.jivesoftware.openfire.handler.IQRosterHandler.manageRoster(IQRosterHandler. java:200)
… 12 more

I believe the problem is the user is left anonymous. In response to my presence I get no reply from the server.

I am seriously lost. It would be a great help if you guys could guide me to the right path.

Bumping this problem because I’m seeing identical behavior; I have two users on my test server but no matter what I type I cannot get one to add the other to their roster.