[jitsi-dev] Exception while starting libjitsi


#1

Hello,
I am trying to use libJitsi from within a weblogic container running on a headless virtual machine.
I have set the java.library.path to include the linux-x86-64 native libraries included with libjitsi.

I have an EJB which has a method annotated with @PostConstuct which means that it will be invoked by the container during application startup.
This method contains the following code:
LibJitsi.start();
LibJitsi.getMediaService();

I get the following error which causes the weblogic process to abort:

INFO: Initializing audio devices
Nov 24, 2015 2:19:59 PM org.jitsi.util.Logger warn
WARNING: Failed to initialize org.jitsi.impl.neomedia.device.PulseAudioSystem
java.lang.IllegalStateException: context.state
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.createContext(PulseAudioSystem.java:202)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:509)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:373)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:642)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:445)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:348)
  at org.jitsi.impl.neomedia.device.DeviceSystem.<init>(DeviceSystem.java:493)
  at org.jitsi.impl.neomedia.device.AudioSystem.<init>(AudioSystem.java:204)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.<init>(PulseAudioSystem.java:128)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:288)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:230)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:160)
  at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:347)
  at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:159)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:151)
  at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:172)
  at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124)
  at oracle.dk.media.control.JitsiMediaBean.initJitsi(JitsiMediaBean.java:51)
  at ...

