powered by Jive Software

Sending messages from a component to another domain

I’‘ve written a component which sends messsages to users. It all works fine if the user is in the server’‘s domain but if it tries to send a message to a user in some other domain, it fails. The message is received by the remote server but it gets an error when attempting to respond. Is there soemething wrong with my setup, is this just not possible or do I need to do extra things to get it to work? The relevant entries from the remote server’'s log is below; it appears to be attempting to connect to the component as a server in its own right.I get the same behaviour if I try to send a message to the broadcast component on a remote server.

2007.07.20 14:09:55 org.jivesoftware.openfire.session.OutgoingServerSession.createOutgoingSession(Ou tgoingServerSession.java:258) Error trying to connect to remote server: component.jabber.domain.com(DNS lookup: component.jabber.domain.com:5269)

java.net.UnknownHostException: component.jabber.domain.com

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:516)

at org.jivesoftware.openfire.session.OutgoingServerSession.createOutgoingSession(O utgoingServerSession.java:253)

at org.jivesoftware.openfire.session.OutgoingServerSession.authenticateDomain(Outg oingServerSession.java:142)

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

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

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

2007.07.20 14:09:56 org.jivesoftware.openfire.net.SocketReadingMode.negotiateTLS(SocketReadingMode.j ava:75) Error while negotiating TLS: org.jivesoftware.openfire.net.SocketConnection@1ddcfef socket: Socket[addr=/137.205.192.70,port=49161,localport=5269] session: org.jivesoftware.openfire.session.IncomingServerSession@a3cf94 status: 1 address: jabber.domain.com/6c4f50e1 id: 6c4f50e1

javax.net.ssl.SSLException: Unsupported record version Unknown-47.115

at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(EngineInpu tRecord.java:97)

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:759 )

at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:674)

at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:566)

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 64)

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:120)

at java.lang.Thread.run(Thread.java:595)