Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling Jasper report from Adf Application

UthmanJul 7 2014 — edited Jul 22 2014

Hi

I want to call jasper report from my adf application. i make my report in designer (iReport). i place the report source in jasper folder inside public_html folder of project (ViewController).i am using this in my bean method

         connection = getDataSourceConnection("jdbc/ebstest");
        InputStream fs = getContext().getResourceAsStream("/jasper/" + "TestJasperReport.jasper");
        JasperDesign jasperDesign = JRXmlLoader.load(fs);
        JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
        Map param = new HashMap();
        param.put("department","1");
        runReport("/jasper/" + "TestJasperReport.jasper", param);
        JasperPrint print = JasperFillManager.fillReport(jasperReport, param, connection);
       

JasperViewer.viewReport(print, false);

When i run this method by clicking a button from my jsf page i get the following exception message

java.io.UTFDataFormatException: Invalid UTF8 encoding


Can anybody help me  . . ? i am running out of time ..

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2014
Added on Jul 7 2014
12 comments
4,365 views