hii,
please insert try/catch block and and insert
catch(Exception e)
{System.out.println( e);}
then the code will work fine..
Reagrds,
Devesh