powered by Jive Software

HELP! A big problem about buddy search

I setup wildfire on two PCs

They can recognize each other by hopeshared.tempzone & wch.tempzone

By using Spark, I can add a@hopeshared.tempzone to the buddylist of b@wch.tempzone

I can see that S2S Session is “both”

I think I’'ve set the s2s in a right way. And I disabled TLS as some threads in the forum say should do so.

when I search buddy “a”, I can use the local search service well. But after click “add Service” and input “service.wch.tempzone”, there always an error

error

2006.04.06 18:46:02 [org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:159)

] Connection closed before session established

Socket[addr=/9.186.56.101,port=3419,localport=5269]

warn

2006.04.06 18:50:01 Error verifying key

java.net.UnknownHostException: search.hopeshared.tempzone

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at org.jivesoftware.wildfire.server.ServerDialback.verifyKey(ServerDialback.java:5 14)

at org.jivesoftware.wildfire.server.ServerDialback.validateRemoteDomain(ServerDial back.java:451)

at org.jivesoftware.wildfire.server.ServerDialback.createIncomingSession(ServerDia lback.java:333)

at org.jivesoftware.wildfire.server.IncomingServerSession.createSession(IncomingSe rverSession.java:98)

at org.jivesoftware.wildfire.net.ServerSocketReader.createSession(ServerSocketRead er.java:208)

at org.jivesoftware.wildfire.net.SocketReader.createSession(SocketReader.java:606)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:110)

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

and I can see the sessions are “Outging” at that time

Is this the probelm of DNS?

can somebody help me?

And, If I change the host file in …system32/drivers/etc(in windows xp), and set ip address to the domain name instead of using a DNS server, what shall I do to recognize search.remoteserver?

Ok, What I am taking from this is that you have two machines each with wildfire installed that work internally on the machine.

You are having issues resolving the FQDN on each box. Are there entries in DNS for these machines? Also, I believe I read that the service has to be DNS resolvable as well. example:

search.server1.mydomain.com 192.168.1.1

server1.mydomain.com 192.168.1.1

search.server2.mydomain.com 192.168.1.2

server2.mydomain.com 192.168.1.2

So, you could add entries in the hosts file, and point the long and short names to the ip address.

Hope this helps you.

Jeff

Thanks to Jeff

I gave the error report on the case of using a DNS

And I also want to know how to solve the problem without using DNS

I will try your method and give a result

Thanks again

Bad news

NO.1

I add

9.186.56.175 search.testaa.com

9.186.56.175 testaa.com

to the hosts

but the same problem, “Unable to connect search service”

error

2006.04.07 10:37:44 [org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:159)

] Connection closed before session established

Socket[addr=/9.186.56.175,port=1058,localport=5269]

warn

2006.04.07 10:18:21 Closing session due to incorrect hostname in stream header. Connection: org.jivesoftware.wildfire.net.SocketConnection@3680c1 socket: Socket[addr=/9.186.56.175,port=1042,localport=5269] session: null

NO.2

I found some worn logs(This is the warn log of yesterday):

2006.04.06 18:51:42 Error returning error to sender. Original packet:

java.lang.IllegalArgumentException

at org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:60)

at org.jivesoftware.wildfire.component.InternalComponentManager.sendPacket(Interna lComponentManager.java:132)

at org.jivesoftware.wildfire.plugin.SearchPlugin.processPacket(SearchPlugin.java:2 10)

at org.jivesoftware.wildfire.component.InternalComponentManager$RoutableComponent. process(InternalComponentManager.java:349)

at org.jivesoftware.wildfire.server.OutgoingSessionPromise.returnErrorToSender(Out goingSessionPromise.java:166)

at org.jivesoftware.wildfire.server.OutgoingSessionPromise.access$400(OutgoingSess ionPromise.java:37)

at org.jivesoftware.wildfire.server.OutgoingSessionPromise$1$1.run(OutgoingSession Promise.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)

what is this mean?

NO.3

are there any client of wildfire can do buddy search well between 2 servers?

or are there any jabber server provide search service that I can use?

My study is to validate how to do buddy search between 2 jabber servers

Thanks in advance

I’'ve solve the problem

set

9.186.56.175 testaa.com

9.186.56.175 search.testaa.com

in hosts, spark cannot add the search service, but psi can!!