Hi Iam on the printing a jasper report using a servlet. I have to pass parameter to the report query as the sql changes according to user input. i have designed my report using ireport 1.3.0 and i have a parameter called payment_date in my report. Exception i got is java.sql.SQLException: No parameters defined during prepareCall() net.sf.jasperreports.engine.JRException: Error preparing statement for executing the report query Code:// create a map of parameters to pass to the report. Map parameters = new HashMap(); parameters.put("payment_date", payment_date); InputStream reportStream = getServletConfig().getServletContext().getResourceAsStream("/reports/Daily Sales By Pay Mode.jasper"«»); jasperPrint = JasperFillManager.fillReport(reportStream,parameters, conn); JasperPrintManager.printReport(jasperPrint, true); Iam printing the report from JSF and the parameter is passed using servlet. parameter is passed successfully. exception occurs when JasperFillManager.fillReport step is encountered. plz Suggest me how to solve the problem . any sample code will also help. cheers Shreelu