Trying to generate a pdf with jasper

Fellas,
i hav trying to generate a pdf with jasper reports, but i cant. I create a file .jasper with iReports. This is my code:
emite.java
package utilitarios;
//import net.sf.jasperreports
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.view.JasperViewer;
import java.sql.*;
import java.util.*;
import javax.swing.*;
import java.util.HashMap;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class emitebl {
private static Connection getConnection( ) throws ClassNotFoundException, SQLException{
String driver = "org.postgresql.Driver";
String url = "jdbc:postgresql://localhost/sist";
String user = "usuario";
String password = "";
Class.forName(driver);
Connection con = DriverManager.getConnection( url, user, password );
return con;
public void geraRelatorio( ) throws JRException, Exception{
Connection con = getConnection( );
Statement stm = con.createStatement( );
String query = "SELECT * FROM emissaobl WHERE id=4";
ResultSet rs = stm.executeQuery(query);
JRResultSetDataSource jrRS = new JRResultSetDataSource(rs);
Map parameters = new HashMap();
JasperFillManager.fillReportToFile("emitebl.jasper",parameters,jrRS);
JasperExportManager.exportReportToPdfFile("emitebl.jrprint");
JasperViewer.viewReport("emissao_bl.pdf",false);
}emissao.jsp:
<%@ page import="utilitarios.*" %>
<%
new emitebl().geraRelatorio();
%>Following the error message exception:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: emitebl.jasper
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
root cause
net.sf.jasperreports.engine.JRException: emitebl.jasper
net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:73)
net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:270)
utilitarios.emitebl.geraRelatorio(emitebl.java:37)
org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:54)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)where i hav to put the .jasper file?

import java.io.*;
import java.net.*;
import java.sql.*;
import java.util.*;
import java.sql.*;
import java.io.File;
import java.util.Date;
import net.sf.jasperreports.engine.*;
import net.sf.jasperreports.view.JasperViewer;
class dbAccessi
          public static void main (String args []) throws SQLException
                    try{
                         //DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
                                   Class.forName ("oracle.jdbc.driver.OracleDriver");
                         Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.236.8.49:1521:heb","hebuser","hebpass");
     // @machineName:port:SID, userid, password
                                   int i=0,j=0;
                         Statement stmt = conn.createStatement();
                         ResultSet rs = stmt.executeQuery("select age,name from java1");
                                   while (rs.next())
                              System.out.println (rs.getString(1));
                              System.out.println (rs.getString(2));
                              JRResultSetDataSource jrRS = new JRResultSetDataSource(rs);
                                        Map parameters = new HashMap();
                                        JasperFillManager.fillReportToFile("newone.jasper",parameters,jrRS);
                                        JasperExportManager.exportReportToPdfFile("emitebl.jrprint");
                                        JasperViewer.viewReport("emissao_bl.pdf",false);
                                   rs.close();
                                   stmt.close();
               conn.close();
                         catch(Exception e)
                              e.printStackTrace();
for the above given code, I got error message when i run the code as a standalone in cmd prompt and the jasper file specified(may be error occured in .jasper file) could please send the req jasper file to load it.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lo
gging/LogFactory
at net.sf.jasperreports.engine.fill.JRFillDataset.<clinit>(JRFillDataset
.java:72)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.jav
a:443)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi
ller.java:92)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFi
ller.java:74)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:
113)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:428)
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(Jasper
FillManager.java:319)
at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(Jasper
FillManager.java:275)
at dbAccessi.main(dbAccessi.java:30)
thanks in advance

