"Error sending packet to remote server" on a single server

Hello.

I’‘ve been having trouble getting my clients to see each other. Every cleint (900 of them) can search and add contacts but no one is online or active. I’'ve tried Exodus, Spark and Trillian and every one has the same issue with no activity. On the debug log of the server, I see this …

005.11.30 15:18:54 Error sending packet to remote server:

java.lang.Exception: Failed to create connection to remote server

at org.jivesoftware.messenger.server.OutgoingSessionPromise.createSessionAndSendPa cket(OutgoingSessionPromise.java:136)

at org.jivesoftware.messenger.server.OutgoingSessionPromise.access$300(OutgoingSes sionPromise.java:40)

at org.jivesoftware.messenger.server.OutgoingSessionPromise$1$1.run(OutgoingSessio nPromise.java:94)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

It’‘s a single server but it looks like it’‘s trying to connect to something or waiting for a connection, I’‘m no guru so I’'m not sure. I have security and S2S disabled. Host name is lower case and resolving just fine by my XP hosts (server is linux).

Any other suggestions to get this working?

Thank you!

PM

the problem is you are sending the packet to francovj@chlnxim01 when your server is imadmin@chlnxim01.internal.jenner.com, since these two are different servers Messenger is attempting to make a remote connection.

Alex

Alex, you are right on. After all the changes I had been making I forgot to get both aligned. But although I stopped seeing the remote server error, I’‘m still having the same underlying problem. My clients are just having a heck of a time communicating. I can chat and messenge but no client can add to a roster, when they create a group it’‘s not visibile until you add a client but you can’‘t add clients to it. So upon a new logon to the client, all groups are gone. It’'s very strange.

Thanks for your help alex, sometimes all we need is another set of eyes to keep us honest. I appreciate it. If you have any ideas on my client issue (which I thought was related to this error message) I’'d be open to any and all suggestions.

Thanks!!!

PM

What client are you using?

Alex

hehe, Exodus, Spark, Trillian Pro… I’'ve tried them all and the symptons are all the same.

PM.

Can you pop open the debugger in Spark or Exodus and drop some packets up here. I would like to see what is going on behind the scenes.

Alex

Hey Alex, thanks for your help.

Here is a debug log from my Exodus client (mcdoug) to another (franco). We chatted, then I tried to add the client to a group, then I created a group and added the client to it. I can see no groups and the client’'s lightbulb is dark.

new window chat refcount: 1

SENT:

I’'ll post the debug and error log from the server in a minute.

Thanks again for your help, Alex!

PM.

The error logs:

2005.12.01 10:29:39 org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.java :118) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.roster.RosterItem.setGroups(RosterItem.java:335)

at org.jivesoftware.messenger.roster.RosterItem.setAsCopyOf(RosterItem.java:452)

at org.jivesoftware.messenger.handler.IQRosterHandler.manageRoster(IQRosterHandler .java:194)

at org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.jav a:103)

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

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

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

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

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:319)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:51)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:249)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115)

at java.lang.Thread.run(Unknown Source)

2005.12.01 10:35:51 org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.java :118) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.roster.RosterItem.setGroups(RosterItem.java:335)

at org.jivesoftware.messenger.roster.RosterItem.setAsCopyOf(RosterItem.java:452)

at org.jivesoftware.messenger.handler.IQRosterHandler.manageRoster(IQRosterHandler .java:194)

at org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.jav a:103)

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

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

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

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

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:319)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:51)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:249)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115)

at java.lang.Thread.run(Unknown Source)

2005.12.01 10:36:07 org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.java :118) Internal server error

java.lang.NullPointerException

at org.jivesoftware.messenger.roster.RosterItem.setGroups(RosterItem.java:335)

at org.jivesoftware.messenger.roster.RosterItem.setAsCopyOf(RosterItem.java:452)

at org.jivesoftware.messenger.handler.IQRosterHandler.manageRoster(IQRosterHandler .java:194)

at org.jivesoftware.messenger.handler.IQRosterHandler.handleIQ(IQRosterHandler.jav a:103)

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

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

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

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

at org.jivesoftware.messenger.net.SocketReader.processIQ(SocketReader.java:319)

at org.jivesoftware.messenger.net.ClientSocketReader.processIQ(ClientSocketReader. java:51)

at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:249)

at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115)

at java.lang.Thread.run(Unknown Source)

Debug log to follow…

The Debug Logs:

2005.12.01 10:29:25 Starting to populate groups with users.

2005.12.01 10:29:25 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:29:25 Created hashtable with context values, attempting to create context…

2005.12.01 10:29:25 … context created successfully, returning.

2005.12.01 10:29:38 Adding group “ExodusIM” with 865 members.

2005.12.01 10:29:39 Adding group “IMgroup” with 41 members.

2005.12.01 10:29:39 Finished populating group(s) with users.

2005.12.01 10:29:39 Trying to find all groups in the system.

2005.12.01 10:29:39 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:29:39 Created hashtable with context values, attempting to create context…

2005.12.01 10:29:39 … context created successfully, returning.

2005.12.01 10:29:39 Starting LDAP search…

2005.12.01 10:29:39 Using groupSearchFilter: (&(member=*)(cn=TestRoster))

2005.12.01 10:29:39 … search finished

2005.12.01 10:29:39 Starting to populate groups with users.

2005.12.01 10:29:39 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:29:39 Created hashtable with context values, attempting to create context…

2005.12.01 10:29:39 … context created successfully, returning.

