powered by Jive Software

Can''t login to the server

Hi:

Down this note is the thread I´ve been reading, I have the same problem…to make it clearer: suppose two users, user1 and user2. First user1 is online, user2 not. user1 adds user2, exodus indicates (pending).user2 logs later he gets a message from jives messenger indicating user1 has added him to his roster, user2 can deny or accept (doesn´t matter); from this point user2 won´t be able to log. Jives messenger in installed on a Windows 2000 SP3 server, v 1.0.6 with jre. My knowledge on Java is poor…please if you indicate any kind of procedure, make it in full extension. Thanks

Alfredo

Topic: Can’'t login to the server

Replies: 5 Pages: 1 Last Post: Aug 18, 2003 12:22 PM by: iain

Welcome, Guest

Login / Register

Guest Settings

Help

Reply to this Topic

Search Forum

Back to Topic List Topics: Previous

Replies: 5 Pages: 1

dombiak_gaston

Posts: 110

From: Argentina

Registered: Sep 26, 2001

Can’'t login to the server

Posted: Aug 2, 2003 10:21 AM Reply

Jive Messenger Server 1.0.6

Exodus 0.8.6.0

Jajc 0.0.6.98

Hi. I was playing with the roster of several users (adding new contacts, moving to categories, etc) and suddenly I cannot connect/login to the server with some users.

Below is an example of what I did and at the end of the post you can find the errors log.

. I have 3 user (gato1, gato2 and gato3)

. I logged in with gato2 and removed all the roster entries

. I logged in with gato3 and removed all the roster entries

. I logged in again with gato3 and added gato1 and gato2 to the roster (and they appeared with a question mark sign in Exodus)

. I logged in with gato2 and accepted the authorization request

. I logged in with gato3 and all the roster entries still appear with the question mark sign

. I logged in with gato2 again but didn’'t work

. I logged in with gato1 again but didn’'t work

. I can only log in with gato3

Using Jajc I get a socket error #10053 trying to login.

Errors that appear in jive.error.log:

003.08.02 10:57 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.spi.PresenceManagerImpl.probePresence(PresenceManagerImpl .java:326)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :166)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

003.08.02 10:58 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.XMPPAddress.hashCode(XMPPAddress.java:332)

at com.jivesoftware.xmpp.XMPPAddress.generateCachedJID(XMPPAddress.java:210)

at com.jivesoftware.xmpp.XMPPAddress.getUserJID(XMPPAddress.java:247)

at com.jivesoftware.xmpp.user.spi.DbRoster.getRosterItem(DbRoster.java:96)

at com.jivesoftware.xmpp.handler.IQRosterHandler.updateItem(IQRosterHandler.java:2 38)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :178)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

Regards,

– Gato

iain

Posts: 174

From: San Diego, CA, USA

Registered: Jan 10, 2003

Re: Can’'t login to the server

Posted: Aug 4, 2003 5:55 PM Reply

Hi,

Can you send me the XML from the sessions (paste it into the forum or attach them to your post)? Also, the scenario seems pretty complex so if you could try and find the simplest process that creates this behavior it would help a lot. it is also important to note in your description when you log out during the steps. I don’'t think the steps you outlined actually works for me.

Oh, and just for completeness, the jvm, os, and db you’'re using.

Thanks

-iain

dombiak_gaston

Posts: 110

From: Argentina

Registered: Sep 26, 2001

Re: Can’'t login to the server

Posted: Aug 9, 2003 3:26 PM Reply

Hey Iain,

JVM = 1.4.1_02

OS: XP

DB= embedded db (HSQL) / mysql

I could actually reproduce the problem in a few steps. I think that the problem is with Exodus and not with Messenger although Messenger could behave more defensive in situations like this.

Steps to reproduce the problem:

. Start Jive Messenger (fresh installation)

. Create several users (lets say gato1, gato2, gato4)

. Open Exodus 0.8.6.0

. Verify that you can login with the new users

. Now log in with gato4 (always using exodus)

. Add gato1 to the roster

. log out

. Log in with gato1

. A Subscription request dialog popus with nickname and group empty

