Jump to content

rfilgueiras

Members
  • Posts

    4
  • Joined

  • Last visited

rfilgueiras's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. The exactly problem is e.getMessage -> Error loading expression class : FontsReport_1296423503975_23346 | e.getCause ->java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain) Could I resolve this problem with permission java.io.FilePermission "/var/www/xxxxxxxxxxxx/web/ireport/-", "read"; Thanks, rodrigo
  2. 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
  3. 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...