[jitsi-users] Issue: Jitsi Desktop - Registrarless SIP keeps connecting, and desconnecting. (Damian Minkov)


#1

The nightly builds work great. I don't have the problem anymore. (When I said PC A didn't see PC B, was because another program was using port 5060, my bad).
Now I'm using windows nightly 2.9.5537 and no problems.

In the stable branch disabling "Message Waiting (MWI)" worked but after a while it disconnected again.

The log of the error:

GRAVE: [75] service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged().190 An error occurred while executing RegistrationStateChangeListener#registrationStateChanged(RegistrationStateChangeEvent) of net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl@1f0a0b
java.lang.NullPointerException: address
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSupport$Subscription.<init>(EventPackageSupport.java:564)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber$Subscription.<init>(EventPackageSubscriber.java:1169)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber$Subscription.<init>(EventPackageSubscriber.java:1149)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl$MessageSummarySubscriber.<init>(OperationSetMessageWaitingSipImpl.java:448)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl.registrationStateChanged(OperationSetMessageWaitingSipImpl.java:207)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:176)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:130)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.setRegistrationState(SipRegistrarlessConnection.java:129)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.register(SipRegistrarlessConnection.java:70)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.registerUsingNextAddress(ProtocolProviderServiceSipImpl.java:2597)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.register(ProtocolProviderServiceSipImpl.java:347)
     at net.java.sip.communicator.util.account.LoginManager$RegisterProvider.run(LoginManager.java:423)
15:18:09.639 INFORMACIÓN: [96] plugin.reconnectplugin.ReconnectPluginActivator.run().610 Reconnect Ronald (RegistrarLess SIP) after 5000 ms.
15:18:09.639 INFORMACIÓN: [72] impl.protocol.sip.SipLogger.logInfo().185 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
15:18:10.640 INFORMACIÓN: [72] impl.protocol.sip.SipLogger.logInfo().185 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
15:18:11.640 GRAVE: [72] service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged().190 An error occurred while executing RegistrationStateChangeListener#registrationStateChanged(RegistrationStateChangeEvent) of net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl@350b37
java.lang.IllegalArgumentException: invalid transport
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.getJainSipProvider(SipStackSharing.java:474)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getJainSipProvider(ProtocolProviderServiceSipImpl.java:1579)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getDefaultJainSipProvider(ProtocolProviderServiceSipImpl.java:1958)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.createSubscription(EventPackageSubscriber.java:190)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.subscribe(EventPackageSubscriber.java:939)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.poll(EventPackageSubscriber.java:372)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.forcePollContact(OperationSetPresenceSipImpl.java:2860)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.registrationStateChanged(OperationSetPresenceSipImpl.java:3158)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:176)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:130)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.setRegistrationState(SipRegistrarlessConnection.java:129)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.register(SipRegistrarlessConnection.java:70)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.registerUsingNextAddress(ProtocolProviderServiceSipImpl.java:2597)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.notifyConnectionFailed(ProtocolProviderServiceSipImpl.java:2648)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.processTimeout(EventPackageSubscriber.java:902)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processTimeout(ProtocolProviderServiceSipImpl.java:790)
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processTimeout(SipStackSharing.java:799)
     at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:379)
     at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)
     at gov.nist.javax.sip.SipProviderImpl.transactionErrorEvent(SipProviderImpl.java:953)
     at gov.nist.javax.sip.stack.SIPTransaction.raiseErrorEvent(SIPTransaction.java:931)
     at gov.nist.javax.sip.stack.SIPClientTransaction.fireTimeoutTimer(SIPClientTransaction.java:1147)
     at gov.nist.javax.sip.stack.SIPTransaction.fireTimer(SIPTransaction.java:689)
     at gov.nist.javax.sip.stack.SIPClientTransaction$TransactionTimer.runTask(SIPClientTransaction.java:265)
     at gov.nist.javax.sip.stack.timers.DefaultSipTimer$DefaultTimerTask.run(DefaultSipTimer.java:63)
     at java.util.TimerThread.mainLoop(Timer.java:555)
     at java.util.TimerThread.run(Timer.java:505)
