Mostrar Mensajes

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - juancho

Pages: [1]
1
estoy tratando de que me aparesca un reporte en ireports a traves de jsp y me sale esto cuando lo ejecuto

org.apache.jasper.JasperException: Ha sucedido una excepción al procesar la página JSP /repor.jsp en línea 27

24:
25: /*Enviamos la ruta del reporte, los parámetros y la conexión(objeto Connection)*/
26:
27: byte[] bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, conexion);
28:
29: /*Indicamos que la respuesta va a ser en formato PDF*/
30:


Stacktrace:
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

causa raíz

java.lang.NullPointerException
   net.sf.jasperreports.engine.JRPropertiesMap.readObject(JRPropertiesMap.java:185)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
   java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
   java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
   java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
   net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:88)
   net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:232)
   net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:203)
   org.apache.jsp.repor_jsp._jspService(repor_jsp.java:83)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Pages: [1]
ey