powered by Jive Software

Connection Server to Server with OpenFire 3.4.2

We recently upgraded a production installation to 3.4.2 and we lost the connection with another OpenFire that this running in another PC

warn.log

2007.12.20 15:56:00 Se detect?? un error en el flujo de datos. Session: org.jivesoftware.openfire.session.LocalIncomingServerSession@8d1749 status: 1 address: srvdb/2aedd286 id: 2aedd286

java.lang.RuntimeException: Delegated task threw Exception/Error

at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(Unknown Source)

at javax.net.ssl.SSLEngine.unwrap(Unknown Source)

at org.jivesoftware.openfire.net.TLSStreamHandler.doHandshake(TLSStreamHandler.jav a:211)

at org.jivesoftware.openfire.net.TLSStreamHandler.start(TLSStreamHandler.java:157)

at org.jivesoftware.openfire.net.SocketConnection.startTLS(SocketConnection.java:1 65)

at org.jivesoftware.openfire.net.SocketReadingMode.negotiateTLS(SocketReadingMode. java:72)

at org.jivesoftware.openfire.net.BlockingReadingMode.readStream(BlockingReadingMod e.java:126)

at org.jivesoftware.openfire.net.BlockingReadingMode.run(BlockingReadingMode.java: 62)

at org.jivesoftware.openfire.net.SocketReader.run(SocketReader.java:119)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException

at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateRequest.(Unknown Source)

at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(Unknown Source)

at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)

at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Unknown Source)

at org.jivesoftware.openfire.net.TLSStreamHandler.doTasks(TLSStreamHandler.java:31 4)

at org.jivesoftware.openfire.net.TLSStreamHandler.doHandshake(TLSStreamHandler.jav a:224)

… 7 more

debug.log

2007.12.20 15:56:00 Connect Socket[http://addr=/192.168.80.19,port=3851,localport=5269|http://addr=/192.168.80.19,p ort=3851,localport=5269]

2007.12.20 15:56:00 ClientTrustManager: CRL file not found: /tmp/crl.pem

2007.12.20 15:56:00 Logging off srvdb/2aedd286 on org.jivesoftware.openfire.net.SocketConnection@1a84b38 socket: Socket[http://addr=/192.168.80.19,port=3851,localport=5269|http://addr=/192.168.80.19,p ort=3851,localport=5269] session: org.jivesoftware.openfire.session.LocalIncomingServerSession@8d1749 status: 1 address: srvdb/2aedd286 id: 2aedd286

2007.12.20 15:56:51 Connect Socket[http://addr=/192.168.80.19,port=3856,localport=5269|http://addr=/192.168.80.19,p ort=3856,localport=5269]

2007.12.20 15:56:51 ServerDialback: RS - Received dialback key from host: informat to: srvdb

2007.12.20 15:57:21 ServerDialback: RS - Trying to connect to Authoritative Server: informat:5269(DNS lookup: informat:5269)

2007.12.20 15:57:21 ServerDialback: RS - Connection to AS: informat:5269 successful

2007.12.20 15:57:21 ServerDialback: RS - Asking AS to verify dialback key for idbf2648ca

2007.12.20 15:57:21 ServerDialback: RS - Key was VERIFIED by the Authoritative Server for: informat

2007.12.20 15:57:21 ServerDialback: RS - Closing connection to Authoritative Server: informat

2007.12.20 15:57:21 ServerDialback: RS - Sending key verification result to OS: informat

2007.12.20 15:57:21 Logging off informat on org.jivesoftware.openfire.net.SocketConnection@8518d4 socket: Socket[http://addr=/192.168.80.19,port=3856,localport=5269|http://addr=/192.168.80.19,p ort=3856,localport=5269] session: org.jivesoftware.openfire.session.LocalIncomingServerSession@43b5bb status: 1 address: informat id: bf2648ca

error.log

2007.12.20 15:58:11

> [org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSession(LocalOutgoingServerSession.java:338)
> ]

Error creating secured outgoing session to remote server: informat(DNS lookup: informat:5269)

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(Unknown Source)

at javax.net.ssl.SSLEngine.unwrap(Unknown Source)

at org.jivesoftware.openfire.net.TLSStreamHandler.doHandshake(TLSStreamHandler.jav a:211)

at org.jivesoftware.openfire.net.TLSStreamHandler.start(TLSStreamHandler.java:157)

at org.jivesoftware.openfire.net.SocketConnection.startTLS(SocketConnection.java:1 65)

at org.jivesoftware.openfire.session.LocalOutgoingServerSession.secureAndAuthentic ate(LocalOutgoingServerSession.java:369)

at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSess ion(LocalOutgoingServerSession.java:302)

at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain (LocalOutgoingServerSession.java:143)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:205)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:185)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Does somebody understand what it happens?

Hey Santiago,

Encrypted connections between servers is broken in Openfire 3.4.2. That issue was fixed for Openfire 3.4.3 to be released this week. The issue was filed as JM-1206. However, you should still be able to do unencrypted connections between servers.

Regards,

– Gato