Jicofo Error during startup - Openfire

Hello,

I’m running Jicofo from source. I’m using Openfire as XMPP server.

My Openfire and Jicofo are on the same host. Here is the command I run to start Jicofo:

java org.jitsi.jicofo.Main
–host=server03.domain.com
–domain=server03.domain.com
–secret=focus
-user_domain=server03.domain.com
–user_name=focus
–user_password=focus
–port=5222

I can see focus user is able to connect to Openfire but I’m seeing errors in the logs:

Blockquote
Jicofo 2020-07-17 07:36:51.520 INFO: [17] org.jitsi.impl.protocol.xmpp.XmppProtocolProvider.log() XMPP provider Jabber:focus@server03.domain.com/focus604653359446420@server03.domain.com connected (JID: focus@server03.domain.com/focus604653359446420)
Jicofo 2020-07-17 07:36:55.935 SEVERE: [31] org.jitsi.meet.ComponentMain.log() invalid-namespace, host:server03.domain.com, port:5222
org.xmpp.component.ComponentException: invalid-namespace
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:243)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:242)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:222)
at org.jitsi.meet.ComponentMain.lambda$getConnectCallable$0(ComponentMain.java:285)
at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2020-07-17 07:36:56.063 SEVERE: [19] org.jivesoftware.smack.parsing.ExceptionLoggingCallback.handleUnparsableStanza() Smack message parsing exception. Content: ‘’
java.lang.IllegalArgumentException: name must not be null
at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:71)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:77)
at org.jitsi.jicofo.discovery.Version.(Version.java:40)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:29)
at org.jivesoftware.smack.provider.Provider.parse(Provider.java:43)
at org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:633)
at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.java:153)
at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMPPConnection.java:1083)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500(XMPPTCPConnection.java:151)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1044)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:748)

Blockquote

In Openfire logs, I see following error:

Blockquote

2020.07.17 07:37:10 WARN [socket_c2s-thread-4]: org.jivesoftware.openfire.net.StanzaHandler - Closing session due to invalid namespace in stream header. Prefix: jabber:component:accept. Connection: org.jivesoftware.openfire.nio.NIOConnection@520ae380 MINA Session: (0x00000481: nio socket, server, /10.4.30.68:47564 => /10.4.30.68:5222)

Blockquote

Can anyone please advise how to troubleshoot the problem? Thanks…

Have you created component in Openfire named focus.server03.domain.com with the correct secret you pass to jicofo?

1 Like

Thanks @damencho
In my Openfire External Component Settings, I’ve allowed AnyOne to connect. However, I think there were 2 problems:

  1. Shared Secret was not set. Updated shared secret (screenshot below)
  2. Port number was not correct. I changed the port to 5275 ( External Component)

Now, I don’t get the error related to invalid namespace. However, I still get the following error:

Jul 17, 2020 8:45:16 AM org.xmpp.component.AbstractComponent processIQ

WARNING: (serving component ‘Jitsi Meet Focus’) Unexpected exception while processing IQ stanza:
java.lang.IllegalArgumentException: name must not be null
at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:71)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:77)
at org.jitsi.jicofo.discovery.Version.(Version.java:40)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:1)
at org.jivesoftware.smackx.iqversion.provider.VersionProvider.parse(VersionProvider.java:30)
at org.jivesoftware.smack.provider.Provider.parse(Provider.java:43)
at org.jitsi.xmpp.util.IQUtils.convert(IQUtils.java:162)
at org.jitsi.jicofo.xmpp.FocusComponent.handleIQGetImpl(FocusComponent.java:210)
at org.jitsi.xmpp.component.ComponentBase.handleIQGet(ComponentBase.java:317)
at org.xmpp.component.AbstractComponent.processIQRequest(AbstractComponent.java:511)
at org.xmpp.component.AbstractComponent.processIQ(AbstractComponent.java:289)
at org.xmpp.component.AbstractComponent.processQueuedPacket(AbstractComponent.java:239)
at org.xmpp.component.AbstractComponent.access$100(AbstractComponent.java:81)
at org.xmpp.component.AbstractComponent$PacketProcessor.run(AbstractComponent.java:1051)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Jul 17, 2020 8:45:22 AM net.java.sip.communicator.util.Logger info
INFO: XmppProtocolProvider(focus@server03.domain.com/focus684402120825100 (Jabber)): RegistrationStateChangeEvent[ oldState=Unregistered; newState=RegistrationState=Registered; reasonCode=-1; reason=null]
Jul 17, 2020 8:45:23 AM org.jivesoftware.smack.parsing.ExceptionLoggingCallback handleUnparsableStanza
SEVERE: Smack message parsing exception. Content: ‘’
java.lang.IllegalArgumentException: name must not be null
at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java:462)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:71)
at org.jivesoftware.smackx.iqversion.packet.Version.(Version.java:77)
at org.jitsi.jicofo.discovery.Version.(Version.java:40)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:38)
at org.jitsi.jicofo.discovery.VersionIqProvider.parse(VersionIqProvider.java:1)
at org.jivesoftware.smackx.iqversion.provider.VersionProvider.parse(VersionProvider.java:30)
at org.jivesoftware.smack.provider.Provider.parse(Provider.java:43)
at org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:633)
at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.java:153)
at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMPPConnection.java:1083)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$500(XMPPTCPConnection.java:151)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1044)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:748)

Jul 17, 2020 8:45:23 AM org.jitsi.utils.logging.LoggerImpl log
INFO: New component discovered: focus.server03.domain.com, null
Jul 17, 2020 8:45:23 AM org.jitsi.utils.logging.LoggerImpl log
INFO: New component discovered: pubsub.server03.domain.com, null
Jul 17, 2020 8:45:23 AM org.jitsi.utils.logging.LoggerImpl log
INFO: New component discovered: search.server03.domain.com, null
Jul 17, 2020 8:45:24 AM org.jitsi.utils.logging.LoggerImpl log
INFO: New component discovered: conference.server03.domain.com, null
Jul 17, 2020 8:45:24 AM org.jitsi.utils.logging.LoggerImpl log
INFO: MUC component discovered: conference.server03.domain.com
Jul 17, 2020 8:45:24 AM org.jitsi.utils.logging.LoggerImpl log
INFO: Services re-discovery interval: 30000
Jul 17, 2020 8:45:24 AM org.jitsi.utils.logging.LoggerImpl log
INFO: XMPP provider reg state: RegistrationState=Registered
Jul 17, 2020 8:45:24 AM net.java.sip.communicator.util.Logger info
INFO: XMPP provider Jabber:focus@server03.domain.com/focus684402120825100@server03.domain.com connected (JID: focus@server03.domain.com/focus684402120825100)

Please advise.

Yeah something about parsing version iq got confused …


That is strange …
1 Like

Is this a known issue? Any workaround to get this problem or can this be ignored?

Thanks @damencho for your inputs.

No sure whether its a problem … needs debugging in that environment …