PDA

View Full Version : [ubuntu] Java sound problem on Gazelle



sandygmaharaj
July 12th, 2008, 07:12 PM
When I try to run SIP communicator (www.sip-communicator.org), I get the following error:


sip-communicator -v

Welcome to Felix.
=================

Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
Failed to configure: com.sun.media.ProcessEngine@1117a20
IO exception: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.

Error: Unable to configure com.sun.media.ProcessEngine@1117a20
20:06:27.141 SEVERE: impl.media.MediaServiceImpl.run().401 Failed to initialize media control
net.java.sip.communicator.service.media.MediaExcep tion: Media manager could not configure processor
for the specified data source
at net.java.sip.communicator.impl.media.MediaControl. initProcessor(MediaControl.java:528)
at net.java.sip.communicator.impl.media.MediaControl. initCaptureDevices(MediaControl.java:421)
at net.java.sip.communicator.impl.media.MediaControl. initialize(MediaControl.java:213)
at net.java.sip.communicator.impl.media.MediaServiceI mpl$DeviceConfigurationThread.run(MediaServiceImpl .java:395)
at net.java.sip.communicator.impl.media.MediaServiceI mpl.start(MediaServiceImpl.java:224)
at net.java.sip.communicator.impl.media.MediaActivato r.start(MediaActivator.java:60)
at org.apache.felix.framework.util.SecureAction.start Activator(SecureAction.java:589)
at org.apache.felix.framework.Felix._startBundle(Feli x.java:1536)
at org.apache.felix.framework.Felix.startBundle(Felix .java:1470)
at org.apache.felix.framework.Felix.setFrameworkStart Level(Felix.java:1065)
at org.apache.felix.framework.StartLevelImpl.run(Star tLevelImpl.java:258)
at java.lang.Thread.run(Thread.java:619)
20:06:28.891 SEVERE: impl.gui.UIServiceImpl.serviceChanged().645 Plugin Component type is not supported.Should provide a plugin in AWT, SWT or Swing.


Interesting line here is;
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.

This program works fine on a Compaq system with ubuntu. What could be wrong?

thomasaaron
July 14th, 2008, 03:14 PM
645 Plugin Component type is not supported.Should provide a plugin in AWT, SWT or Swing

That's the important line. Either there is something about your sound card not supported by Java, or your JVM is having difficulty dealing with the program.

My gut feeling is that you are using java-6-openjdk to provide java on your system. Open JDK isn't quite ready for the big leagues yet. Try this...



sudo apt-get install sun-java6-jdk #Install Sun's Java

sudo update-alternatives --config java #Select the number that corresponds to Sun's Java.

sudo reboot

Now retry your program.