Drawing a Line graph

I want to draw a Line graph in Struts application,
I use Netbeans and installed necessary plugin.

public String getPDFReport(LineChartShipwiseEfficiencyBean bean[], String filePath, String fileName,
String jrxmlFilePath) {
String message = "";
OutputStream ouputStream = null;
ByteArrayOutputStream byteArrayOutputStream = null;
try {
JasperReport jasperReport = JasperCompileManager.compileReport(jrxmlFilePath);
System.out.println("Compiled Report.........!");
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
new HashMap(10), new JRBeanArrayDataSource(bean));
System.out.println("Print Ready.............!");
JasperExportManager.exportReportToPdfFile(jasperPrint, filePath);
System.out.println("PDF Printed...............!");
} catch (JRException ed) {
System.out.println("JRException Report Generation0:" + ed);
} catch(Exception e){
System.out.println("Exception Report Generation1:" + e);
}finally {
message = "filePath=" + filePath + "&file=" + fileName;
return message;
}
}

It gives exception while compiling jrXML file,
but don't come to Catch, it directly goes to Finally block without giving any Exception.
What is the reason plz help.