I'm playing around with the javax.sound.sampled package and I'm having trouble understanding this LineUnavailableException that keeps apperaring for me. Below I've posted the source for the applet.

Code:
import java.awt.*;
import java.applet.*;
import java.io.*;
import java.net.*;
import javax.sound.sampled.*;

public class SamplePlayer extends Applet {
	String fileName = "restaurant_1.wav";
	AudioInputStream sample;
	
	private URL getURL (String fileName) {
		URL url = null;
		try { url = this.getClass().getResource(fileName); }
		catch (Exception e) { System.out.println("Failed to load the resource"); }
		return url;
	}
	
	public void init() {
		try {
			sample = AudioSystem.getAudioInputStream(getURL(fileName));
		
			Clip clip = AudioSystem.getClip();
		
			clip.open(sample);
		
			clip.start();
		} catch (MalformedURLException e) { System.out.println("Malformed URL Exception was encountered"); }
		catch (IOException e) { System.out.println("IO Exception was encountered"); }
		catch (LineUnavailableException e) { System.out.println("Line Unavailable Exception was encountered"); }
		catch (UnsupportedAudioFileException e) { System.out.println("Unsupported Audio File Exception was encountered"); }
		catch (Exception e) { System.out.println("Some Exception was encountered"); }
	}
	
	public void paint (Graphics g) {
		int y = 1;
		
		g.drawString("Sample file: " + fileName, 10, 15 * y++);
		g.drawString(" " + sample.getFormat().toString(), 10, 15 * y++);
		g.drawString(" Sampling rate: " + (int)sample.getFormat().getSampleRate(), 10, 15 * y++);
		g.drawString(" Sample channels: " + sample.getFormat().getChannels(), 10, 15 * y++);
		g.drawString(" Encoded format: " + sample.getFormat().getEncoding().toString(), 10, 15 * y++);
		g.drawString(" Sample size: " + sample.getFormat().getSampleSizeInBits() + "-bit", 10, 15 * y++);
		g.drawString(" Frame size: " + sample.getFormat().getFrameSize(), 10, 15 * y++);
	}
}
The sourse itself compiles fine and the applet runs however I have the console window telling me that the applet encounters the LineUnavailableException. I looked it up on the Java website and the only thing I got from that was that either (1) the WAV file I'm using is corrupt, (2) the sound device is in use by some other program or (3) the source had trouble opening the WAV file. I troubleshooted all three of those and it's still throwing that exception and I'm not entirely too sure what to do about it as this is really the first time I've encountered it. Can someone help out? Thanks in advance.