15:18:11.640 GRAVE: [72] service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged().190 An error occurred while executing RegistrationStateChangeListener#registrationStateChanged(RegistrationStateChangeEvent) of net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl@1f0a0b
java.lang.NullPointerException: address
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSupport$Subscription.<init>(EventPackageSupport.java:564)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber$Subscription.<init>(EventPackageSubscriber.java:1169)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber$Subscription.<init>(EventPackageSubscriber.java:1149)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl$MessageSummarySubscriber.<init>(OperationSetMessageWaitingSipImpl.java:448)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetMessageWaitingSipImpl.registrationStateChanged(OperationSetMessageWaitingSipImpl.java:207)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:176)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:130)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.setRegistrationState(SipRegistrarlessConnection.java:129)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.register(SipRegistrarlessConnection.java:70)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.registerUsingNextAddress(ProtocolProviderServiceSipImpl.java:2597)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.notifyConnectionFailed(ProtocolProviderServiceSipImpl.java:2648)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.processTimeout(EventPackageSubscriber.java:902)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processTimeout(ProtocolProviderServiceSipImpl.java:790)
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processTimeout(SipStackSharing.java:799)
     at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:379)
     at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)
     at gov.nist.javax.sip.SipProviderImpl.transactionErrorEvent(SipProviderImpl.java:953)
     at gov.nist.javax.sip.stack.SIPTransaction.raiseErrorEvent(SIPTransaction.java:931)
     at gov.nist.javax.sip.stack.SIPClientTransaction.fireTimeoutTimer(SIPClientTransaction.java:1147)
     at gov.nist.javax.sip.stack.SIPTransaction.fireTimer(SIPTransaction.java:689)
     at gov.nist.javax.sip.stack.SIPClientTransaction$TransactionTimer.runTask(SIPClientTransaction.java:265)
     at gov.nist.javax.sip.stack.timers.DefaultSipTimer$DefaultTimerTask.run(DefaultSipTimer.java:63)
     at java.util.TimerThread.mainLoop(Timer.java:555)
     at java.util.TimerThread.run(Timer.java:505)
15:20:19.243 GRAVE: [104] impl.protocol.sip.SipRegistrarConnection.unregisterInternal().569 Couldn't find the initial register request
15:20:19.245 INFORMACIÓN: [106] plugin.reconnectplugin.ReconnectPluginActivator.run().610 Reconnect Ronald (RegistrarLess SIP) after 5000 ms.
15:20:19.245 GRAVE: [104] impl.protocol.sip.ProtocolProviderServiceSipImpl.run().1097 Failed to properly unregister before shutting down. SIP:Ronald@
net.java.sip.communicator.service.protocol.OperationFailedException: Could not find the initial register request.
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregisterInternal(SipRegistrarConnection.java:573)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.unregister(SipRegistrarConnection.java:542)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.unregister(ProtocolProviderServiceSipImpl.java:390)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.unregister(ProtocolProviderServiceSipImpl.java:369)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl$ShutdownThread.run(ProtocolProviderServiceSipImpl.java:1088)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.shutdown(ProtocolProviderServiceSipImpl.java:1054)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.modifyAccount(ProtocolProviderFactorySipImpl.java:191)
     at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:397)
     at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:357)
     at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:332)
     at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:180)
     at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:145)
     at java.lang.Thread.run(Thread.java:745)
15:20:19.315 GRAVE: [108] impl.contactlist.MetaContactListServiceImpl.renameMetaContact().866 Error renaming protocol contact: ContactSipImpl[ DisplayName=Tandil]
java.lang.IllegalStateException: The provider must be signed on the service before being able to communicate.
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.assertConnected(OperationSetPresenceSipImpl.java:1102)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.setDisplayName(OperationSetPresenceSipImpl.java:2927)
     at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.renameMetaContact(MetaContactListServiceImpl.java:862)
     at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.renameMetaContact(MetaContactListServiceImpl.java:816)
     at net.java.sip.communicator.impl.gui.main.contactlist.AddContactDialog$6.run(AddContactDialog.java:851)
15:20:19.316 GRAVE: [109] impl.contactlist.MetaContactListServiceImpl.renameMetaContact().866 Error renaming protocol contact: ContactSipImpl[ DisplayName=Concepcion]
java.lang.IllegalStateException: The provider must be signed on the service before being able to communicate.
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.assertConnected(OperationSetPresenceSipImpl.java:1102)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.setDisplayName(OperationSetPresenceSipImpl.java:2927)
     at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.renameMetaContact(MetaContactListServiceImpl.java:862)
     at net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.renameMetaContact(MetaContactListServiceImpl.java:816)
     at net.java.sip.communicator.impl.gui.main.contactlist.AddContactDialog$6.run(AddContactDialog.java:851)
