Stream:error conflict

I implemet a simple chat applet using smack 2.2.1 within a tomcat 5.0 environment.

The tomcat logs shows me folloging conflict:

stream:error (conflict)

at org.jivesoftware.smack.PacketReader.parsePackets(

at org.jivesoftware.smack.PacketReader.access$000(

at org.jivesoftware.smack.PacketReader$

Could someone give me an hint how to solve the conflict?



Message was edited by: evalentini

Hey Egon,

The conflict stream error means that the same user tried to connect to the server many times using the same resource. Users are allowed to connect to the server many times at the same time but each connection has to have its own unique resource. Bu default, Wildfire will kick the old connection if a new one tries to use the same resource (for the same user). And the way to indicate that you have been kicked due to a resource conflict is by sending a conflict stream error.

Hope that helps.


– Gato


What do you mean with resource?

It seams not to be enough to close every time before

opening a new connection the old one


if (connection != null)



connection = null;


connection = new XMPPConnection(server, port);

connection.login(user.getUid(), ssoTokenId);

System returns the same stream:error (conflict)

With Jabber you can connect several times using the same ID.

For this, you use different resources, like “Home”, “PDA”, “My laptop” …

You can specify which resource you use when logging in (see connect method).