Bug 34044

Summary: Jitsi не подключается к SIP. Ошибки java
Product: Branch p8 Reporter: Александр <9gigabit>
Component: jitsiAssignee: Andrey Cherepanov <cas>
Status: ASSIGNED --- QA Contact: qa-p8 <qa-p8>
Severity: major    
Priority: P3 CC: bochenin
Version: не указана   
Hardware: all   
OS: Linux   

Description Александр 2017-10-22 14:24:09 MSK
При добавлении учетной записи SIP и попытке входа:

Failed to initialize accountFailed to get SIP Factory

java.lang.RuntimeException: Failed to initialize accountFailed to get SIP Factory
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:236)
	at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:156)
	at java.lang.Thread.run(Thread.java:745)
Caused by: net.java.sip.communicator.service.protocol.OperationFailedException: Failed to initialize accountFailed to get SIP Factory
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:442)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:369)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:344)
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:192)
	... 2 more

=================================================================

В консоли:

$ jitsi -d
ERROR: Bundle net.java.sip.communicator.impl.dns [116] Error starting reference:file:sc-bundles/dns.jar (org.osgi.framework.BundleException: Activator start error in bundle net.java.sip.communicator.impl.dns [116].)
java.lang.NoClassDefFoundError: org/xbill/DNS/Resolver
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4474)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2221)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.xbill.DNS.Resolver
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:1010)
	at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1595)
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1525)
	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 10 more
ERROR: Bundle net.java.sip.communicator.netaddr [90] Error starting reference:file:sc-bundles/netaddr.jar (org.osgi.framework.BundleException: Activator start error in bundle net.java.sip.communicator.netaddr [90].)
java.lang.NoClassDefFoundError: org/xbill/DNS/TextParseException
	at net.java.sip.communicator.impl.netaddr.NetworkAddressManagerServiceImpl.initRandomPortSocket(NetworkAddressManagerServiceImpl.java:433)
	at net.java.sip.communicator.impl.netaddr.NetworkAddressManagerServiceImpl.start(NetworkAddressManagerServiceImpl.java:107)
	at net.java.sip.communicator.impl.netaddr.NetaddrActivator.start(NetaddrActivator.java:89)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.xbill.DNS.TextParseException
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:1010)
	at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1595)
	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1525)
	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 9 more
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_dmix.c:968:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ERROR: Bundle net.java.sip.communicator.plugin.reconnectplugin [144] Error starting reference:file:sc-bundles/reconnectplugin.jar (org.osgi.framework.BundleException: Activator start error in bundle net.java.sip.communicator.plugin.reconnectplugin [144].)
java.lang.NullPointerException
	at net.java.sip.communicator.plugin.reconnectplugin.ReconnectPluginActivator.start(ReconnectPluginActivator.java:228)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:745)
ERROR: Bundle net.java.sip.communicator.plugin.pluginmanager [12] Error starting reference:file:sc-bundles/pluginmanager.jar (org.osgi.framework.BundleException: Activator start error in bundle net.java.sip.communicator.plugin.pluginmanager [12].)
java.lang.NullPointerException
	at net.java.sip.communicator.plugin.pluginmanager.PluginManagerActivator.start(PluginManagerActivator.java:99)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:745)
2017-10-22 16:10:10.921 SEVERE: [385] impl.osdependent.jdic.SystrayServiceJdicImpl.checkInitialized().453 Systray not init
2017-10-22 16:13:23.689 SEVERE: [739] impl.protocol.sip.SipStackSharing.<init>().151 Failed to get SIP Factory.
java.lang.NullPointerException: Specified service reference cannot be null.
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:460)
	at net.java.sip.communicator.impl.protocol.sip.SipActivator.getNetworkAddressManagerService(SipActivator.java:171)
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:146)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.initialize(ProtocolProviderServiceSipImpl.java:525)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.createService(ProtocolProviderFactorySipImpl.java:315)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:995)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:971)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.installAccount(ProtocolProviderFactorySipImpl.java:140)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:419)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:369)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:344)
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:192)
	at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:156)
	at java.lang.Thread.run(Thread.java:745)
2017-10-22 16:13:23.690 SEVERE: [739] impl.protocol.sip.ProtocolProviderFactorySipImpl.createService().323 Failed to initialize account
net.java.sip.communicator.service.protocol.OperationFailedException: Failed to get SIP Factory
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:152)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.initialize(ProtocolProviderServiceSipImpl.java:525)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.createService(ProtocolProviderFactorySipImpl.java:315)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:995)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:971)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.installAccount(ProtocolProviderFactorySipImpl.java:140)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:419)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:369)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:344)
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:192)
	at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:156)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Specified service reference cannot be null.
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:460)
	at net.java.sip.communicator.impl.protocol.sip.SipActivator.getNetworkAddressManagerService(SipActivator.java:171)
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:146)
	... 11 more
2017-10-22 16:13:48.528 SEVERE: [742] impl.protocol.sip.SipStackSharing.<init>().151 Failed to get SIP Factory.
java.lang.NullPointerException: Specified service reference cannot be null.
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:460)
	at net.java.sip.communicator.impl.protocol.sip.SipActivator.getNetworkAddressManagerService(SipActivator.java:171)
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:146)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.initialize(ProtocolProviderServiceSipImpl.java:525)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.createService(ProtocolProviderFactorySipImpl.java:315)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:995)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:971)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.installAccount(ProtocolProviderFactorySipImpl.java:140)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:419)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:369)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:344)
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:192)
	at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:156)
	at java.lang.Thread.run(Thread.java:745)
2017-10-22 16:13:48.529 SEVERE: [742] impl.protocol.sip.ProtocolProviderFactorySipImpl.createService().323 Failed to initialize account
net.java.sip.communicator.service.protocol.OperationFailedException: Failed to get SIP Factory
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:152)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.initialize(ProtocolProviderServiceSipImpl.java:525)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.createService(ProtocolProviderFactorySipImpl.java:315)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:995)
	at net.java.sip.communicator.service.protocol.ProtocolProviderFactory.loadAccount(ProtocolProviderFactory.java:971)
	at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.installAccount(ProtocolProviderFactorySipImpl.java:140)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:419)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:369)
	at net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.signin(SIPAccountRegistrationWizard.java:344)
	at net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.commitPage(AccountRegSummaryPage.java:192)
	at net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController$PageCommitThread.run(WizardController.java:156)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Specified service reference cannot be null.
	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:460)
	at net.java.sip.communicator.impl.protocol.sip.SipActivator.getNetworkAddressManagerService(SipActivator.java:171)
	at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.<init>(SipStackSharing.java:146)
	... 11 more

=========================================

Пробовал установить пакет dnsjava, не помогло.
Comment 1 Alexey Bochenin 2019-10-03 09:54:29 MSK
Удалось добавить учётную запись SIP, проделав следующие действия.

1. Установить пакет 
# apt-get install dnsjava

2. Выяснить путь, где лежит библиотека классов
# rpm -ql dnsjava|grep jar
/usr/share/java/dnsjava.jar

3. Добавить этот путь в файле /usr/bin/jitsi к переменной CLASSPATH, как показано ниже

CLASSPATH="/usr/share/java/dnsjava.jar:$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar"
FELIX_CONFIG="$LIBPATH/felix.client.run.properties"