15:20:19.325 ADVERTENCIA: [112] service.resources.AbstractResourcesService.getSettingsInt().596 Missing resource for key: net.java.sip.communicator.SIP_PREFERRED_CLEAR_PORT
15:20:19.326 INFORMACIÓN: [112] impl.protocol.sip.SipLogger.logInfo().185 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been started
15:20:19.327 ADVERTENCIA: [112] service.resources.AbstractResourcesService.getSettingsInt().596 Missing resource for key: net.java.sip.communicator.SIP_PREFERRED_SECURE_PORT
15:20:19.370 INFORMACIÓN: [112] impl.certificate.CertificateServiceImpl.getTrustManager().671 Using Windows-ROOT. Aliases sucessfully renamed on 37 root certificates.
15:20:51.410 INFORMACIÓN: [129] plugin.reconnectplugin.ReconnectPluginActivator.run().610 Reconnect Ronald (RegistrarLess SIP) after 5000 ms.
15:20:51.412 INFORMACIÓN: [115] impl.protocol.sip.SipLogger.logInfo().185 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
15:20:52.412 INFORMACIÓN: [115] impl.protocol.sip.SipLogger.logInfo().185 Info from the JAIN-SIP stack: the sip stack timer gov.nist.javax.sip.stack.timers.DefaultSipTimer has been stopped
15:20:53.412 GRAVE: [115] service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged().190 An error occurred while executing RegistrationStateChangeListener#registrationStateChanged(RegistrationStateChangeEvent) of net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl@dfc6f3
java.lang.IllegalArgumentException: invalid transport
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.getJainSipProvider(SipStackSharing.java:474)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getJainSipProvider(ProtocolProviderServiceSipImpl.java:1579)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getDefaultJainSipProvider(ProtocolProviderServiceSipImpl.java:1958)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.createSubscription(EventPackageSubscriber.java:190)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.subscribe(EventPackageSubscriber.java:939)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.poll(EventPackageSubscriber.java:372)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.forcePollContact(OperationSetPresenceSipImpl.java:2860)
     at net.java.sip.communicator.impl.protocol.sip.OperationSetPresenceSipImpl.registrationStateChanged(OperationSetPresenceSipImpl.java:3158)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:176)
     at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:130)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.setRegistrationState(SipRegistrarlessConnection.java:129)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarlessConnection.register(SipRegistrarlessConnection.java:70)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.registerUsingNextAddress(ProtocolProviderServiceSipImpl.java:2597)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.notifyConnectionFailed(ProtocolProviderServiceSipImpl.java:2648)
     at net.java.sip.communicator.impl.protocol.sip.EventPackageSubscriber.processTimeout(EventPackageSubscriber.java:902)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processTimeout(ProtocolProviderServiceSipImpl.java:790)
     at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processTimeout(SipStackSharing.java:799)
     at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:379)
     at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)
     at gov.nist.javax.sip.SipProviderImpl.transactionErrorEvent(SipProviderImpl.java:953)
     at gov.nist.javax.sip.stack.SIPTransaction.raiseErrorEvent(SIPTransaction.java:931)
     at gov.nist.javax.sip.stack.SIPClientTransaction.fireTimeoutTimer(SIPClientTransaction.java:1147)
     at gov.nist.javax.sip.stack.SIPTransaction.fireTimer(SIPTransaction.java:689)
     at gov.nist.javax.sip.stack.SIPClientTransaction$TransactionTimer.runTask(SIPClientTransaction.java:265)
     at gov.nist.javax.sip.stack.timers.DefaultSipTimer$DefaultTimerTask.run(DefaultSipTimer.java:63)
     at java.util.TimerThread.mainLoop(Timer.java:555)
     at java.util.TimerThread.run(Timer.java:505)

Thanks for your help,

Ronald


#2

You are using registrarless account, this is not recommended as it is
not widely tested.
If this is not on purpose, delete the account and create it again and
do not forget to add @server part.
Other than that, you are receiving some wrong sip messages, it seems
they are missing from header. Nothing more to say here without
checking the logs (and the pcap file from the logs).

Regards
damencho

···

On Tue, Jan 31, 2017 at 12:26 PM, Ronald Fucks <rfucks@victoria.com.ar> wrote:

Reconnect Ronald (RegistrarLess SIP)