Skip to content

Connection issues since 18f0f9a50504 #169

@sco0ter

Description

@sco0ter

Original report by Anonymous.


Hi there!

since the late refactorings, starting on 18f0f9a, I've been having issues establishing a connection. The below is from the current latest checkout at a5dba85.

Here is the code to reproduce it:

object TinyMain extends App {
  val jid = Jid.of("dev@domain.tld")
  val xmppClient = {
    val sessionConfig = XmppSessionConfiguration
      .builder()
      .debugger(classOf[VisualDebugger])
      .build()
    XmppClient.create(jid.getDomain, sessionConfig)
  }
  xmppClient.connect()
  xmppClient.login(jid.getLocal.toString, "pass", "clientname")
}

Here is the error log:
Exception in thread "main" java.lang.ExceptionInInitializerError
at app.TinyMain.main(TinyMain.scala)
Caused by: rocks.xmpp.core.XmppException: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message

The visual debugger shows the client stalled in "initial" status with the following logs:

FINE  Trying to connect to domain.tld:5223
FINE  Connection has been secured via TLS.
FINE  Negotiating stream, waiting until SASL is ready to be negotiated.

The server does answer on this port with the following command:

openssl s_client -connect domain.tld:5223 -alpn xmpp-client -xmpphost domain.tld

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions