hi there

i have a problem with self made media player ..
when running a simple AVI file with that code , it tells me the error posted above
actually it runs the sound of the video but not the video
any ideas ?
here is the code
import java.awt.*;
import java.awt.event.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.protocol.*;
public class VideoPlayer1 extends Frame
implements ControllerListener, ActionListener
{
Player videoPlayer;
String filename;
/** Creates new VideoPlayer1 */
public VideoPlayer1(String s1)
{
super(s1);
//handle window event handler
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent we)
{
dispose();
System.exit(0);
}
});
//create the menu
MenuBar mb = new MenuBar();
setMenuBar(mb);
Menu fileMenu = new Menu("File");
mb.add(fileMenu);
MenuItem itemPlay = new MenuItem("Play");
itemPlay.addActionListener(this);
fileMenu.add(itemPlay);
MenuItem itemStop = new MenuItem("Stop");
itemStop.addActionListener(this);
fileMenu.add(itemStop);
MenuItem itemExit = new MenuItem("Exit");
itemExit.addActionListener(this);
fileMenu.add(itemExit);
}
//add the event handler
public void actionPerformed(ActionEvent ae)
{
String action = ae.getActionCommand().toString();
if (action.equals("Play"))
{
play();
}
if (action.equals("Stop"))
{
stop();
}
if (action.equals("Exit"))
{
dispose();
System.exit(0);
}
}
private void stop()
{
if (videoPlayer != null)
{
videoPlayer.stop();
}
}
//play the video
public void play()
{
try
{
//ask the user for a file name
FileDialog fd =new FileDialog(this, "Choose Video", FileDialog.LOAD);
fd.show();
//assemble the filename
filename = fd.getDirectory() + fd.getFile();
//create the player
videoPlayer = Manager.createPlayer(
new MediaLocator("file:///" + filename));
//add a listener for player state changes
videoPlayer.addControllerListener(this);
videoPlayer.start();
}catch (Exception e)
{
System.out.println("Error " + e);
}
}
//play
public synchronized void controllerUpdate(
ControllerEvent event)
{
System.out.println("Event: " + event);
if (event instanceof RealizeCompleteEvent)
{
Component comp;
if ((comp = videoPlayer.getVisualComponent()) != null)
{
add("Center", comp);
}else
System.out.println("Unable to get visual component");
if ((comp = videoPlayer.getControlPanelComponent()) != null)
{
add("South", comp);
}
validate();
}
}
}
public static void main(String[] args)
{
VideoPlayer1 vp1 = new VideoPlayer1("VideoPlayer1");
//show the frame containing the video
vp1.show();
//size the window
vp1.setSize(300,301);
vp1.setLocation(250,300);
}