JDK-4653014 : Sound API exception in JDK 1.4
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-03-14
  • Updated: 2002-03-15
  • Resolved: 2002-03-15
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 03/14/2002


FULL PRODUCT VERSION :
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)


FULL OPERATING SYSTEM VERSION :
uname -a
Linux bonzai 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31
EDT 2001 i686 unknown



EXTRA RELEVANT SYSTEM CONFIGURATION :
Using another sound application (esd).  Also can be
reproduced in JDK 1.3.1

A DESCRIPTION OF THE PROBLEM :
I've seen vague references to this in other issues, but
none addressing it specifically (perhaps that's why it
hasn't been fixed).

If a non-java application is using the sound device, java
apps accessing the sequencer just "hang".   Using java
-verbose shows that the last class loaded is
IllegalArgumentException.

The Java sound API example from the JDK1.3.1
distribution illustrates this problem both under JDK 1.3
and 1.4.   That application will at least start up.   My
application never even enters main!



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.  Start ESD volume meter (this is an example of
another application that will monopolize the sound
subsystem)
2.  java -jar JavaSound.jar
3.  Click on the MIDI Synthesizer tab.

The application will "go away".  No exceptions printed,
no diagnostic information of any kind.

EXPECTED VERSUS ACTUAL BEHAVIOR :
I would really like to be able to catch an exception, and
just disable my application features that require access
to the synth/sound.   My application transcribes music,
and playing it back rarely happens anyway.

Perhaps more importantly, I would like to login to the
local dual processor server box to do development .  It's
a lot faster than my PC.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
None.  However, here's the last few lines of java -verbose -jar
JavaSound.jar :
[Loaded java.awt.geom.GeneralPath from /opt/jdk1.4.0/jre/lib/rt.jar]
[Loaded TempoDial$Data]
[Loaded TempoDial$1]
[Loaded TempoDial$2]
[Loaded Groove$Data]
[Loaded Groove$1]
[Loaded Groove$2]
[Loaded Groove$3]
[Loaded Groove$4]
[Loaded sun.reflect.GeneratedMethodAccessor8]
[Loaded sun.reflect.GeneratedMethodAccessor9]
[Loaded java.lang.IllegalArgumentException from /opt/jdk1.4.0/jre/lib/rt.jar]


This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Use the JavaSound sample app.
---------- END SOURCE ----------
(Review ID: 139035) 
======================================================================