[jboss-user] [JBoss Seam] - Re: Generation of jasper reports in seam

d.solasa do-not-reply at jboss.com
Wed May 23 05:41:58 EDT 2007

Hi Daniel..
iTried to implement ur code but I am getting the exception as 
12:18:41,966 INFO [JasperReporter] Exceptionnet.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports
ngine.JRException: Class "net.sf.jasperreports.engine.query.JRJdbcQueryExecuterFactory" should be compatible with "net.sf.jasperreports.engine.query.JRQue
ExecuterFactory" even when i tried to compile my report .so even i am unable to get the print object.
my code snippet is:
 InputStream input = this.getClass().getClassLoader().getResourceAsStream(reportName);
JasperDesign design = JRXmlLoader.load(input);
JasperReport report = JasperCompileManager.compileReport(design);
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("java:/claims");
conn = ds.getConnection();
JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
String fileName = "D:/downloads/ireport/" + showType;
OutputStream output = new FileOutputStream(new File(fileName));
JasperExportManager.exportReportToPdfStream(print, output); 

plz help me

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047835#4047835

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047835

More information about the jboss-user mailing list