Java to PDF Report Creation

Hello
Anyone has java to pdf creation knowledge than please give us the feedback, if you know some readymade package please inform us
Regards

You can use JFreeReport to format data from a TableModel (as in JTable) into a report that can be previewed on-screen, printed, or exported to PDF:
http://www.object-refinery.com/jfreereport/index.html
JFreeReport is free software, under the terms of the GNU LGPL.
Regards,
Dave Gilbert
www.object-refinery.com

Similar Messages

  • BI Publisher Java API not displaying Barcode in PDF Report

    Hi Team,
    I have used BI Publisher java API in my ADF Application to generate PDF reports. It is not displaying barcodes in the PDF Reports. I have included Code 39 ttf file in my java home as well. Please let me know if any other configuration needs to be done.
    I am using jdev version 11.1.2.0.0. Please help me out if anyone knows the solution to this problem.
    Thanks in advance,
    Kavitha

    {forum:id=245} is the BIP forum.

  • BO Opendocument Url not giving pdf report when invoked through Java.

    Hi All,
    I'm trying to get pdf report by invoking the BO XI R3 server using the below url.
    <br>
    <br>
    <br>
    http://corpbo101d:41040/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sDocName=BankAsAgentNA_1_au&sOutputFormat=P&lsS@model_code=BANKAGENT&lsS@user_id=sv66397&lsS@gen_no=1
    <br>
    <br>
    <B>This url gives the pdf report as expected when accessed through the browser.</B>
    <br>
    <br>
    But when accessing through Java it is not giving the pdf but its giving the content of the opendocument.jsp instead.
    <br>
    <B>Please let me what am I doing wrong.</B>
    <br>
    <br>
    Thanks in advance.
    Your code was breaking the forum thread so I removed it.
    Edited by: Jason Everly on Apr 19, 2010 10:17 AM

    Thanks for the response Jason,<br>
    <br>
    The java script were part of the output that I got when I invoked the url through Java. That is not the code that I'm using but the response which I'm getting after invoking the url.<br>
    <br>
    The url that I used is the one that I already pasted in the start of the thread.<br>
    <br>
    http://<server>:<port>/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sDocName=BankAsAgentNA_1_au&sOutputFormat=P&lsS@model_code=BANKAGENT&lsS@user_id=sv66397&lsS@gen_no=1<br>
    <br>
    And yes I'm passing parameters along the url. <B>But it is with opendocument only and not viewrpt.*</B><br>
    <br>
    And this is already working through browser.<br>
    <br>
    But the problem occurs only during invocation through java, where I'm expecting a pdf byte stream. <br>
    <br>
    Instead i'm getting only html content. Which when I read through it, is nothing but the opendocument.jsp's source code.<br>
    <br>
    <B>Please find the java source code below.</B><br>
    <br>
              void readContent(String url) throws Exception, Exception{<br>
                   StringBuffer sb = new StringBuffer(url);
                   sb.append("&SM_USER=").append("USERID");<br>
    <br>               sb.append("&SM_SESSION=").append("fxdjmWRRN87gWfII3Bl//tUCgivgejevT29rnSInmXS05Hy8OZrVbzfxS7zLQbsceOX1NgPjBozft6GnYtLk7acHp6bom8pbgJrRXhlrB/okouB3LBoJl6oPf7eF/jj8CEYdsX5EhG/5MoK0YWrmIdWhjlmoixt0hHAdksm7S1rWlVSBhljv8KnjcFH7GA6QtP3TIPgSW1XaGhOiyUIMZL48av3f57KqXaAaw2dc32cJY28giWja2bGwQP/DcwMpuyHosZ1fKZVreoPHCKdvcYyV7jBZx0x68wacTBJgtBD1WdqdWmLwlA720xL8627LYNsbRtBPNHzCbjHQuA07iUVpwie8KuVfUL0bNloOejBX0idhkuRSKUEyWQOyvfXWaxL2rkZ/GRTsXzfTwUrUwqdoO6rDXGOPHFaLLdGd1VjBMZs5K6KAmpEs5lNf7CqBpCe5uG1J2QrxT5E7kqLRHBF1W2BN/AmqTpzvJoK5r7TXJZQVgGCcdnnZ9KLe5Zh8TED7VsU3DZCrXVOSol6dcbFQpqHozu0RVuOe5bQ4lfzgxtP0IdpjwAH4Sv6Bthf5/jujntxx6OjCl53GmtwN04e2ptf1UiBsN/MBClWXAMXW5WrtQEAyhp9Jcat2127AAkaEwFQEtPKoYa4Jg0GrzNZGHzj4UlqrWG9UeDAvGJ0GdZK4qrbkC6uPtn3ebMr/uHO90l4anrrSjWQYnKVjYNzCO4UUISYBy1aArFo73zEHz/ofdTCPk5FYSABGPTL2WnTEzOhvbHjI/y5ZZRAQVFgO38HhzhJvKr8TvF4sc/276UaMrjHf1UGL6ebB89UqKfLBrgzjvLLD3jZfX9R3N12fK0Z50rVFY/czb2Mui5s6VGnuEMcmoDAsUEjccmO4FhwswMW0KeBAPvc/2u6QJurxMPctBrDovV8FQSVhOLLGkzpeCUp4GlwDVEYYVRZY494xPi2hUmP4hsPafJ1s6HSTI/HmrH+I4oj90es4xjUBvTfALtWt5fSJbnF96Yes0vSGos4FuM908Bn/EK6CuOE8wAqLvmZvVVGZG12dvd");<br>
    <br>
               InputStream in = new BufferedInputStream(connection.getInputStream());<br>
    <br>
                   Reader r = new InputStreamReader(in);<br>
                   int c;<br>
                   while ((c = r.read()) != -1) {<br>
                     System.out.print((char) c);<br>
                   }<br>
         }<br>
    Edited by: Naaveen M on Apr 20, 2010 2:21 PM

  • R12 - How to customize the seeded Purchase Order PDF report

    Hi,
    We need to customize the layout AND the data of the seeded Purchase Order pdf report that is generated in PO Summary form when user picks drop-down menu Inquire->View Document. I know how to set up the Document Type with a customized layout but I do not know how to update the XML data that feeds the layout.
    Thanks, Mike

    Mike,
    Please review the following documents.
    Note: 374165.1 - How To Customize The PDF Output For Printed Purchase Order Report (Portrait) ?
    Note: 406094.1 - How To Diagnose Issues Within Oracle Purchasing PDF File Creation for Printing
    Regards,
    Hussein

  • Problem with deleting PDF report in "Vew Log / Trace" Section

    Hello everyone I just hired as a peoplesoft programmer :)
    I have a question when I try to code a report generating program
    I need to delete the PDF file (report) in "View Log/Trace"Section after the AE program executed.
    (Actually I just want to hide it at "View Log/Trace" Section, so that user will not be able to see it).
    The following program is my code
    &xmlStr = &inXMLDoc.GenXmlString();
    &strFilePath = %FilePath | "PAYSLIP_" | ZH_GPR068_AET.CAL_RUN_ID | "__" | ZH_GPR068_AET.PROCESS_INSTANCE | ".xml";
    &FileCS = GetFile(%FilePath | "PAYSLIP_" | ZH_GPR068_AET.CAL_RUN_ID | "__" | ZH_GPR068_AET.PROCESS_INSTANCE | ".xml", "W", "UTF8", %FilePath_Absolute);
    sRptDefn = "GPR0688_B";
    &oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(&sRptDefn);
    &oRptDefn.Get();
    &oRptDefn.UseBurstValueAsOutputFileName = True;
    &oRptDefn.SetRuntimeDataXMLFile(&strFilePath);
    &ftp = GetURL(URL.ZH_GPR068_PAYSLIP);
    &oRptDefn.ProcessReport("", &sLangCd, &AsOfDate, &sFileExt);
    &oRptDefn.ZHPrintOutput(%FilePath);
    &Return_Value = PutAttachment(GetURL(URL.ZH_GPR068_PAYSLIP), &sss | ".pdf", %FilePath | &sss | ".pdf");
    &conFileLog.WriteLine("PutAttachment Return Value:" | &Return_Value);
    If &Return_Value = 0 Then
    Local Record &ZH_PSLP_EE;
    &ZH_PSLP_EE = CreateRecord(Record.ZH_PSLP_EE_DATA);
    &ZH_PSLP_EE.EMPLID.Value = ZH_GPR068_AET.EMPLID;
    &ZH_PSLP_EE.CAL_RUN_ID.Value = ZH_GPR068_AET.CAL_RUN_ID;
    &ZH_PSLP_EE.ATTACHSYSFILENAME.Value = &ATTACHSYSFILENAME;
    &ZH_PSLP_EE.ATTACHUSERFILE.Value = &ATTACHUSERFILE;
    &ZH_PSLP_EE.Insert();
    End-If;
    /*Delete(hide) the report file*/
    Local JavaObject &javaFile;
    &javaFile = CreateJavaObject("java.io.File", %FilePath);
    &javaFile.delete();
    &tmpfile1 = GetFile(%FilePath | &ATTACHSYSFILENAME, "W", "UTF8", %FilePath_Absolute);
    &tmpfile1.Delete();*
    /*Delete(hide) the report file*/
    After the program executed, the pdf report still exist and not being removed in "View Log/Trace" Section
    &ATTACHSYSFILENAME already contain the PDF extension.
    I am hoping someone can help me to find out what's wrong with my program results in cannot delete the PDF file in the "Vew Log / Trace" Section
    Thank you so much
    Edited by: 969461 on Nov 5, 2012 1:41 AM

    Maybe there's something I don't get very well, but that's quite strange to make a user able to run a process without making him able to see the report, or at least the log.
    Anyway, I think it should be better to solve it through the config rather than changing code.
    Have a look to the red-paper below, page 57 :
    http://download.oracle.com/peopletools/documents/Securing_PSFT_App_Environment_May2010%20v4.pdf
    I may be wrong, but I'd tend to have a look first on the process definition, "Process Security", or on permission list (process monitor)...
    Nicolas.
    Edited by: N Gasparotto on Nov 5, 2012 12:51 PM

  • Pdf reports on webtoGo ? urgent plz

    Hi ,
    I developed a webtogo offline application and successfully generated the jasper pdf reports on local jdeveloper.Now i am publishing the same on olite server.
    The pdf report first save in /report folder and then open on popup in a new window(works fine on local machine with jdev).
    Now i have a doubt if the same works on server too?
    Does my code works or not?
    becoz i am getting some null pointer exception.The same code i have deployed which is working on local machine.
    error log:
    java.lang.NullPointerException
         at purchasing.pages._error._jspService(_error.java:54)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.JspRunner.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.include(Unknown Source)
         at oracle.jsp.runtime.OraclePageContext.include(OraclePageContext.java:514)
         at purchasing.pages._main._jspService(_main.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.JspRunner.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.MimeServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.forward(Unknown Source)
         at com.osi.sew.servlet.SEWControllerServlet.doDispach(SEWControllerServlet.java:89)
         at com.osi.sew.servlet.ReportServlet.doPost(ReportServlet.java:111)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at oracle.lite.web.JupServlet.service(Unknown Source)
         at oracle.lite.web.AppServletHandler.handle(Unknown Source)
         at oracle.lite.web.JupApplication.handle(Unknown Source)
         at oracle.lite.web.JupApplication.service(Unknown Source)
         at oracle.lite.web.JupHandler.handle(Unknown Source)
         at oracle.lite.web.HTTPServer.process(Unknown Source)
         at oracle.lite.web.HTTPServer.handleRequest(Unknown Source)
         at oracle.lite.web.JupServer.handle(Unknown Source)
         at oracle.lite.web.SocketListener.process(Unknown Source)
         at oracle.lite.web.ClientListener.process(Unknown Source)
         at oracle.lite.web.SocketListener$ReqHandler.run(Unknown Source)
    Thanks

    r.jsp ----------------- <%@ page contentType="text/html;charset=windows-1252"%> <% String path = com.osi.sew.utils.SEWConstants.SEW_KEYS.CONTEXT_PATH;%> <script type="text/javascript">
    function populateDetails(){
    var processKey = populateDetails.arguments[0];
    var args = populateDetails.arguments[1];
    var ajaxIndex = populateDetails.arguments[2];
    if(processKey == 'advisedby'){
    // <![CDATA[
    function display(obj,id1,id2,id3) {
    txt = obj.options[obj.selectedIndex].value;
    document.getElementById(id1).style.display = 'none';
    document.getElementById(id2).style.display = 'none';
    document.getElementById(id3).style.display = 'none';
    if ( txt.match(id1) ) {
    document.getElementById(id1).style.display = 'block';
    if ( txt.match(id2) ) {
    document.getElementById(id2).style.display = 'block';
    if ( txt.match(id3) ) {
    document.getElementById(id3).style.display = 'block';
    // ]]>
    var url1='<%=(String)request.getAttribute("jasperPrint")%>';
    function open_on_entrance()
    url1 = '<%=(String)request.getAttribute("jasperPrint")%>';
    if(url1 != null)
    window.open(url1, 'iuiu', 'menubar,resizable,status,width=900,height=550,left=30,top=30');
    window.onload = function(){
    if(url1 == 'null'){
    //alert('url is null');
    }else{
    open_on_entrance();
    </script>
    <form action="%3C%=path%20+%20">" method="post" id="reportForm" name="reportForm" &gt;
    <table width="540" cellspacing="0" cellpadding="2">
    <thead>
    <tr>
    <td class="title">Report Type:</td>
    <td class="field"><select name="reportName">
    <option>Please select:</option>
    <option value="vendorReport">Gate Pass - Material Return to Vendor</option>
    <option value="report2">Report 2</option>
    <option value="report3">Report 3</option>
    </select></td>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td class="align-center" colspan="2"><input type="submit" value="Submit" id="submit" name="submit" class='submit'>
    <input type="reset" value="Reset">
    </td>
    </tr>
    </tfoot>
    <tbody id="report2" style="display: none;">
    <tr>
    <td class="title">B'First Name:</td>
    <td class="field"><input type="text" name="fname" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">B'Last Name:</td>
    <td class="field"><input type="text" name="lname" size="15">
    </td>
    </tr>
    </tbody>
    <tbody id="report3" style="display: none;">
    <tr>
    <td class="title">G'First Name:</td>
    <td class="field"><input type="text" name="fname" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">G'Last Name:</td>
    <td class="field"><input type="text" name="lname" size="15">
    </td>
    </tr>
    </tbody>
    <tbody id="vendorReport" style="display: none;">
    <tr>
    <td class="title">PO Number:</td>
    <td class="field"><input type="text" name="poNumber" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">Receipt Number:</td>
    <td class="field"><input type="text" name="receiptNumber" size="15">
    </td>
    </tr>
    <tr>
    <td class="title">Advised By:</td>
    <td class="field">
    <div><input size="25" type="text" id="advisedBy" name="advisedBy">
    </div>
    <span id="spanEmp" name="spanEmp" class='hidespan'></span></td>
    </tr>
    <tr>
    <td class="title">Prepared By:</td>
    <td class="field">
    <div><input size="25" type="text" id="preparedBy" name="preparedBy">
    </div>
    <span id="spanEmp2" name="spanEmp2" class='hidespan'></span></td>
    </tr>
    </tbody>
    </table>
    </form>
    Servlet.java --------------------------------
    public class ReportServlet extends SEWControllerServlet { private static final String CONTENT_TYPE = "text/html; charset=windows-1252"; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String key4nav = request.getParameter(SEWConstants.SEW_KEYS.PARAM_KEY); System.out.println("key4nav..report servlet"+key4nav); String key4next = key4nav; System.out.println("key4next"+key4next); boolean statusFlag = false; JasperReport jasperreport; Connection conn = null; try { if(key4nav.equals(SEWConstants.MODULE_PURCHASING.REPORT)) { String submitBtn = request.getParameter("submit"); String reportName = request.getParameter("reportName"); String location = SEWLoggedInUser.getLocation(); Map parameters = new HashMap(); if(request.getParameter("reportName").equalsIgnoreCase("vendorReport")) { String poNumber = request.getParameter("poNumber"); String receiptNumber = request.getParameter("receiptNumber"); String advisedBy = request.getParameter("advisedBy"); String preparedBy = request.getParameter("preparedBy"); String reportPath= request.getRealPath("/reports"); String reportImagepath= request.getRealPath("/images"); System.out.println("reportImagepath&gt;&gt;"+reportImagepath); jasperreport = JasperCompileManager.compileReport(reportPath+ "/vendor_report.xml"); parameters.put("poNumber",poNumber); parameters.put("receiptNumber",receiptNumber); parameters.put("location",location); parameters.put("advisedBy",advisedBy); parameters.put("preparedBy",preparedBy); parameters.put("reportImagepath",reportImagepath); conn = SEWConnectionManager.getConnection(); // response.setContentType("application/pdf"); // response.setContentLength(0); // ServletOutputStream out = response.getOutputStream(); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperreport, parameters, conn); byte[] bytes= JasperExportManager.exportReportToPdf(jasperPrint); response.setContentType("application/pdf"); //response.addHeader("Content-Disposition", "inline;"); //open in current window response.setHeader ("Content-Disposition","attachment;filename=\"report.pdf\""); //open in new browser window response.setContentLength(bytes.length); ServletOutputStream ouputStream = response.getOutputStream(); ouputStream.write(bytes, 0, bytes.length); ouputStream.flush(); ouputStream.close(); if(conn!=null){ conn.close(); } }
    Here i am the report Image and report xml path using
    String reportPath= request.getRealPath("/reports");
    String reportImagepath= request.getRealPath("/images");
    Does this work on webtogo?How does it look for the location of reports folder and then the xml file?
    Can you tell me how you are getting pdf in your application
    Edited by: rbojja on Jul 14, 2009 1:01 PM
    Edited by: rbojja on Jul 14, 2009 1:02 PM
    Edited by: rbojja on Jul 14, 2009 8:42 PM

  • How to generate pdf report in swing

    Hello,
    can you help me?
    i want to generate pdf report in my swing based project but i don't know about any idea of this report generating
    procedure . Please help me.

    shesh_07 wrote:
    Hello,
    can you help me?Can you help yourself? Two suggestions I have for posting to a technical forum are:
    1) Add an upper case letter to the start of each sentence. This helps the reader to scan the text quickly, looking for the important parts. It also helps to dispel the impression that the writer is just lazy.
    2) Try to do some research on your own, summarise it and state any conclusions you have reached. Ask a specific question and generally, try not to sound so pathetic.
    i want to generate pdf report ..Search for [Java PDF|http://lmgtfy.com/?q=java+pdf] *(<- link).*
    Figure how to generate a PDF report in a class used from the command line, then..
    ..in my swing based project .....wrap a GUI around that class. For details on the latter, see the [Swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/] *(<- link).*
    ..but i don't know about any idea of this report generating
    procedure . Please help me.Please help yourself.

  • Crystal Report 11 PDF report display error in IE9, Chrome and Firefox 4

    Hi,
    We have developed a Java EE application using Crystal Server 11.0 (Copyright © 2004 Business Objects) to generate PDF reports. All working well for the past few years on IE6 and IE7 under Windows XP Pro until we started to upgrade to Windows 7 and IE9.
    When trying to run the reports it will have the error message as follow:
      File does not begin with '%PDF-%'.
        LocalEWH3zy-d@i4
    I also tested on Chrome and Firefox 4 under Windows XP and it got the same error message. It seems like the PDF generated by the aged Crystal Server have some issues with the latest browsers.
    Thanks.
    -Rong

    Hi Ted, thank you for your response, but the previous post is actually the result of IE6, which is working fine. I confused myself alone the way.
    Here is the result of Chrome. It says "Information is needed before this report can be processed". The Content-Type is PDF, but the browser is looking for something before accepting this PDF file. The PDF file itself is not in the response stream.
    Thanks.
    -Rong
    HTTP/1.1 200 OK
    Set-Cookie: VIEWINGCOOKIE=RCOOKIE=21502&apstoken=HHSBOCRDEV.MCGOV.ORG%4036895Jdmt8DE9K7cjit6v36893Juxw5UPgLytArc9W&promptonrefresh=0&language=en_US
    Content-Type: application/pdf
    Transfer-Encoding: chunked
    Date: Thu, 06 Oct 2011 14:20:17 GMT
    Server: Apache-Coyote/1.1
    bd
    A�=�6Information is needed before this report can be processed.�A� � A�  pl�Enter p:����  ������ ���B� � A� � A�Iapstoken�HHSBOCRDEV.MCGOV.ORG@36895Jdmt8DE9K7cjit6v36893Juxw5UPgLytArc9W�B �
    0

  • How to automatically attached multiple PDF reports to an e-mail and send

    Hello.
    I have a requirement to generate multiple PDF reports using Oracle Reports 6i on the web, then automatically attach these PDF reports to an Outlook e-mail and then bring up the Outlook e-mail dialog box so the user can modify the e-mail (such as adding more attachments, adding a CC, BC, change the message text) before sending the e-mail. I want to be able to initiate all these tasks from Oracle webforms 6i in a three-tier environment.
    I have already read various notes and solutions but none of them address all my requirements. Examples:
    1. Using OLE to interface with Outlook - but OLE does now work on the Web
    2. Using Java stored procedure or UTL_SMTP - but this does not bring-up an e-mail dialog box
    3. Using mailto: in HTML and web.show_document - but this does not allow you to attach a PDF file
    Can you please advise on possible solutions to my requirements. Thank you very much.
    Regards,
    Armando

    Here is a great resource for sending binaries.
    http://otn.oracle.com/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    You'll want to use utl_http to run each report with a destype=file and then have another procedure running to check to see when all of your reports have finished. After they are finished, you would run the stored procedure to get all of the binaries, attach them in an email and then send it.
    If you want to concate all of the PDF files into one large file, you can do this with a Java stored procedure using iText.
    http://www.lowagie.com/iText/

  • Exception while generating pdf report using Jasper Report

    Hi experts,
    I am using Jdeveloper : 11.1.2.0.0
    Jaspersoft iReport Designer 4.5.0
    Database is Oracle 11g
    When i try to generate a pdf report ,a pdf file with empty content is generating.
    and exception occuring is
    net.sf.jasperreports.engine.JRException: Error executing SQL statement for : TestReport
         at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:229)
         at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:731)
         at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:629)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1159)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:802)
         at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746)
         at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
         at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
         at com.empAppln.view.EmployeeRegister.runReport(EmployeeRegister.java:153)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
         at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:124)
         at oracle.adfinternal.view.faces.event.rich.FileDownloadActionListener.processAction(FileDownloadActionListener.java:77)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:814)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:924)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
         at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:222)
         ... 62 more
    Where TestReport is the name of the report...
    How can i solve this..
    Thanks
    gtg.

    from the error what i understud means.com.empAppln.view.*EmployeeRegister*
    this table is not exits in db. so throw error like this.
    table or view does not exist.and also,
    Stop filedownload if file is empty
    Edited by: ADF 7 on Jan 26, 2012 11:17 PM

  • How can you create a pdf report to attach to an email?

    I have a need to create a PDF report with graphics and signature and somehow attached the PDF document to and email to send out. This is all hopefully done in my APEX application. Has anyone done anything similar?

    I have several projects that use PL/PDF - with the pdf form filling API's - to populate pdf form and then attach the output to a BLOB variable in PL/SQL - which can then be attached to e-mail, displayed to user's browser, and saved into a BLOB column in a table. If you are comfotable with coding PL/SQL packages, this is not difficult to do at all.
    The goodness of PL/PDF is that it is composed of PL/SQL packages with some wrapped Java programs - the output is generated directly from the database. You don't need to deal with the complexity and security concerns of calling an external Java middle tier to return the document. However, if you are not comfortable with PL/SQL coding, this may be a lot of work because the software does not have a report designer like Oracle BI Publisher, which costs more than $90K to run on a 2-CPU Server.
    Thanks.
    Andy

  • Pdf report not saving in to the local system

    Hi,
    I am facing some issue with PDF report. We have written code to generate PDF report using java to generate the report we have used the jasper API. We were able to generate the pdf report and we have written a code to appear the ��save as�� dialog box (to save the PDF report). In the ��Save As�� dialog box---��in the ��Save as type�� dropdown box there is no tag for *.pdf.
    Also if are giving manually some temp.pdf as the file name also it is saving on to local machine.
    Please kindly post the solutions.
    The java script code is:
    var myWin = window.open('temp.pdf', , 'left=5000,ScreenX=5000');
              myWin.document.execCommand('SaveAs',true, 'temp.pdf');
              myWin.close();

    That is not his problem. He want to force the client to automatically save the file and lock the filename somehow.
    That, fortunately, is not possible. Him is also been told that here: http://forum.java.sun.com/thread.jspa?threadID=5185876

  • How to embed images in PDF reports - help!

    i have gone through the demo at http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt2_otn.htm and this works fine UNLESS the image is bigger than say 8Kb.
    How do i accomplish embedding an image in a PDF report if these images are (substantially) bigger??
    I have tried asking this on this forum a number of times with no success. Is there ANYONE out there that can help me in this urgent matter?
    Any help would be venerated.
    regards,
    stafford

    Before entering into XSL-FO, I would strongly advise using XML-Spy or a similar product to check the validity of the XSL-FO code.
    Also, I found the process to be highly iterative, building up the XSL-FO piece by piece. For this purpose I created a test harness in which I could enter the XML data and the FO sheet and generate the PDF outside of Apex. This saved quite a lot of time as I did not have to delete the report query each time I wanted to apply a change.
    Anyway heres the XSL-FO for a letter generated by the system.
    I use a bit map for a logo, I checked the size of it and it is 56k.
    I'll submit a further post with the test harness.
    Also, let me know if you need help installing FOP.
    Cheers
    Paul
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ora="http://www.oracle.com/XSL/Transform/java/" xmlns:xdofo="http://xmlns.oracle.com/oxp/fo/extensions" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions" xmlns:xdoxliff="urn:oasis:names:tc:xliff:document:1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master1" page-height="29.7cm" page-width="21cm" margin-top=".5cm" margin-bottom=".5cm" margin-left="1cm" margin-right="1cm">
    <fo:region-before region-name="region-header" extent="0cm"/>
    <fo:region-body region-name="region-body" margin-top="1cm" margin-bottom="1cm"/>
    <fo:region-after region-name="region-footer" extent="2cm" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block>
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Gov Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">A Unit</fo:block>
    <fo:block padding="15pt"></fo:block>
    <fo:block>
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/>
    </fo:block>
    <xsl:for-each select="//ROWSET4/ROWSET4_ROW">
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL" />/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    <fo:block>
    <xsl:for-each select="//ROWSET1/ROWSET1_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    <fo:block padding-top="15pt">
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_TELNO'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_EMAIL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="140pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Our ref: <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>Date: <xsl:value-of select="//ROWSET3/ROWSET3_ROW/TODAY" xdofo:field-name="TODAY"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <!--
    -->
    <fo:block padding-top="20pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Dear <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row padding-top="10pt">
    <fo:table-cell text-align="center">
    <fo:block>EGG MARKETING REGULATIONS - EGG PRODUCTION SITE ID APPROVAL - <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>I am writing to inform you that your production facility at</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row space-after="4pt">
    <fo:table-cell>
    <xsl:for-each select="//ROWSET5/ROWSET5_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block padding-after="5pt">has been accepted. Your production site has been allocated the following code(s)</fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding="10pt" margin="10pt" >
    <xsl:for-each select="//ROWSET8/ROWSET8_ROW">
    <fo:table>
    <fo:table-column column-width="270pt"/>
    <fo:table-column column-width="270pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_7"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_SCO"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>What the numbers mean</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>0UK - "Organic" production system permitted to use the marketing term "Organic Eggs".</fo:block>
    <fo:block>1UK - "Free Range" production system permitted to use the marketing term "Free Range Eggs".</fo:block>
    <fo:block>2UK - "Barn" production system permitted to use the marketing term "Barn Eggs".</fo:block>
    <fo:block>3UK - "Cage" production system permitted to use the marketing term "Eggs from Caged Hens".</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>The number located between the UK and SCO is tyour unique production site code. The SCO and or 7 suffiix denotes that the production site is located in Scotland.</fo:block>
    </fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block space-after="30pt">
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Rural Payments and Inspections Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">Eggs and Poultry Unit</fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL"/>/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Stamping</fo:block>
    <fo:block space-after="10pt">All Grade A eggs must be stamped with the relevant producer code. Failure to do so would render the eggs unmarketable for human consumption.</fo:block>
    <fo:block font-weight="bold" space-after="5pt">Records</fo:block>
    <fo:block space-after="5pt">Records <fo:inline font-weight="bold">MUST</fo:inline> be kept for <fo:inline font-weight="bold" text-decoration="underline">EACH HOUSE</fo:inline> showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of housing and the number of birds placed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The age of birds at the time of housing</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Mortality figures for the life of the flock</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of the depletion and numbers depleted</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The number of eggs produced and forwarded to egg packing centres</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block space-after="5pt">Where feed claims are made records <fo:inline font-weight="bold">MUST</fo:inline> be kept showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The use of the feed claim</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Quantities of feed used</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Type of feed supplied of mixed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Source of the feed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Date(s) of delivery</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Notification of Changes</fo:block>
    <fo:block space-after="10pt">You are required to inform this Government Department, without delay, of any changes concerning registered data supplied in your original application, including additional housing and/or birds.</fo:block>
    <fo:block padding-top="30pt">
    </fo:block>
    <fo:block space-after="40pt">Yours sincerely</fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_OFFICER" xdofo:field-name="RPID_OFFICER"/></fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_JOB_TITLE" xdofo:field-name="RPID_JOB_TITLE"/></fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  • PDF report : glibc detected *** free(): invalid pointer

    We are having an running a PDF report concurrent program - After a while it errors out with the following message.
    emsg:was terminated by signal 6
    Enter Password:
    *** glibc detected *** free(): invalid pointer: 0x0847b6d8 ***
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jan 15 13:22:11 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4459737.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    We see this issue in all the cloned instances. In Production system also it errors out with a different error message as below.
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb68b6745, pid=21709, tid=2377784224
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libca.so.0+0x13745] cadckgt+0xa5
    # An error report file with more information is saved as hs_err_pid21709.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    I ran ACTIVE USERS with PDF output option. That completed successfully though.
    Any ideas ?

    Hi,
    We are having an running a PDF report concurrent program - After a while it errors out with the following message.Is this a standard or custom concurrent program?
    Do you get any error if you change the report type to Text/PostScript?
    emsg:was terminated by signal 6
    Enter Password:
    *** glibc detected *** free(): invalid pointer: 0x0847b6d8 ***
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jan 15 13:22:11 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4459737.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...I would suggest you enable trace/debug and see if more details about the error are collected in the logs.
    We see this issue in all the cloned instances. In Production system also it errors out with a different error message as below.
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xb68b6745, pid=21709, tid=2377784224
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libca.so.0+0x13745] cadckgt+0xa5
    # An error report file with more information is saved as hs_err_pid21709.logCan you find any details about the error in this log file?
    I ran ACTIVE USERS with PDF output option. That completed successfully though. Does this mean that the issue is only with custom PDF concurrent programs?
    Regards,
    Hussein

  • Pdf report..need argent help pls....

    hi everybody,
    Pls. tell me some solution of this problem i am really tired with this problem.I am using iText for pdf report.And using table in the report.But if i am printing 2 or 3 records,it's working fine but if i am printing record directly for database,it show me this error...
    ExceptionConverter: java.io.IOException: The document has no pages.
         at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown Source)
         at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
         at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
         at com.lowagie.text.Document.close(Unknown Source)
         at org.apache.jsp.Noname1$jsp._jspService(Noname1$jsp.java:160)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:534)
    and here is my code:
    <%     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         conn = DriverManager.getConnection ( "jdbc:odbc:unsoda_project" ,"unsoda_webproject" ,"project");
    str="select * from general_soil where FAMILY like 'sandy, mixed frigid Pachic Haplaboroll'";
         pst3 = conn.prepareStatement(str);
         rs3 = pst3.executeQuery();
    Document document = new Document();
    try {
    PdfWriter.getInstance(document, new FileOutputStream("test1.pdf"));
    document.open();
    Table datatable = new Table(13);
    datatable.setPadding(4);
    datatable.setSpacing(0);
    Cell cell = new Cell(new Phrase("UNSODA DATABASE",FontFactory.getFont(FontFactory.HELVETICA, 24, Font.BOLD)));
    cell.setHorizontalAlignment(Element.ALIGN_CENTER);
    cell.setLeading(30);
    cell.setColspan(13);
    cell.setBorder(Rectangle.NO_BORDER);
    cell.setBackgroundColor(new Color(0xC0, 0xC0, 0xC0));
    datatable.addCell(cell);
                   datatable.setDefaultCellBorderWidth(2);
    datatable.setDefaultHorizontalAlignment(Element.ALIGN_CENTER);
    datatable.setDefaultColspan(13);
                   datatable.addCell("GENERAL PROPERTIES");
                   datatable.setDefaultCellBorderWidth(2);
    datatable.setDefaultHorizontalAlignment(1);
                   datatable.setDefaultRowspan(1);
    datatable.setDefaultColspan(1);
    datatable.addCell("Family");
    datatable.addCell("Series");
    datatable.addCell("Texture");
                   datatable.addCell("Structure");
    datatable.addCell("Depth Upper");
    datatable.addCell("Depth Lower");
                   datatable.addCell("Horizon");
                   datatable.addCell("Depth GWater");
                   datatable.addCell("Location");
                   datatable.addCell("Site ID");
                   datatable.addCell("Annual Rain");
                   datatable.addCell("Avg Temp in Jan");
                   datatable.addCell("Avg Temp in Jul");
                   datatable.endHeaders();
                   datatable.setDefaultCellBorderWidth(1);
    datatable.setDefaultRowspan(1);
                   while(rs3.next()){
                        datatable.addCell(rs3.getString("family"));
                        datatable.addCell(rs3.getString("Series"));
                        datatable.addCell(rs3.getString("Texture"));
                        datatable.addCell(rs3.getString("Depth Upper"));
                   datatable.addCell(rs3.getString("Depth Lower"));
                        datatable.addCell(rs3.getString("Horizon"));
                        datatable.addCell(rs3.getString("Depth GWater"));
                        datatable.addCell(rs3.getString("Location"));
                        datatable.addCell(rs3.getString("Site ID"));
                        datatable.addCell(rs3.getString("Annual Rain"));
                        datatable.addCell(rs3.getString("Avg Temp in Jan"));
                        datatable.addCell(rs3.getString("Avg Temp in Jul"));
                   document.add(datatable);
    catch(Exception e) {
    e.printStackTrace();
    document.close();
    %>
    pls. tell me some solution.
    Thanks
    Sonika

    I found a solution to this problem. You need to 'fragment' your table the following way:
    Add the existing table to the document (after, say, 50 rows)
    Remove all rows from the existing table
    Set skipFirstHeader() to true (or the header will repeat)
    Add new rows to the table until you hit the threshhold
    At the end, add the final table fragment to the documentThe issue apparently stems from memory management within i-Text and the amount of data that can be held in a stream. You can find a code example at:
    http://itext.sourceforge.net/examples/com/lowagie/examples/objects/tables/pdfptable/FragmentTable.java
    Happy rendering.
    - Saish

Maybe you are looking for

  • I have restored my I phone 5c to an I phone 4s how do I get it back to 5c

    I have hit restore in iTunes when setting up my new I phone 5c and restored it with my old I phone 4s how do I get it back to 5c settings

  • Midi to usb. Microphone

    so i have a casio plugged into my garageband via a midi to usb cord, and when i try to record it won't record any sound unless the microphone is on, which of course has horrible quality. then when i turn the microphone off it doesn't register that it

  • How can I have more version of REVERT TO in Pages?

    I have lost my work on 3.30 then I try to find it but there are my work on 12.30am and 4.00pm when I browse all version by REVERT TO. How can I have more version​s because the two version of my work which I can get are same? I closed my work and I ha

  • License Exception connecting to MS SQL 7 - JDBC

    I downloaded the trial version of WebLogic Server and the JDBC driver for MS SQL Server. When I try to use the driver to connect to the database in straight java application, not in WLS, and I get an exception. java.sql.SQLException: java.sql.SQLExce

  • Powerpoint 2004 on Mac OS X problems since Security Update 11.2.3

    I have a Mac OS X v. 10.3.9 Since the last Security Update 11.2.3 for Office 2004 , I started to have problems only with Powerpoint 2004. I can't open .ppt or pps documents that were working before neither I can't save new projects. I get Error Signa