Similar Messages

  • Trying to generate a pdf with jasper reports

    Fellas,
    i hav trying to generate a pdf with jasper reports, but i cant. I create a file .jasper with iReports. This is my code:
    emite.java
    package utilitarios;
    //import net.sf.jasperreports
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.view.JasperViewer;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    import java.util.HashMap;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class emitebl {
    private static Connection getConnection( ) throws ClassNotFoundException, SQLException{
    String driver = "org.postgresql.Driver";
    String url = "jdbc:postgresql://localhost/sist";
    String user = "usuario";
    String password = "";
    Class.forName(driver);
    Connection con = DriverManager.getConnection( url, user, password );
    return con;
    public void geraRelatorio( ) throws JRException, Exception{
    Connection con = getConnection( );
    Statement stm = con.createStatement( );
    String query = "SELECT * FROM emissaobl WHERE id=4";
    ResultSet rs = stm.executeQuery(query);
    JRResultSetDataSource jrRS = new JRResultSetDataSource(rs);
    Map parameters = new HashMap();
    JasperFillManager.fillReportToFile("emitebl.jasper",parameters,jrRS);
    JasperExportManager.exportReportToPdfFile("emitebl.jrprint");
    JasperViewer.viewReport("emissao_bl.pdf",false);
    } emissao.jsp:
    <%@ page import="utilitarios.*" %>
    <%
    new emitebl().geraRelatorio();
    %>Following the error message exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: emitebl.jasper
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    root cause
    net.sf.jasperreports.engine.JRException: emitebl.jasper
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:73)
         net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:270)
         utilitarios.emitebl.geraRelatorio(emitebl.java:37)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:54)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)where i hav to put the .jasper file?

    Hi,
    If you have placed your .jrxml file say in C:\reports, and when you use compileReportToFile(jrxmlFileName), then the jasper file will be created in the same directory C:\report with the same file name with .jasper extension. If you want a pdf report then specify the same location and file name with '.pdf' extension as destination .
    Hope this helps

  • Trying to create a pdf with jasper - Content is not allowed in prolog

    hi all,
    Im trying to create a pdf file with jasper reports but i get this error message:
    29/11/2007 16:52:03 org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.commons.digester.Digester.parse(Digester.java:1666)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.loadXML(JRPrintXmlLoader.java:151)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.load(JRPrintXmlLoader.java:103)
         at net.sf.jasperreports.view.JRViewer.loadReport(JRViewer.java:1376)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:243)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:214)
         at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:140)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:397)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:328)
         at br.com.abril.contratos.Gerar.geraRelatorio(Gerar.java:38)
         at br.com.abril.contratos.Gerar.main(Gerar.java:47)

    cause of the error:
    After some extensive research on the web, it is found that that you are using an UTF-8 encoded file with byte-order mark (BOM). Java doesn't handle BOMs on UTF-8 files properly, making the three header bytes appear as being part of the document. UTF-8 files with BOMs are commonly generated by tools such as Window's Notepad. This is a known bug in Java, but it still needs fixing after almost 8 years...
    There are some hexadecimal character at the begining of the file, which is giving error"content not allowed in prolog". No solution is provided for this till now.
    Example: suppose your file start with <?xml version="1.0" encoding="utf-8"?>. you will see this in a editor. But if you open this file with any hexadecimal editor you will find some junk character in the start of the file.that is causing the problem
    solution:
    1) convert your file into a string and then read the file from the forst character that in my case the first character will be "<".so the junk character will not be there in the string and then again convert it into a file.
    2) some people are able to solve this problem by changing the "utf-8" to "utf-16". remember only in some case. some times this problem also exits in "utf-16" file.
    3) some are able to solve this problem by changing the LANG to US.en.
    4) If the first three bytes of the file have hexadecimal values EF BB BF then the file contains a BOM.so you can also handle by your own.
    5)Download a hexadecimal editor and remove the BOM.
    6) In case you are not able to think furthe then please to more research in internet may be you find some other solution to this problem. But These solution are some type of hack not exactly a solution.

  • Trying to create a pdf with jasper - Parse Fatal Error at line 1 column 1:

    29/11/2007 16:52:03 org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.commons.digester.Digester.parse(Digester.java:1666)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.loadXML(JRPrintXmlLoader.java:151)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.load(JRPrintXmlLoader.java:103)
         at net.sf.jasperreports.view.JRViewer.loadReport(JRViewer.java:1376)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:243)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:214)
         at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:140)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:397)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:328)
         at br.com.abril.contratos.Gerar.geraRelatorio(Gerar.java:38)
         at br.com.abril.contratos.Gerar.main(Gerar.java:47)

    The XML file that you're reading has something before the first line - either a comment, whitespace, or other characters. The first characters of your XML file MUST be the XML declaration:
    <?xml ...
    If there's anything before that angle bracket it's not valid XML.

  • Keep getting an access denied window when trying to print to PDF with Adobe Acrobat X with any prgram/internet except for adobe programs

    I am trying to print to PDF from Word, Revit, Firefox and all have given me a Access Denied window popup and would cancel the print.  I have Adobe Acrobat X and Creative Design Suite 6.

    So you are trying to print to the Adobe PDF printer? What is the full statement of the error (typically it indicates a folder or such does not allow access)? If you open Distiller, are there settings files available that you can view?
    In the print menu, select print to file. Then open this file in Distiller. What happens with these two steps and do you get a PDF after the second step?

  • Automate workbook to generate in PDF with prompts

    Hello All,
    I have two requirements :
    First:
    I have date selection in prompt, i need that to be automated. It should throw the result current date (08-07-2014) minus 1.
    (Last day data 06-07-2014 - 07-07-2014)
    Second :
    Possibility to export AAO workbook in PDF automatically.
    Is it possible?
    Kind Regards
    MD

    Hello - are you asking about Analysis Office or OLAP?
    This was posted in the Analysis OLAP space.
    On this:
    Manna Das wrote:
    First:
    I have date selection in prompt, i need that to be automated. It should throw the result current date (08-07-2014) minus 1.
    (Last day data 06-07-2014 - 07-07-2014)
    I would do this in the BEx query - BEx is good at doing this today.
    Second :
    Possibility to export AAO workbook in PDF automatically.
    Is it possible?
    Analysis OLAP does this today with the Export function
    If you are trying to do this in Analysis Office, where I work, we have PDF set up as a printer, and it does the same thing.

  • Problem displaying PDF with Jasper Reports

    I have the following code that loads a report and displays it in PDF format:
    if(jasperReport==null) {
         logger.debug("Loading...");
         InputStream inStream = null;
         try {
              inStream = getServletContext().getResourceAsStream("/WEB-INF/reports/UnitReport.jasper");
              logger.debug("got inStream");
              jasperReport = (JasperReport) JRLoader.loadObject(inStream);
              logger.debug("Loaded compiled report");
         } catch(Exception e) {
              logger.error(e.getMessage(),e);
         } finally {
              try { inStream.close(); } catch(Exception e) {}
              logger.debug("closed");
    OutputStream outStream = null;
    Connection conn = null;
    try {
         logger.debug("Start build");
         LoginInfo lInfo = (LoginInfo) request.getSession().getAttribute("LoginInfo");
         logger.debug("got name: " + lInfo.getFullName());
         String unitID = (String) request.getParameter("unitID");
         response.setContentType("application/pdf");
         outStream = response.getOutputStream();
         logger.debug("set content type & got OutputStream");
         JRExporter exporter = new JRPdfExporter();
         logger.debug("new exporter");
         conn = DBConnection.getDBConnection();
         logger.debug("got connection");
         //Setup parameters
         Map<String, Object> params = new HashMap<String, Object>();
         params.put("unitID", new Long(unitID));
         params.put("userName", lInfo.getFullName());
         if(debug) {
              logger.debug("set parameters: ");
              logger.debug("  Unit ID:    " + unitID);
              logger.debug("  User Name:  " + lInfo.getFullName());
         JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, conn);
         logger.debug("built report");
         exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
         exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outStream);
         logger.debug("set output parameters");     
         exporter.exportReport();
         logger.debug("dumped.");
    } catch(Exception e) {
         logger.error(e.getMessage(),e);
    } finally {
         try {outStream.close(); } catch(Exception e) {}
         try {conn.close(); } catch(Exception e) {}
         logger.debug("cleanup done.");
    }This works fine locally but when I deploy the EAR file to the production server I get the following:
    [5/19/08 20:55:36:730 CDT] 00000045 SystemOut     O 20:55:36.730 DEBUG JasperReports.doGet:42 - Start
    [5/19/08 20:55:36:730 CDT] 00000045 SystemOut     O 20:55:36.730 DEBUG JasperReports.doGet:49 - reportID: randdunitreport
    [5/19/08 20:55:36:746 CDT] 00000045 SystemOut     O 20:55:36.746 DEBUG JasperReports.doGet:56 - Loading...
    [5/19/08 20:55:36:746 CDT] 00000045 SystemOut     O 20:55:36.746 DEBUG JasperReports.doGet:62 - got inStream
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:64 - Loaded compiled report
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:71 - closed
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:77 - Start build
    [5/19/08 20:55:37:168 CDT] 00000045 SystemOut     O 20:55:37.168 DEBUG JasperReports.doGet:85 - set content type & got OutputStream
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:88 - new exporter
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:91 - got connection
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:98 - set parameters:
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:99 -   Unit ID:    6472
    [5/19/08 20:55:37:246 CDT] 00000045 SystemOut     O 20:55:37.246 DEBUG JasperReports.doGet:100 -   User Name:  Fred Smith
    [5/19/08 20:55:37:996 CDT] 00000045 SystemOut     O 20:55:37.996 ERROR JasperReports.doGet:114 - Error loading object from URL : file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MOMWEBNode01Cell/ClaimProEAR.ear/ClaimPro.
    war/WEB-INF/classes/
    net.sf.jasperreports.engine.JRException: Error loading object from URL : file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MOMWEBNode01Cell/ClaimProEAR.ear/ClaimPro.war/WEB-INF/classes/
            at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:145)
            at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:264)
            at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:308)
            at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:257)
            at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)
            at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:426)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1380)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:692)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255)
            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:113)
            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:895)
            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:798)
            at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)
            at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)
            at com.scag.claimpro.servlet.JasperReports.doGet(JasperReports.java:103)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
            at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:501)
            at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
            at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3252)
            at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:264)
            at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
            at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
            at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
            at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
            at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
            at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
            at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
            at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
            at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
            at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
            at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
            at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
            at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    Caused by:
    java.io.StreamCorruptedException: invalid stream header
            at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:778)
            at java.io.ObjectInputStream.<init>(ObjectInputStream.java:291)
            at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:140)
            ... 35 more
    [5/19/08 20:55:37:996 CDT] 00000045 SystemOut     O 20:55:37.996 DEBUG JasperReports.doGet:118 - cleanup done.UnitReport contains 2 subreports and works just fine on my local server. Am I missing something here or doing something wrong...any help is greatly appreciated.
    Thanks,
    -Jeff

    How will u convert the document to PDF via XML if the document contains the chart.
    If u have done this please send the code to me on "[email protected]"
    Thanks in advance
    nitish

  • How can i generate a pdf with an XFA form input ?

    I am creating a process, in which xfa form variable flows through workflow. When i use any solution components like Reader Extension, Content Management....it needs pdf as input.....so i need to convert xfa form variable into pdf ....i am not able to do that .....can u please suggest any solution in description........
    Thanks in Advance....

    Hi,
    For details on input/output of RenderPDFForm operation. Please refer to
    http://livedocs.adobe.com/livecycle/8.2/wb_help/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Workbench_ES&file=000614.html#1552381
    You can also use Render PDF Form process for the same.
    http://livedocs.adobe.com/livecycle/8.2/wb_help/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=Workbench_ES&file=000686.html
    Thanks

  • Print book to PDF with 8 by 11 and 11 by 17 pages in same book?

    Hello,
    I am using FrameMaker 8 (Structured Mode) and am trying to generate
    a PDF with both 8 1/2 by 11 and 11 by 17 pages in the same book.
    The 8 1/2 by 11 inch pages work good, but the 11 by 17 inch pages are generating as 11 by 8 1/2 (landscape view).
    Is there an easy way to get my foldout drawings to come into my book (with the correct dimensions, when there are also 8 1/2 by 11 inch pages in the same book?
    Thanks in advance.
    Jim

    James,
    When you generate the book, you must select the largest sheet size
    used in the book, i.e. 11x17. FM then outputs the all of the pages
    centred on this sheet and if using SaveAsPDF (or enabling Generate
    Acrobat Data when printing), will automatically crop the pages to the
    appropriate size(s).

  • When trying to generate pdf file from firefox 7.0.1 , getting corrupt content error, used to work with previous versions of firefox

    We have done toleration testing on firefox version 5 thru 6 and haven't got an issue with our website generating pdf files for our users. One of our users upgraded to firefox version 7.0.1 and they tried to generate a pdf report, now a screen pops up with Corrupted Content Error The page you are trying to view cannot be shown because an error in the data transmission was detected. I recreated this issue on my pc yesterday by installing firefox 7.0.1. Any hints as to what I need to look at would help. Cannot provide the url because it is a secure website for law enforcement. Thanks.

    You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
    Hi Mark,
    See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • RoboHelp/RoboPDF freezes when trying to generate PDF printed documentation

    Hi,
    I am using RoboHelp HTML X5.0.2 build 801 with Win2k and Word
    2000. Whenever I try to generate printed documentation in PDF
    format RoboHelp freezes and doesn't respond until I kill the
    program. I also tried first generating the printed documentation in
    MS Word .doc format and then tried to generate the PDF from within
    Word. RoboPDF kicks in this time and freezes along with MS Word.
    Any ideas why this is happening?

    It works on anything we throw at it. You could try the
    supplied sample projects.
    Have you tried creating a document directly in Word and
    creating a PDF from that?
    Where is you normal template stored? Locally?
    Take a look at Snippet 33 on my site. You should be getting
    an error message if that is the problem but it might be worth
    checking the path anyway.
    Click
    here.
    If that does not fix it, email me offline.

  • Is it possible to generate PDF with "enable for commenting" from AI?

    I am using Illustrator CS5 and have Acrobat 9 Pro on a Mac. I would like to generate PDF's with "enabled for commenting" feature on.
    I was able generate a PDF from CS5 -> open it in Acrobat 9 Pro -> enable commenting -> Save as new PDF
    I prefer to skip the above mannual step and generate the PDF with commenting enabled directly from Illustrator. Any ideas?

    Acrobat 9 Pro doesn't support batch processing to "enable for commenting" feature. I can batch generate the PDFs from AI but will have to manually convert each PDF using Acrobat 9 Pro....(sucks!!!)
    Another option is that I get a Acrobat 9 Pro for Windows - install LiveCycle - tranfer my AI generated PDFs (mac) to windows and use batch processing feature of LiveCycle to convert the PDFs into "enable for commenting" (sucks less!!!)
    I would love to hear any other option available.

  • Generate a PDF from Excel with a Digital Signature Field?

    Hello,
    I have an excel workbook that is filled out weekly- I then have to generate a PDF with a digital signature field for a manager to sign (vouching for the data).  I currently have to manually generate the PDF and then manually add a digital signature field.  Is there any way to generate the PDF from excel with a digital signature field that can then be signed?
    Thanks for any help
    -Nathan

    Moved to Acrobat forum.

  • Unable to generate a PDF file for 1 of 3 books

    I'm making three documents (books) in FrameMaker and then converting to PDF. The first two books generated to PDF with no "major" problems. There were a couple of glitches here and there but most were simply operator error. This forum solved two of my problems.
    Now, with the third book, I can't generate the PDF and get error messages in the log file. I've gone back and triple checked everything and can't find a thing that's different between this last book and the first two. I've used the same templates and all of the paragraph formats and character formats are identical in all three documents.
    I'm setting all of the PDF setup parameters the same. In the Adobe PDF setup, I've made certain that the "Rely on system fonts only..." check box is unchecked.
    One of the error messages in the log file says,
          %%[ Warning: LucidaSans cannot be embedded because of licensing restrictions. ]%%
          %%[ Font vendor (B&H) does not permit this font to be embedded in PDF. ]%%
    This would make sense if Lucida Sans font were only used in this one book. But it's used in the first two books as well and they generate as PDF with no problems. In fact, just to make sure, I went back and generated one of the first books over again and it worked perfectly.
    The only significant (?) difference in the third book is that it is much larger than the first two. It runs to 150 pages while the first two are 45 pages and 70 pages. But I've worked with books as large as 450 pages in the past.
    I've been creating the PDF documents by the FM Save as PDF feature. But because of this problem, I downloaded and installed a trial version of Acrobat X. Then printed to PS file, opened with Acrobat and tried to distill. Got the same results and the same error messages.
    My experience with FrameMaker and Adobe in general is that error messages and indicated results may be cryptic and sometimes have absolutely nothing to do with the actual problem. In any event, I'm totally snowed by this one. (I really shouldn't pick on Adobe for that. Microsoft is much worse when it comes to vague and cryptic error messages!)
    Sure wish I had a Mac right now. Or Linux. Or...

    Thank you very much for the input. That makes perfect sense to me. The Lucida fonts are, indeed, all from Bigelow & Holmes (B&H). So that explains the difficulties I was encountering. Now, here’s where it gets a little weird.
    I created the first two pdf files at work. I work about half of the time from home and was trying to create the pdf file yesterday at home. And that didn’t work. This morning, I loaded all of the files back into the computer in the office and tried again. No problem! Created a nice looking 162-page pdf file. Oh, I did say it got weird, didn’t I? Well, the computer at home and the one at work are both running the same version of Win 7 Pro, the same versions of FM10 and Acrobat X. And the Lucida fonts installed (probably the default set with Windows) are all B&H fonts. That’s right; the same on both computers.
    Your input was very helpful because I might have continued spinning my wheels for another day or so on this thing. As it is, I’m considering the matter solved because I just won’t try to make pdf files from these three documents at home. The other alternative would be to use a different font. Umm, no, not at this time. All of the body paragraphs are Lucida Sans. What a task that would be! The other alternative, of course, is to spend a few bucks and by fonts for my home computer that have the proper licensing.
    Again, thanks!

  • Garbled fonts when generating a PDF file

    Greetings all:
    I am currently creating a series of documents in FM10 which are then converted to PDF for eventual posting on the web.The first two converted to PDF okay (more or less). I created a chapter template which is used for making the third document. All of the formats and document properties are the same. When I generated the PDF (saved book as PDF), I got some weird results. All of the headings, chapter titles, and other text that used the Lucida Sans Demi Bold font came out garbled. Even the character count doesn't jibe with the original in Frame. I checked to make sure the font is installed in the c:\windows\fonts folder. Adobe PDF is set as the default printer. I tried generating the PDF with "Rely on system fonts only, do not use document fonts" checked and un-checked both. There was no difference in the output.
    I don't have much of a choice in fonts. The people I'm doing the work for really want to use the Lucida Sans Demi Bold font. Other sans-serif fonts look okay in regular type but their bold faces are too bold.
    Fonts aside, what's going on with the PDF conversion and why am I getting it now with this new document when it worked before with the other two documents?
    BTW - I'm using the PDF add-on that came with FM10. We don't have the full version of Acrobat installed. No one to compare notes with here, I'm the only writer and the only FM10 user. On a Win7 platform.

    Make certain that the "Convert CMYK Colors to RGB" option is checked in your SaveAsPDF window. Otherwise, you're using the CMYK workflow, which has some serious problems.
    [Please ignore the upper highlight - re-cycled image]

Maybe you are looking for