powered by Jive Software

Server to Server issue from Openfire 4.4.0 to 4.3.2

Help i got error like this when adding user with user@domain.com format

jabber: Recv (ssl)(225):

I’m using pidgin im to debug, i don’t know. i add other server domain in my dns so my openfire can resolve the hostname rather than adding it to /etc/hosts, i also added the SRV record to my DNS server.

Please Help!!!

Greetings, Please provide the results of the s2s testing page found on the Admin Console. Sessions -> Tools -> S2S Connection Test.

Sending server to server ping request to otherdomain.com
Session Server9: Message received : HeapBuffer[pos=0 lim=133 cap=256: 17 03 03 00 80 49 37 20 49 3D 4D DC 90 22 0A 2C…]
Session Server9 Processing the received message
Session Server9: Processing the SSL Data
Adding event MESSAGE_RECEIVED to session 9
Queue : [MESSAGE_RECEIVED, ]

Firing a MESSAGE_RECEIVED event for session 9
Processing a MESSAGE_RECEIVED for session 9
Error in interceptor:
while intercepting:



java.lang.NullPointerException: null
at org.jivesoftware.util.S2STestService$S2SInterceptor.interceptPacket(S2STestService.java:235) ~[xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:268) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:230) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:92) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:360) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:95) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:314) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:201) [xmppserver-4.4.0.jar:4.4.0]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.4.0.jar:4.4.0]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.jivesoftware.openfire.plugin.RawPrintFilter.messageReceived(RawPrintFilter.java:107) [xmldebugger-1.7.2.jar!/:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=162 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 69 64 3D 22 6B 7A…]
Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=229 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=161 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 69 64 3D 22 63 44…]
Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=229 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=180 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 69 64 3D 22 77 42…]
Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=230 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=228 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=230 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=229 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Send the stream header and wait for response…
Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=237 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=229 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Got a response (stream ID: 82rdfqhegm, version: 1.0). Check if the remote server is XMPP 1.0 compliant…
Closing session due to incorrect hostname in stream header. Host: hostname.mydomain.local. Connection: org.jivesoftware.openfire.net.SocketConnection@79f8101d socket: Socket[addr=/192.168.92.33,port=50278,localport=5269] session: null
Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=178 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 69 64 3D 22 35 66…]
The remote server is XMPP 1.0 compliant (or at least reports to be).
Processing stream features of the remote domain…
Connection closed before session establishedSocket[addr=/192.168.92.33,port=50278,localport=5269]
Session Server82: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=229 cap=4096: 3C 70 72 65 73 65 6E 63 65 20 74 6F 3D 22 62 61…]
Error sending packet to domain ‘hostname.mydomain.local’ (outbound queue full):

Check if both us as well as the remote server have enabled STARTTLS and/or dialback …
Adding event MESSAGE_SENT to session 82
Queue : [MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, , MESSAGE_SENT, ]

Firing a MESSAGE_RECEIVED event for session 71
Processing a MESSAGE_RECEIVED for session 71
Session Server67: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=208 cap=4096: 3C 6D 65 73 73 61 67 65 20 69 64 3D 22 6B 7A 35…]
Event MESSAGE_RECEIVED has been fired for session 71
Adding event MESSAGE_SENT to session 67
Queue : [MESSAGE_SENT, ]

Firing a MESSAGE_SENT event for session 67
Event MESSAGE_SENT has been fired for session 67
The unloaded file for plugin ‘loadstats’ is silently ignored, as it has failed to load repeatedly.
The unloaded file for plugin ‘loadstats’ is silently ignored, as it has failed to load repeatedly.
Failed to establish server to server session.

sorry i have to cut the error message, because it’s too long. ooh i forgot to mention , i using postgresql as openfire database

any update?

fixed for s2s to different domain, the trick is name xmpp domain must be same as server fqdn.

example : if your server fqdn is your.company.com then you need to set xmpp domain to your.company.com as well.

dont’t forget to insert srv record to your dns server

also confirmed, can be connected with different version of openfire. already tested