<Nov 24, 2015 2:19:59 PM GMT> <Warning> <org.jitsi.impl.neomedia.device.DeviceSystem> <BEA-000000> <Failed to initialize org.jitsi.impl.neomedia.device.PulseAudioSystem
java.lang.IllegalStateException: context.state
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.createContext(PulseAudioSystem.java:202)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:509)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:373)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:642)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:445)
  Truncated. see log file for complete stacktrace

ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection terminated

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection terminated

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
java: src/common/pa_front.c:204: InitializeHostApis: Assertion `hostApi->info.defaultInputDevice < hostApi->info.deviceCount' failed.

Does anyone have any ideas how to solve this issue?

Thanks, Simon.

Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

Oracle is committed to developing practices and products that help protect the environment


#2

I have resolved my startup issue by issuing the following command as the user who starts the weblogic (Jitsi) process:
pulseaudio -D

I now get the following output which includes warnings about not being able to find any video devices but the application starts up at least!

INFO: Initializing audio devices
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
Nov 25, 2015 10:38:54 AM org.jitsi.util.Logger info
INFO: Initializing video devices
Nov 25, 2015 10:38:54 AM org.jitsi.util.Logger warn
WARNING: Failed to initialize org.jitsi.impl.neomedia.device.ImgStreamingSystem
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:264)
  at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
  at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
  at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:264)
  at java.awt.Toolkit$2.run(Toolkit.java:860)
  at java.awt.Toolkit$2.run(Toolkit.java:855)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
  at org.jitsi.impl.neomedia.device.ImgStreamingSystem.doInitialize(ImgStreamingSystem.java:89)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:642)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:445)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:348)
  at org.jitsi.impl.neomedia.device.DeviceSystem.<init>(DeviceSystem.java:493)
  at org.jitsi.impl.neomedia.device.ImgStreamingSystem.<init>(ImgStreamingSystem.java:53)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:288)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:230)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:172)
  at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:347)
  at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:159)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:151)
  at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:172)
  at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124)
  at oracle.dk.media.control.JitsiMediaBean.initJitsi(JitsiMediaBean.java:51)
  at ...

<Nov 25, 2015 10:38:54 AM GMT> <Warning> <org.jitsi.impl.neomedia.device.DeviceSystem> <BEA-000000> <Failed to initialize org.jitsi.impl.neomedia.device.ImgStreamingSystem
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:264)
  at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
  at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
  at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
  Truncated. see log file for complete stacktrace

Nov 25, 2015 10:38:54 AM org.jitsi.util.Logger info
INFO: Looking for configured audio devices.
Nov 25, 2015 10:38:54 AM org.jitsi.util.Logger info
INFO: Scanning for configured Video Devices.
Nov 25, 2015 10:38:54 AM org.jitsi.util.Logger info
INFO: No Video Device was found.
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed
X11 connection rejected because of wrong authentication.
XOpenDisplay() failed

···

On 24 Nov 2015, at 14:53, Simon Billingsley <simon.billingsley@oracle.com> wrote:

Hello,
I am trying to use libJitsi from within a weblogic container running on a headless virtual machine.
I have set the java.library.path to include the linux-x86-64 native libraries included with libjitsi.

I have an EJB which has a method annotated with @PostConstuct which means that it will be invoked by the container during application startup.
This method contains the following code:
LibJitsi.start();
LibJitsi.getMediaService();

I get the following error which causes the weblogic process to abort:

INFO: Initializing audio devices
Nov 24, 2015 2:19:59 PM org.jitsi.util.Logger warn
WARNING: Failed to initialize org.jitsi.impl.neomedia.device.PulseAudioSystem
java.lang.IllegalStateException: context.state
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.createContext(PulseAudioSystem.java:202)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:509)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:373)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:642)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:445)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:348)
  at org.jitsi.impl.neomedia.device.DeviceSystem.<init>(DeviceSystem.java:493)
  at org.jitsi.impl.neomedia.device.AudioSystem.<init>(AudioSystem.java:204)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.<init>(PulseAudioSystem.java:128)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:288)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:230)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initializeDeviceSystems(DeviceSystem.java:160)
  at org.jitsi.impl.neomedia.device.DeviceConfiguration.<init>(DeviceConfiguration.java:347)
  at org.jitsi.impl.neomedia.MediaServiceImpl.<init>(MediaServiceImpl.java:159)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
  at java.lang.Class.newInstance(Class.java:442)
  at org.jitsi.impl.libjitsi.LibJitsiImpl.getService(LibJitsiImpl.java:151)
  at org.jitsi.service.libjitsi.LibJitsi.invokeGetServiceOnImpl(LibJitsi.java:172)
  at org.jitsi.service.libjitsi.LibJitsi.getMediaService(LibJitsi.java:124)
  at oracle.dk.media.control.JitsiMediaBean.initJitsi(JitsiMediaBean.java:51)
  at ...

<Nov 24, 2015 2:19:59 PM GMT> <Warning> <org.jitsi.impl.neomedia.device.DeviceSystem> <BEA-000000> <Failed to initialize org.jitsi.impl.neomedia.device.PulseAudioSystem
java.lang.IllegalStateException: context.state
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.createContext(PulseAudioSystem.java:202)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.getContext(PulseAudioSystem.java:509)
  at org.jitsi.impl.neomedia.device.PulseAudioSystem.doInitialize(PulseAudioSystem.java:373)
  at org.jitsi.impl.neomedia.device.DeviceSystem.initialize(DeviceSystem.java:642)
  at org.jitsi.impl.neomedia.device.DeviceSystem.invokeDeviceSystemInitialize(DeviceSystem.java:445)
  Truncated. see log file for complete stacktrace
>
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection terminated

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection terminated

ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
java: src/common/pa_front.c:204: InitializeHostApis: Assertion `hostApi->info.defaultInputDevice < hostApi->info.deviceCount' failed.

Does anyone have any ideas how to solve this issue?

Thanks, Simon.

<oracle_sig_logo.gif>
Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

<green-for-email-sig_0.gif>Oracle is committed to developing practices and products that help protect the environment

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

Oracle is committed to developing practices and products that help protect the environment


#3

I have resolved my startup issue by issuing the following command as the

user

who starts the weblogic (Jitsi) process:
pulseaudio -D

I now get the following output which includes warnings about not being

able

to find any video devices but the application starts up at least!

Try disabling the audiosystem completely, you don't need them on a server:

org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

This list is OS specific, have a look at the package
org.jitsi.impl.neomedia.device to see what's there for each platform.

Ingo


#4

Ingo,
Thanks!
Do you know if I can set these in a properties file included with the application?
I see the following during startup:
INFO: Normal classloader
INFO: failed to find jitsi-defaults.properties with class loader, will continue without it.
INFO: failed to find jitsi-default-overrides.properties with class loader, will continue without it.

