[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/26339] New: Problems using javax.sound
From: |
takis at issaris dot org |
Subject: |
[Bug classpath/26339] New: Problems using javax.sound |
Date: |
17 Feb 2006 13:26:28 -0000 |
I have been investigating using Oscar's OSGi implementation. One of the jars
which provides MP3 playback works fine on Sun's JVM, but I couldn't get it to
work when using JamVM with GNU Classpath.
So, either JamVM or GNU Classpath or both are causing it to fail.
The following lines show the output when using the Sun JVM and Sun Java
class libraries on my PC:
-> mp3 play file:/tmp/test.mp3
-> Play started from frame 0
-> mp3 stop
Play completed at frame 15087
All working fine. No exceptions and it plays the music as it should.
Next, the following lines show the output when using the JamVM JVM and
the GNU Classpath class libraries on my PC:
-> mp3 play file:/tmp/test.mp3
javax.sound.sampled.LineUnavailableException: no Clip available
at javax.sound.sampled.AudioSystem.getLine (AudioSystem.java:387)
at javazoom.jl.player.JavaSoundAudioDevice.createSource
(JavaSoundAudioDevice.java:101)
at javazoom.jl.player.JavaSoundAudioDevice.writeImpl
(JavaSoundAudioDevice.java:148)
at javazoom.jl.player.AudioDeviceBase.write
(AudioDeviceBase.java:133)
at javazoom.jl.player.JavaSoundAudioDevice.test
(JavaSoundAudioDevice.java:205)
at javazoom.jl.player.JavaSoundAudioDeviceFactory.testAudioDevice
(JavaSoundAudioDeviceFactory.java:83)
at javazoom.jl.player.JavaSoundAudioDeviceFactory.createAudioDevice
(JavaSoundAudioDeviceFactory.java:42)
at javazoom.jl.player.FactoryRegistry.createAudioDevice
(FactoryRegistry.java:87)
at javazoom.jl.player.advanced.AdvancedPlayer.<init>
(AdvancedPlayer.java:66)
at javazoom.jl.player.advanced.AdvancedPlayer.<init>
(AdvancedPlayer.java:58)
at insa.mp3.PlayerActivator.playMp3 (PlayerActivator.java:130)
at insa.mp3.PlayerActivator.execute (PlayerActivator.java:94)
at org.ungoverned.osgi.bundle.shell.Activator
$ShellServiceImpl.executeCommand (Activator.java:280)
at org.ungoverned.osgi.bundle.shelltui.ShellTuiActivator
$ShellTuiRunnable.run (ShellTuiActivator.java:172)
at java.lang.Thread.run (Thread.java:674)
Total failure! :-/
Next I tried getting the MP3-playback run using the GNU Java
interpreter (GIJ 4.0). As this one uses GNU Classpath too, it might help me
determine whether it was JamVM or GNU Classpath that caused it to fail.
-> mp3 play file:/tmp/test.mp3
java.lang.NoClassDefFoundError: while resolving class:
javazoom.jl.player.JavaSoundAudioDevice
at java.lang.VMClassLoader.transformException(java.lang.Class,
java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.newInstance() (/usr/lib/libgcj.so.6.0.0)
at
javazoom.jl.player.AudioDeviceFactory.instantiate(java.lang.ClassLoader,
java.lang.String) (Unknown Source)
at
javazoom.jl.player.JavaSoundAudioDeviceFactory.createAudioDeviceImpl()
(Unknown Source)
at javazoom.jl.player.JavaSoundAudioDeviceFactory.testAudioDevice()
(Unknown Source)
at javazoom.jl.player.JavaSoundAudioDeviceFactory.createAudioDevice()
(Unknown Source)
at javazoom.jl.player.FactoryRegistry.createAudioDevice() (Unknown
Source)
at
javazoom.jl.player.advanced.AdvancedPlayer.AdvancedPlayer(java.io.InputStream,
javazoom.jl.player.AudioDevice) (Unknown Source)
at
javazoom.jl.player.advanced.AdvancedPlayer.AdvancedPlayer(java.io.InputStream)
(Unknown Source)
at insa.mp3.PlayerActivator.playMp3(java.lang.String) (Unknown
Source)
at insa.mp3.PlayerActivator.execute(java.lang.String,
java.io.PrintStream, java.io.PrintStream) (Unknown Source)
at org.ungoverned.osgi.bundle.shell.Activator
$ShellServiceImpl.executeCommand(java.lang.String, java.io.PrintStream,
java.io.PrintStream) (Unknown Source)
at org.ungoverned.osgi.bundle.shelltui.ShellTuiActivator
$ShellTuiRunnable.run() (Unknown Source)
at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException:
javax.sound.sampled.AudioFormat
at
org.ungoverned.moduleloader.ModuleClassLoader.findClass(java.lang.String)
(Unknown Source)
at
org.ungoverned.moduleloader.ModuleClassLoader.loadClass(java.lang.String,
boolean) (Unknown Source)
at java.lang.ClassLoader.loadClass(java.lang.String)
(/usr/lib/libgcj.so.6.0.0)
...15 more
And as can be seen, it fails with GIJ 4.0 too.
I'm not sure if I can conclude that GNU Classpath is at fault because the
reported problems are not the same. So, it might be two different bugs, or one
bug being triggered in different ways or one bug being reported differently
because of using different JVMs... I don't really know...
The system I'm running this on:
Ubuntu Breezy (5.10) with GNU Classpath 0.20, JamVM 1.4.1 and GNU gij 4.0.2
20050808 all on an x86 (P4).
Originally I encountered the MP3 playback error when trying to run Oscar on
JamVM with GNU Classpath 0.19 on my Nokia 770 Linux based device (TI OMAP).
With friendly regards,
Takis
--
Summary: Problems using javax.sound
Product: classpath
Version: 0.20
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: takis at issaris dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26339
- [Bug classpath/26339] New: Problems using javax.sound,
takis at issaris dot org <=