powered by Jive Software

Can''t Authenicate

I tested jive out on a windows based server and everything worked great. So I moved it to my production Sun server. The server is running solaris 8, mysql 4.0.21, and Java 1.5.0-rc-b63. Now I can not get users to authenicate. I am using the gaim client, and mysql database. I am not seeing any errors in the jive server logs. However the authenication never gets more than 50% complete. This happens when trying to register a new user with gaim, or signing in with a user created in the admin page. Here is the XML output from Gaim if it will help.

account: Connecting to account 01A19A28. gc = 01A4C518

connection: Connecting. gc = 01A4C518

connection: Calling serv_login

server: gaim 1.1.0 logging in nicholas@e450/Gaim using Jabber

dns: DNS Lookup for: e450

proxy: Connecting to e450:5222 with no proxy

proxy: Connect would have blocked.

proxy: Connected.

jabber: Sending: <?xml version=''1.0'' ?>

jabber: Sending: <stream:stream to=’‘e450’’ xmlns=’‘jabber:client’’ xmlns:stream=’‘http://etherx.jabber.org/streams’’ version=’‘1.0’’>

jabber: Recv (163): <?xml version=''1.0'' encoding=''UTF-8''?><stream:stream xmlns:stream=“http://etherx.jabber.org/streams” xmlns=“jabber:client” from=“E450” id=“62765e7c” xml:lang=“en”>

jabber: Sending: <iq type=’‘get’’ id=’‘gaim4bb5727d’’><query xmlns=’‘jabber:iq:auth’’>nicholas

Hey nicholas,

Could you get a thread dump of Messenger’'s JVM? It seems that Messenger has locked while users are trying to authenticate.

Thanks,

– Gato

Here are the error logs. Hope this is what you are wanting. I was wrong I am now seeing some errors in the jive log.

2005.03.21 15:57:06 org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:70) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQRegisterHandler.handleIQ(IQRegisterHandler .java:148)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:00:25 org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:70) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQRegisterHandler.handleIQ(IQRegisterHandler .java:148)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:21:41 org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:144 ) Error handling authentication IQ packet

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:98 )

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:21:55 org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:144 ) Error handling authentication IQ packet

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:98 )

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:23:02 org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:144 ) Error handling authentication IQ packet

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:98 )

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:24:04 org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:70) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQRegisterHandler.handleIQ(IQRegisterHandler .java:148)

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

2005.03.21 16:37:03 org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:144 ) Error handling authentication IQ packet

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:98 )

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

Hey Nicholas,

Today I checked in some code with more debugging information. Could you try using the next nightly build? Also, if you can provide me a step-by-step procedure to follow so I can reproduce the problem…that would be great.

Thanks,

– Gato

I tried the nightly build from 3/22/05. I still get the same thing. Gaim shows that it is authenticating but never gets more that 50% complete. This is the error I get in the jive server

2005.03.22 13:49:35 org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:144 ) Error handling authentication IQ packet

java.lang.NullPointerException

at org.jivesoftware.messenger.handler.IQAuthHandler.handleIQ(IQAuthHandler.java:98 )

at org.jivesoftware.messenger.handler.IQHandler.process(IQHandler.java:48)

at org.jivesoftware.messenger.IQRouter.handle(IQRouter.java:195)

at org.jivesoftware.messenger.IQRouter.route(IQRouter.java:74)

at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.messenger.net.SocketReadThread.readStream(SocketReadThread.jav a:254)

at org.jivesoftware.messenger.net.SocketReadThread.run(SocketReadThread.java:110)

As far as a step by step to what I did.

  1. Upgrade Solaris Java. Created a new symbolic link java -version now produces this: java version “1.5.0-rc”

Java™ 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)

Java HotSpot™ Server VM (build 1.5.0-rc-b63, mixed mode)

  1. uppacked and installed jive.

  2. configured it to connect to localhost mysql database

  3. created a user nicholas

  4. tried to log in with gaim. Does not work. This same version of Gaim worked fine when I was testing jive on a winxp box before moving it to solaris. This would cause me to believe that it is something in the sun configuration that is wrong. I just dont know what. I have looked everything over 2-3 times.

If I attempt to create a user in gaim I get the same response. I have jive set to allow inband account creation.

Hey Nicholas,

You will have to wait until tomorrow’'s nightly build to get my changes. Anyway, I tried doing your exactly same steps and it worked fine for me.

Tomorrow let me know what errors do you see in the error.log file.

Thanks,

– Gato

I downloaded the nightly build 3/23/05. I also added JAVA_HOME in my enviroment setting. Now everything works great. Thanks for everything, this is a great program. I like how this version shows the amount of memory that java is using.