If I include the file: 'jitsi-defaults.properties’ somewhere in my library with the following contents - will Jitsi find it?
org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

Thanks for your help…
Simon.

···

On 25 Nov 2015, at 10:56, Ingo Bauersachs <ingo@jitsi.org> wrote:

I have resolved my startup issue by issuing the following command as the

user

who starts the weblogic (Jitsi) process:
pulseaudio -D

I now get the following output which includes warnings about not being

able

to find any video devices but the application starts up at least!

Try disabling the audiosystem completely, you don't need them on a server:

org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

This list is OS specific, have a look at the package
org.jitsi.impl.neomedia.device to see what's there for each platform.

Ingo

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

Oracle is committed to developing practices and products that help protect the environment


#5

I have now added the following system properties to my startup script:
-Dorg.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
-Dorg.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true
-Dorg.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
-Dorg.jitsi.impl.neomedia.device.ImgStreamingSystem.disabled=true

These were also required as the PulseAudioRenderer was being initialised as well...
-Dnet.java.sip.communicator.service.media.DISABLE_AUDIO_SUPPORT=true
-Dnet.java.sip.communicator.service.media.DISABLE_VIDEO_SUPPORT=true

This has removed all erroneous errors.

Thanks, Simon.

···

On 25 Nov 2015, at 16:06, Simon Billingsley <simon.billingsley@oracle.com> wrote:

Ingo,
Thanks!
Do you know if I can set these in a properties file included with the application?
I see the following during startup:
INFO: Normal classloader
INFO: failed to find jitsi-defaults.properties with class loader, will continue without it.
INFO: failed to find jitsi-default-overrides.properties with class loader, will continue without it.

If I include the file: 'jitsi-defaults.properties’ somewhere in my library with the following contents - will Jitsi find it?
org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

Thanks for your help…
Simon.

On 25 Nov 2015, at 10:56, Ingo Bauersachs <ingo@jitsi.org <mailto:ingo@jitsi.org>> wrote:

I have resolved my startup issue by issuing the following command as the

user

who starts the weblogic (Jitsi) process:
pulseaudio -D

I now get the following output which includes warnings about not being

able

to find any video devices but the application starts up at least!

Try disabling the audiosystem completely, you don't need them on a server:

org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

This list is OS specific, have a look at the package
org.jitsi.impl.neomedia.device to see what's there for each platform.

Ingo

_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

<oracle_sig_logo.gif>
Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

<green-for-email-sig_0.gif>Oracle is committed to developing practices and products that help protect the environment

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Simon Billingsley | Principal Member of Technical Staff
Phone: +441473284906 | Mobile: +447765933711
Oracle Communications
Robert Ransome House, 19 Carr Street | Ipswich | Suffolk | IP4 1ER | United Kingdom
ORACLE Corporation UK Ltd is a company incorporated in England & Wales | Company Reg. No. 1782505 | Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA

Oracle is committed to developing practices and products that help protect the environment


#6

Ingo, Thanks! Do you know if I can set these in a properties file
included with the application? I see the following during startup: INFO:
Normal classloader INFO: failed to find jitsi-defaults.properties with
class loader, will continue without it. INFO: failed to find
jitsi-default-overrides.properties with class loader, will continue
without it.

If I include the file: 'jitsi-defaults.properties’ somewhere in my
library with the following contents - will Jitsi find it?

Yes, it should. jitsi-defaults is intended for the defaults of an application; jitsi-default-overrides is something e.g. an installer(-script) would generate at install time (in Desktop Jitsi the Windows .MSI can e.g. set provisioning properties there) and sip-communicator.properties (still using the legacy name before the rename to Jitsi) stores the users preferences (and must be writable, the jitsi-* can be readonly).

org.jitsi.impl.neomedia.device.PulseAudioSystem.disabled=true
org.jitsi.impl.neomedia.device.Video4Linux2System.disabled=true
org.jitsi.impl.neomedia.device.PortAudioSystem.disabled=true

Thanks for your help…
Simon.

Ingo