Login : No response from the server

Hi,

I have a problem using smack 3.1.0.

The XMPPConnection login method send an exception : “no response from server”.

But the server respond well:

Smack :

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

<stream:stream to=“plop” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>
Y2xhdWRlAGNsYXVkZQAxMjM0
<stream:stream to=“plop” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>
Smack

</stream:stream>

Server :

<?xml version='1.0'?>

stream:featuresPLAIN</mechanis ms><register xmlns='http://jabber.org/features/iq-register’/></stream:features>

<?xml version='1.0'?>

stream:featuresPLAIN</mechanis ms><register xmlns='http://jabber.org/features/iq-register’/></stream:features>

<?xml version='1.0'?>

stream:features<register xmlns='http://jabber.org/features/iq-register’/></stream:features>
claude@plop/Smack</i q>

I set PacketReplyTimeout to 10 seconds (!), but it is not better. And I can see on server side, that it respond quickly enough:

=INFO REPORT==== 2010-10-14 10:56:30 ===
D(<0.414.0>:ejabberd_receiver:320) : Received XML on stream = “<iq id=“58A4L-0” type=“set”><bind xmlns=“urn:ietf:params:xml:ns:xmpp-bind”>Smack</i q>”

=INFO REPORT==== 2010-10-14 10:56:30 ===
D(<0.415.0>:ejabberd_c2s:1456) : Send XML on stream = <<“claude@plop/Smack</i q>”>>

=INFO REPORT==== 2010-10-14 10:56:50 ===
D(<0.414.0>:ejabberd_receiver:320) : Received XML on stream = “<presence id=“58A4L-1” type=“unavailable”>”

I don’t know what’s wrong. have you any idea?

Thanks in advance

There can be 2 problems

1.Some Firewall issue can be there.(Seems to be this problem only)

2.Try increasing the wait time. by putting a sleep before login

Thanks for your response.

I’ve tried to increasing the wait time with a sleep of 10s and with 15s of PacketReplyTimeout.

Both client and server are on the same machine. This is a Windows XP without firewall.

The server is ejabberd. The client run in a servlet in JBoss.

I did’nt reply earlier because I don’t have the problem on my “production” server running under Linux.

If I put the jabber server on linux and the client on Windows, the problem is still there.

Of course all my configurations are in LAN without firewall.

I don’t know Windows very much, but I know sometimes a service/configuration/something has to be enabled/disabled to make some things work.

Any idea someone?

Thanks