. You can accept or deny (it’'s the same)

. log out

. try to login with gato1 and you can’'t

In Exodus’'s debug window I can see that when you try to login with gato1 (the first time) Exodus cannot parse the received XML.

ECV:

rivate">

Server could not be reached

rivate">

Unknown notify event: /presence/subscription

That’‘s probably why the Subscription request dialog is empty. I tried the same process with JAJC and there weren’'t any problems.

BTW, in the debug window I always see that whenever I try to login with any user I get the error code=“504”. Same behavior with exodus and JAJC. However, the application seems to work fine.

Regards,

– Gato

iain

Posts: 174

From: San Diego, CA, USA

Registered: Jan 10, 2003

Re: Can’'t login to the server

Posted: Aug 10, 2003 2:11 PM Reply

Hi Gato,

Could you check your config/jive_messenger.xml file for the property hostname</ jive> and see if it matches the name your client’‘s use for the server name (’‘gato.home’’ from your example)? The 504 error should be a result of a routing error when trying to reach a host the server doesn’‘t think is ‘‘local’’. Since Messenger is standalone right now (no s2s connections) I’‘ve been very liberal with accepting packets and assuming they are for the local server. However, private storage is one area where I couldn’‘t be liberal so this is where the mismatch between what the server thinks is it’‘s name, and what a client thinks is the server’'s name will emerge.

You can also see this problem in the mismatch between what the client connects to in it’‘s opening tag, and what the server sends in it’'s opening tag.

As for the subscription problem, the subscription behavior is consistent and valid (a pending subscription request will be resent when the user logs in). So the main problem is why it won’'t let your gato1 user log back in later. I suspect the problem is the host name, and Exodus freaking on the iqrivate error message (Exodus is very fragile with respect to iqrivate behavior).

-iain

dombiak_gaston

Posts: 110

From: Argentina

Registered: Sep 26, 2001

Re: Can’'t login to the server

Posted: Aug 17, 2003 10:15 AM Reply

Hey Iain,

Sorry for the late reply. FYI, I replaced gato.home with localhost and the error 504 stopped but the login problem still exits. Since I stopped playing with the rosters I don’'t care anymore about this problem. Anyway, if you want we can pursue this problem…

Best regards,

– Gato

iain

Posts: 174

From: San Diego, CA, USA

Registered: Jan 10, 2003

Re: Can’'t login to the server

Posted: Aug 18, 2003 12:22 PM Reply

OK. Well, just let me know if you do run into it again.

-iain

Hi,

Can you post the jiveHome/logs/jive.error.log file and the contents of the other log files if there is anything unusual there? In addition, please indicate what client program you’‘re using and if possible, post the XML being sent between client and server when replicating this error. E.g. if you’'re using Exodus, hit F12 to get a debug window, if using a Smack driven program, set the system property smack.debugEnabled to true: java -jar -Dsmack.debugEnabled=true SmackApp.jar

Thanks

-iain

jive.error.log

2003.09.29 13:37 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.XMPPAddress.hashCode(XMPPAddress.java:332)

at com.jivesoftware.xmpp.XMPPAddress.generateCachedJID(XMPPAddress.java:210)

at com.jivesoftware.xmpp.XMPPAddress.getUserJID(XMPPAddress.java:247)

at com.jivesoftware.xmpp.user.spi.DbRoster.getRosterItem(DbRoster.java:96)

at com.jivesoftware.xmpp.handler.IQRosterHandler.updateItem(IQRosterHandler.java:2 38)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :178)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

2003.09.29 13:37 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.spi.PresenceManagerImpl.probePresence(PresenceManagerImpl .java:326)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :166)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

2003.09.29 13:37 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.spi.PresenceManagerImpl.probePresence(PresenceManagerImpl .java:326)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :166)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

2003.09.29 13:37 [com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:362 )

] Internal server error

java.lang.NullPointerException

at com.jivesoftware.xmpp.spi.PresenceManagerImpl.probePresence(PresenceManagerImpl .java:326)

at com.jivesoftware.xmpp.handler.IQRosterHandler.manageRoster(IQRosterHandler.java :166)

at com.jivesoftware.xmpp.handler.IQRosterHandler.handleIQ(IQRosterHandler.java:97)

at com.jivesoftware.xmpp.spi.IQHandler.handleMessages(IQHandler.java:48)

at com.jivesoftware.xmpp.spi.BasicChannel$ChannelWorker.run(BasicChannel.java:340)

jive.warn.log

empty

jive.info

2003.09.29 13:27 Chat host name: chat.laboratorio

2003.09.29 13:27 Jive Messenger 1.0.6 Professional Started

2003.09.29 13:27 Messenger domain: laboratorio

2003.09.29 13:27 Server successfully started

2003.09.29 13:27 Using free 10 user workgroup license: License file C:\Archivos de programa\Jive Messenger\bin…\config\jive_messenger.license not found

2003.09.29 13:27 Licensed for 10 users

2003.09.29 13:27 Initializing channels

2003.09.29 13:27 - subscribe

2003.09.29 13:27 - update

2003.09.29 13:27 - iq.auth

2003.09.29 13:27 - iq.agents

2003.09.29 13:27 - iq.vcard

2003.09.29 13:27 - iq.register

2003.09.29 13:27 - iq.roster

2003.09.29 13:27 - iq.private

2003.09.29 13:27 - iq.time

2003.09.29 13:27 - iq.version

2003.09.29 13:27 Started plain (unencrypted) socket on port: 5222

2003.09.29 13:27 Started SSL (encrypted) socket on port: 5223

2003.09.29 13:27 Started embedded web server on port: 9090

2003.09.29 13:31 Connect Socket[addr=/192.168.1.140,port=1379,localport=5222]

2003.09.29 13:31 user1@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@2b323e

2003.09.29 13:32 Connect Socket[addr=/192.168.1.140,port=1381,localport=5222]

2003.09.29 13:32 Logging off user1@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@2b323e

2003.09.29 13:32 user1@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@1038de7

2003.09.29 13:32 Connect Socket[addr=/192.168.1.140,port=1383,localport=5222]

2003.09.29 13:32 Logging off user1@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@1038de7

2003.09.29 13:32 user1@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@183e7de

2003.09.29 13:32 Connect Socket[addr=/192.168.1.140,port=1385,localport=5222]

2003.09.29 13:32 Logging off user1@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@183e7de

2003.09.29 13:32 user1@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@ebcdbb

2003.09.29 13:32 Logging off user1@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@ebcdbb

2003.09.29 13:36 Connect Socket[addr=/192.168.1.140,port=1387,localport=5222]

2003.09.29 13:36 user1@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@10fe2b9

2003.09.29 13:36 Logging off user1@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@10fe2b9

2003.09.29 13:36 Connect Socket[addr=/192.168.1.140,port=1389,localport=5222]

2003.09.29 13:36 user2@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@ea48be

2003.09.29 13:37 Logging off user2@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@ea48be

2003.09.29 13:37 Connect Socket[addr=/192.168.1.140,port=1391,localport=5222]

2003.09.29 13:37 user2@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@61a907

2003.09.29 13:37 Logging off user2@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@61a907

2003.09.29 13:37 Connect Socket[addr=/192.168.1.140,port=1393,localport=5222]

2003.09.29 13:37 user2@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@1a0225b

2003.09.29 13:37 Logging off user2@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@1a0225b

2003.09.29 13:37 Connect Socket[addr=/192.168.1.140,port=1395,localport=5222]

2003.09.29 13:37 user2@laboratorio/Exodus authenticated on connection com.jivesoftware.xmpp.net.SocketConnection@2f8b5a

2003.09.29 13:37 Logging off user2@laboratorio/Exodus on com.jivesoftware.xmpp.net.SocketConnection@2f8b5a

embedded-web.log

13:27:28.482 EVENT org.mortbay.http.HttpServer.start(HttpServer.java:639)20> Starting Jetty/4.2.x

13:27:28.692 EVENT org.mortbay.util.FileResource.(FileResource.java:44)24> Checking Resource aliases

13:27:29.073 EVENT org.mortbay.http.HttpContext.start(HttpContext.java:1815)22> Started WebApplicationContext[/,Jive Messenger]

