I implemet a simple chat applet using smack 2.2.1 within a tomcat 5.0 environment.
The tomcat logs shows me folloging conflict:
Could someone give me an hint how to solve the conflict?
Message was edited by: evalentini
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.
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);
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).