Smack / Openfire under Linux

we have a web client application developped using smack library. the openfire server is installed on Linux machine.

when we try to connect to openfire using the web client application it give us this error messag below. the same web application work fine with openfire on windows :

Stack trace :


org.xmlpull.v1.XmlPullParserException: processing instruction can not have PITarget with reserveld xml name (position: END_TAG seen …</stream:features><?xml … @1:616)

at org.xmlpull.mxp1.MXParser.parsePI(MXParser.java:2453)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1245)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:382)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)

stream:error (conflict)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)

thx

Hello,

I’m not sure about the first part of the stack trace, but the “stream:error (conflict)” error is probably because you’re try to log in with a conflicting resource name. In this case the server might be kicking the first resource or not allowing the new one to log in. It depends on how you set up the “Resource Policy” in your server.

William.