13:27:29.574 EVENT org.mortbay.http.SocketListener.start(SocketListener.java:154)21> Started SocketListener on 0.0.0.0:9090

13:27:29.574 EVENT org.mortbay.http.HttpServer.start(HttpServer.java:675)20> Started org.mortbay.jetty.Server@476128

The client programm is Exodus 0.8.6.0

This is the result of the debug for the entries shown up

SENT: <stream:stream to=“laboratorio” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0” >

RECV: <stream:stream xmlns=’‘jabber:client’’ xmlns:stream=’‘http://etherx.jabber.org/streams’’ from=’‘laboratorio’’ id=’‘d292de98’’>

SENT: user2

RECV:

SENT: user2Exodus038ffa4cca06f0319b81dcccb024d4d2b2037548

RECV:

SENT:

SENT:

SENT: disponible1

SENT:

SENT:

RECV:

Setting reconnect timer to: 14

SENT: <stream:stream to=“laboratorio” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0” >

RECV: <stream:stream xmlns=’‘jabber:client’’ xmlns:stream=’‘http://etherx.jabber.org/streams’’ from=’‘laboratorio’’ id=’‘3f279f70’’>

SENT: user2

RECV:

SENT: user2Exodus31f1df8c9527c33343c767979a700e433864d4a6

RECV:

SENT:

SENT:

SENT: disponible1

SENT:

SENT:

RECV:

Setting reconnect timer to: 15

Thanks, I expect this will help

Thanks. That helps quite a bit. What DB are you using? Can you run a SQL command against it:

select * from jiveRoster

I have some suspicions and this info will be helpful.

Thanks

-iain

Here is the info about the database, I use the embeddded one

DB Connection Info Home » DB Connection Info

Below is a brief summary of your database connection information.

Database and Version: HSQL Database Engine 1.7.1

JDBC Driver: HSQL Database Engine Driver, version 1.7.1

DB Connection URL: jdbc:hsqldb:…\database\messenger

DB User: SA

Transaction Support: Yes

Transaction Isolation Level TRANSACTION_READ_UNCOMMITTED

Supports multiple connections

open at once: Yes

In read-only mode: No

I don´t understand what you mean by "Can you run a SQL command against it:

select * from jiveRoster" I need full commands as I am not used to manage sql databases or Java.

Thanks

Ah. You’‘re using the embedded hsqldb. It’‘s going to take some more debugging on my side. I’‘ve filed a bug in our issue tracker and have scheduled it to debugged and fixed in our next release. No promises, but I’'m hoping to make a release early to mid october (e.g. in a few weeks).

Sorry there isn’‘t an immediate solution. I would suggest trying to make Messenger work with a standalone database like MySQL but it may be easier for you to just wait until the next release. I’'ll update this thread when I make more progress on this.

-iain

*Thanks, for your time and attention. Maybe I will try mySQL and will be waiting for next release by mid October.

Please keep me informed.*

Alfredo,

In the mean time you can use another XMPP client if possible. As far as I remember the problem was only with Exodus trying to handle presence subscriptions.

– Gato

**Thanks Gaston, but I could reproduce the problem with Exodus, JAJC and PSI. Looks like a server problem. **

Many thanks for your time and attention

Have you tried it with MySQL. It would be great to know if it’'s some hsqldb issue.

-iain

Well my knowledge on mySQL and all this JAVA stuff is poor. Maybe I will try, can you provide me with a short cookbook to install it?

**Well my knowledge on mySQL and all this JAVA

stuff is poor. Maybe I will try, can you provide me

with a short cookbook to install it?**

Go to url=http://www.mysql.com/downloads/index.htmlMySQL[/url] and download the latest production release. Installation packages are provided for all the major OSes and are all fairly straight forward. Also, to make things easier on yourself download a copy of url=http://www.mysql.com/downloads/mysqlcc.htmlMySQL Control Center[/url], which is a nice GUI front-end to MySQL that makes it real easy to manage MySQL.

**Thanks, I will test mySQL, may take some days. **

Thanks!

-iain