Jump to content

rfilgueiras

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by rfilgueiras

  1. Hello,

    I'm working with Tomcat 5 and eclipse in local and Apache + Tomca in remote  and my problem is the next

     

    I have created a .jasper file.

    When I execute my servlet in local i obtain the pdf correctly.

    When I execute the same servlet in remote i cant create the pdf and also I receive the next exception:

    Error loading expression class : FontsReport_1296305567623_757620
    Jan 30, 2011 10:22:30 PM org.apache.jk.common.ChannelSocket processConnection
    INFO: connection timeout reached

     

    Which is the solution to this problem?

     

    Many thanks in advance

    Rodrigo

  2. Hello,

     I have the next code with  JasperReport:

    ------------------------------------------------------------------

    JasperPrint jasperPrint = null;

    JasperReport jasperReport;

    String reportStream = getServletConfig().getServletContext().getRealPath("/ireport/report3_.jasper");

    jasperReport = (JasperReport) JRLoader.loadObject(new FileInputStream(reportStream ));

    con = ConnectionFactory.getInstance().getConnection();

     Map parameters = new HashMap();parameters.put("fecha_ini", _finicio);

     jasperPrint = JasperFillManager.fillReport(jasperReport,parameters ,con);

     System.out.println("fillreport");

     response.setContentType("application/pdf");

    OutputStream oS = response.getOutputStream();

    JasperExportManager.exportReportToPdfStream(jasperPrint, oS);

    --------------------------------------------------------------

    The method loadObject returns an object not null, but when I execute the line JasperFillManager.fillReport it fails. It doesnt return anything and the output (in my browser) is the next

     

    Error de lectura XML: no se encuentra elemento
    Ubicación:

    Número de línea 1, columna 1:
    ^

    Anyone can help me?

    Thanks in advance,

    Rodrigo 

    Gracias,

    Rodrigo

×
×
  • Create New...