2005.12.01 10:29:39 Finished populating group(s) with users.

2005.12.01 10:32:56 Trying to find a user’'s DN based on their username. sAMAccountName: imadmin, Base DN: OU=All Users,DC=Internal,DC=company,DC=com…

2005.12.01 10:32:56 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:32:56 Created hashtable with context values, attempting to create context…

2005.12.01 10:32:56 … context created successfully, returning.

2005.12.01 10:32:56 Starting LDAP search…

2005.12.01 10:32:56 … search finished

2005.12.01 10:32:56 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=imadmin,OU=Chicago…

2005.12.01 10:32:56 Created context values, attempting to create context…

2005.12.01 10:32:56 … context created successfully, returning.

2005.12.01 10:33:34 Connect Socket[addr=/10.1.137.61,port=3245,localport=5222]

2005.12.01 10:33:34 Trying to find a user’'s DN based on their username. sAMAccountName: franco, Base DN: OU=All Users,DC=Internal,DC=company,DC=com…

2005.12.01 10:33:34 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:33:34 Created hashtable with context values, attempting to create context…

2005.12.01 10:33:34 … context created successfully, returning.

2005.12.01 10:33:34 Starting LDAP search…

2005.12.01 10:33:34 … search finished

2005.12.01 10:33:34 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=Franco, Vincent J,OU=DataCenter,OU=Chicago…

2005.12.01 10:33:34 Created context values, attempting to create context…

2005.12.01 10:33:34 … context created successfully, returning.

2005.12.01 10:33:34 Logging off franco@chlnxim01/Exodus on org.jivesoftware.messenger.net.SocketConnection@fde050 socket: Socket[addr=/10.1.137.61,port=2383,localport=5222] session: org.jivesoftware.messenger.ClientSession@d200d8 status: 3 address: franco@chlnxim01/Exodus id: cba5b585 presence:

2005.12.01 10:34:31 Connect Socket[addr=/10.1.137.61,port=3261,localport=5222]

2005.12.01 10:34:32 Trying to find a user’'s DN based on their username. sAMAccountName: franco, Base DN: OU=All Users,DC=Internal,DC=company,DC=com…

2005.12.01 10:34:32 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:34:32 Created hashtable with context values, attempting to create context…

2005.12.01 10:34:32 … context created successfully, returning.

2005.12.01 10:34:32 Starting LDAP search…

2005.12.01 10:34:32 … search finished

2005.12.01 10:34:32 In LdapManager.checkAuthentication(userDN, password), userDN is: CN=Franco, Vincent J,OU=DataCenter,OU=Chicago…

2005.12.01 10:34:32 Created context values, attempting to create context…

2005.12.01 10:34:32 … context created successfully, returning.

2005.12.01 10:35:36 Trying to find all groups in the system.

2005.12.01 10:35:36 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:36 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:36 … context created successfully, returning.

2005.12.01 10:35:36 Starting LDAP search…

2005.12.01 10:35:36 Using groupSearchFilter: (member=*)

2005.12.01 10:35:38 … search finished

2005.12.01 10:35:38 Starting to populate groups with users.

2005.12.01 10:35:38 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:38 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:38 … context created successfully, returning.

2005.12.01 10:35:50 Adding group “ExodusIM” with 865 members.

2005.12.01 10:35:51 Adding group “IMgroup” with 41 members.

2005.12.01 10:35:51 Finished populating group(s) with users.

2005.12.01 10:35:51 Trying to find all groups in the system.

2005.12.01 10:35:51 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:51 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:51 … context created successfully, returning.

2005.12.01 10:35:51 Starting LDAP search…

2005.12.01 10:35:51 Using groupSearchFilter: (&(member=*)(cn=JibberJabber))

2005.12.01 10:35:51 … search finished

2005.12.01 10:35:51 Starting to populate groups with users.

2005.12.01 10:35:51 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:51 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:51 … context created successfully, returning.

2005.12.01 10:35:51 Finished populating group(s) with users.

2005.12.01 10:35:51 Trying to find all groups in the system.

2005.12.01 10:35:51 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:51 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:51 … context created successfully, returning.

2005.12.01 10:35:51 Starting LDAP search…

2005.12.01 10:35:51 Using groupSearchFilter: (member=*)

2005.12.01 10:35:53 … search finished

2005.12.01 10:35:53 Starting to populate groups with users.

2005.12.01 10:35:53 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:35:53 Created hashtable with context values, attempting to create context…

2005.12.01 10:35:53 … context created successfully, returning.

2005.12.01 10:36:06 Adding group “ExodusIM” with 865 members.

2005.12.01 10:36:07 Adding group “IMgroup” with 41 members.

2005.12.01 10:36:07 Finished populating group(s) with users.

2005.12.01 10:36:07 Trying to find all groups in the system.

2005.12.01 10:36:07 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:36:07 Created hashtable with context values, attempting to create context…

2005.12.01 10:36:07 … context created successfully, returning.

2005.12.01 10:36:07 Starting LDAP search…

2005.12.01 10:36:07 Using groupSearchFilter: (&(member=*)(cn=TestRoster))

2005.12.01 10:36:07 … search finished

2005.12.01 10:36:07 Starting to populate groups with users.

2005.12.01 10:36:07 Creating a DirContext in LdapManager.getContext()…

2005.12.01 10:36:07 Created hashtable with context values, attempting to create context…

2005.12.01 10:36:07 … context created successfully, returning.

2005.12.01 10:36:07 Finished populating group(s) with users.

Thank you!!!

PM.