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.
Other
5.0 b26Fixed
Related Reports
Relates :  
Relates :  
Description
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:
=====================
/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/javax_sound/sampled/AudioSystem/AudioSystemTests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b24/jck15/linux/redhat9.0_gnome_smp_plugin_ns7.1_linux-22/workDir/api/javax_sound/sampled/AudioSystem/index_AudioSystem.jtr

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

--- script start ---
#!/bin/bash

#Paths in Java Software:
JDK="/java/re/jdk/1.5.0/promoted/all/b24/binaries/"
JCK="/java/re/jck/1.5/promoted/beta/b04/binaries/JCK-runtime-15"

#Alternative paths outside Java Software:
#JDK="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b24/binaries/"
#JCK="/net/koori.sfbay/onestop/jck/1.5/promoted/beta/b04/binaries/JCK-runtime-15"

#Alternative paths for the NSK site:
#JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
#JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"

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

$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
OS: SuSE SLES 8
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
Hostname: linux-8
OS: Solaris 10 (sparc) (CDE)

======================================================================

Comments
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
14-06-2004

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
22-10-2003