JDK-4941629 : REGRESSION: JCK1.5 api/javax_sound/sampled/AudioSystem/index.html#AudioSystem
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-10-22
  • Updated: 2003-11-06
  • Resolved: 2003-10-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
5.0 b26Fixed
Related Reports
Relates :  
Relates :  
Name: iaR10016			Date: 10/22/2003

Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b24
                  (passes with JDK1.5.0-b23, JDK1.4.2-b28)
JCK            : JCK1.5-runtime (b06)
Platform[s]    : all
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
         api/javax_sound/sampled/AudioSystem/index.html#AudioSystem [AudioSystem2017, AudioSystem2020]

JCK1.5-runtime api/javax_sound/sampled/AudioSystem/index.html#AudioSystem test fails using JDK1.5.0-b24
with java.lang.NullPointerException.

Test source location:

jtr file location:

How to reproduce:
Run the following script (you may need to change its variables)

--- script start ---

#Paths in Java Software:

#Alternative paths outside Java Software:

#Alternative paths for the NSK site:

export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

$JDK/bin/java -showversion       javasoft.sqe.tests.api.javax.sound.sampled.AudioSystem.AudioSystemTests       -TestCaseID AudioSystem2017 AudioSystem2020       -TestURL file://$JCK/tests/api/javax_sound/sampled/AudioSystem/index.html#AudioSystem       -TestWorkDirURL file://$workDir
--- script end ---

Test output:
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b24)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b24, mixed mode)

AudioSystem2017: Failed. Unexpected exception caught - java.lang.NullPointerException
AudioSystem2020: Failed. Unexpected exception caught - java.lang.NullPointerException
STATUS:Failed.test cases: 2; all failed; first test case failure: AudioSystem2017

Specific machine info:
Hostname: linux-22
OS: RedHat Linux 9.0 (GNOME)
Hostname: linux-4
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
Hostname: linux-8
OS: Solaris 10 (sparc) (CDE)


CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b26 tiger-beta VERIFIED IN: tiger-beta

EVALUATION Can reproduce the bug. An NPE is thrown when AudioSystem.write(ais, null, stream) is called. The bug was introduced with the fix for RFE 4925483. Eventually, all Java Sound methods should throw NPE's for un-justified null arguments. See RFE 4912693. ###@###.### 2003-10-22