Problems connecting to ejabberd 2.1.10

Hi there,

I'm having trouble getting YouTrack connected to our company jabber server (ejabberd 2.1.10, Ubuntu Precise).

The details I am using are:

Jabber server: jabber.company.com
Jabber server port: 5222
Jabber username: issue.tracker@company.com

Users authenticate on ejabberd using our LDAP server and rosters are provided by LDAP as well.

I've connected successfully with the above credentials using another jabber client (Adium).

The error from YouTrack on the console is:


java.net.SocketException: Connection closed by remote host
java.net.SocketException: Connection closed by remote host
 at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1359)
 at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:62)
 at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
 at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290)
 at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294)
 at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140)
 at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
 at java.io.BufferedWriter.flush(BufferedWriter.java:253)
 at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:208)
 at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
 at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen .../ejabberd/\' ver=\'P9ingitjhP5B3bcJzZv5yqOYyCQ=\'/></stream:features>... @1:435
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen .../ejabberd/\' ver=\'P9ingitjhP5B3bcJzZv5yqOYyCQ=\'/></stream:features>... @1:435
 at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)
 at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
 at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
 at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
 at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
 at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
 at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)


Any help or ideas would be appreciated.

Thanks.
5 comments
Comment actions Permalink
Could you please provide us your ejabberd logs?
0
Comment actions Permalink
My ejabberd logs are pretty much empty. loglevel is set to 3 ("Error") so presumably that doesn't log client errors.

I'll bump up the ejabberd loglevel and see if I can extract any more info.
0
Comment actions Permalink
I managed to resolve this. It was a configuration issue.

Here's an example of the configuration that I was using (incorrect and not working):

Jabber server: jabber.domain.com
Jabber server port: 5222
Jabber service name:
Jabber username: user@domain.com
Jabber password: <password>

Here is the configuration that worked:

Jabber server: jabber.domain.com
Jabber server port: 5222
Jabber service name: domain.com
Jabber username: user
Jabber password: <password>

The user name and service name need to be separated. I didn't initially see the "Jabber service name" option, which only becomes visible after clicking "Advanced settings" (grey link).
0
Comment actions Permalink
Nice to hear that!
0
Comment actions Permalink
Thank you Daniel. This solved my problem when connecting YouTrack to a Webex server.
0

Please sign in to leave a comment.