openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #02992
[Bug 525883] [NEW] Java applet audio with pulseaudio broken (local apps likely broken)
Public bug reported:
Binary package hint: openjdk-6-jre
Problem: No audio output from applets in firefox using pulseaudio.
charm% lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
This bug is in a combination of packages:
- openjdk-6-jre 6b16-1.6.1-3ubuntu1
- openjdk-6-jre-lib 6b16-1.6.1-3ubuntu1
- icedtea6-plugin 6b16-1.6.1-3ubuntu1
Examples:
- Webex meetings
- http://www.javazoom.net/applets/tinyplayer/tinyplayer.html
Doing some investigation, I found two things:
- There is a security policy problem for applets using sound
- There is a packaging problem with the location of the native pulse library for java
Working backwards using java stacktraces on stderr, I found the following permissions
were necessary to get audio output from java:
$ cat .java.policy
grant {
permission java.lang.RuntimePermission
"loadLibrary.pulse-java";
permission java.io.FilePermission
"/usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386/libpulse-java.so", "read";
};
Then, I found that the .so file didn't actually exist! Instead, it's in
a different directory:
$ dpkg -L openjdk-6-jre | grep pulse
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libpulse-java.so
Making a symbolic link fixed everything and made it work:
$ ls -l /usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386
lrwxrwxrwx 1 root root 7 2010-02-22 11:19 /usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386 -> ../i386
I can't say how the policies should be managed for applets, but even
regular java programs aren't likely to work until the packaging is
fixed.
-Dave
** Affects: openjdk-6 (Ubuntu)
Importance: Undecided
Status: New
** Tags: applet audio firefox java pulseaudio
--
Java applet audio with pulseaudio broken (local apps likely broken)
https://bugs.launchpad.net/bugs/525883
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” package in Ubuntu: New
Bug description:
Binary package hint: openjdk-6-jre
Problem: No audio output from applets in firefox using pulseaudio.
charm% lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
This bug is in a combination of packages:
- openjdk-6-jre 6b16-1.6.1-3ubuntu1
- openjdk-6-jre-lib 6b16-1.6.1-3ubuntu1
- icedtea6-plugin 6b16-1.6.1-3ubuntu1
Examples:
- Webex meetings
- http://www.javazoom.net/applets/tinyplayer/tinyplayer.html
Doing some investigation, I found two things:
- There is a security policy problem for applets using sound
- There is a packaging problem with the location of the native pulse library for java
Working backwards using java stacktraces on stderr, I found the following permissions
were necessary to get audio output from java:
$ cat .java.policy
grant {
permission java.lang.RuntimePermission
"loadLibrary.pulse-java";
permission java.io.FilePermission
"/usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386/libpulse-java.so", "read";
};
Then, I found that the .so file didn't actually exist! Instead, it's in a different directory:
$ dpkg -L openjdk-6-jre | grep pulse
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/libpulse-java.so
Making a symbolic link fixed everything and made it work:
$ ls -l /usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386
lrwxrwxrwx 1 root root 7 2010-02-22 11:19 /usr/lib/jvm/java-6-openjdk/jre/lib/ext/i386 -> ../i386
I can't say how the policies should be managed for applets, but even regular java programs aren't likely to work until the packaging is fixed.
-Dave
Follow ups
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Catalin Patulea, 2012-06-18
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Tom Ellis, 2012-04-24
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Wirawan Purwanto, 2012-04-17
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Daniel Eloff, 2012-04-17
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Søren Holm, 2012-04-13
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Søren Holm, 2012-04-11
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Søren Holm, 2012-04-11
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Garvin, 2012-04-11
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Matthias Klose, 2012-04-11
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Wirawan Purwanto, 2012-04-03
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: IlyaY, 2012-04-03
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Søren Holm, 2012-03-08
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Daniele Dellafiore, 2012-02-28
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: xpecttrum, 2012-02-06
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Vadim Peretokin, 2011-08-18
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Vadim Peretokin, 2011-08-18
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Vadim Peretokin, 2011-08-18
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: ikke, 2011-03-30
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: sceo, 2011-03-03
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: koma, 2011-02-23
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Paul Ebermann, 2011-01-30
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Ricardo Almeida, 2011-01-29
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Ricardo Almeida, 2011-01-29
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: erny, 2011-01-19
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Jarkko Torvinen, 2010-12-09
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Peter Lundqvist, 2010-11-27
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Alan Lord, 2010-10-12
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: David Stenglein, 2010-07-27
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Matthias Klose, 2010-07-27
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Matthias Klose, 2010-03-22
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: David Stenglein, 2010-03-22
-
[Bug 525883] Re: Java applet audio with pulseaudio broken (local apps likely broken)
From: Matthias Klose, 2010-03-22
-
[Bug 525883] [NEW] Java applet audio with pulseaudio broken (local apps likely broken)
From: David Stenglein, 2010-02-22
References