readthefuckingmanual.net

[SOLVED] at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:306)

Error added: 2010-10-31T13:30:26Z

1 people waiting for the answer...

1 answers found.

Answer 1548 (100.0% helpful)

I got this when I had two Tomcat instances both trying to log in to the Jabber server as the same account - with the same resource.
I got [Replaced by new connection] every few seconds.

I designated one node as main, and one as backup, did -Denv=main on one and -Denv=backup on the other, and did this:

String resource = service.getEnvironment();                connection.login("username", "password", resource);

where getEnvironment() pulls out that system property.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: