Java applet audio with pulseaudio broken (local apps likely broken)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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://
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.
permission java.io.
};
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/
Making a symbolic link fixed everything and made it work:
$ ls -l /usr/lib/
lrwxrwxrwx 1 root root 7 2010-02-22 11:19 /usr/lib/
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
> $ cat .java.policy
this file is not part of a package. where does it come from?
I cannot understand your statement about the security problem