TLS+SASL S2S connection problem

Hi,

Im writing a XMPP gateway and trying to open TLS+SALS s2s connection between jabber and my server.
The connection seems to be established properly between the servers:

MyServer- stream:stream xmlns="jabber:server" xmlns:stream="http://etherx.jabber.org/streams" from="myserver.com" to="jabberserver.com" version="1.0"
Jabber stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' id='1598077403' version='1.0'
Jabber stream:features starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/ c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='wwrSvLFOLzC92POh074kJuEqYxE='/ /stream:features
MyServer- starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /
Jabber proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/
MyServer- stream:stream xmlns="jabber:server" xmlns:stream="http://etherx.jabber.org/streams" from="myserver.com" to="jabberserver.com" version="1.0"
Jabber stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' id='3569480373' version='1.0'
Jabber stream:features c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='wwrSvLFOLzC92POh074kJuEqYxE='/ /stream:features

But, when Im adding buddy to pidgin client connected to jabber, jabber starting SASL+dialback again and sends an XML packet that causing exception in my SAX parser:

Jabber - stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='jabberserver.com' to='myserver.com' version='1.0'
MyServer- : stream:stream xmlns="jabber:server" xmlns:stream="http://etherx.jabber.org/streams" from="itai3.haifa.ibm.com" id="123123123" version="1.0" stream:features starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" required/ /starttls /stream:features
Jabber - starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/
MyServer- : l proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" /
Jabber - stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='jabberserver.com' to='myserver.com' version='1.0'
MyServer- : stream:stream xmlns="jabber:server" xmlns:stream="http://etherx.jabber.org/streams" from="myHostname" id="123123123" version="1.0" stream:features mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism EXTERNAL /mechanism /mechanisms /stream:features
Jabber - auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='EXTERNAL' aXRhaTEuaGFpZmEuaWJtLmNvbQ== /auth
MyServer- : success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /
Jabber - ?xml version='1.0'? stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' from='jabberserver.com' to='myserver.com' version='1.0'

And get this parsing exception in my server:
fatalError ENTRY The processing instruction target matching "[xX][mM][lL]" is not allowed.

[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at com.ibm.rtc.gateway.xmpp.xml.ParsingThread.run(ParsingThread.java:64)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.util.concurrent.FutureTask.run(FutureTask.java:149)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[11/2/11 14:53:56:662 GMT+02:00] 0000003f SystemErr R at java.lang.Thread.run(Thread.java:735)

Can someone advise? Is it known issue? Is ?xml version='1.0'? tag sent by Jabber is valid in this stage? Is it symptom for installation/configuration/certificates issue?

Thanks in advance,
Itai

Syndicate content