Tag Archives: JasperReport

JasperReport errore nell’esportazione in PDF

Se ricevete il seguente messaggio: Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper         at net.sf.jasperreports.view.save.JRPdfSaveContributor.save(JRPdfSaveContributor.java:103)         at net.sf.jasperreports.view.JRViewer.btnSaveActionPerformed(JRViewer.java:1135)         at net.sf.jasperreports.view.JRViewer$3.actionPerformed(JRViewer.java:675)         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)         at java.awt.Component.processMouseEvent(Component.java:6267)         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)         at java.awt.Component.processEvent(Component.java:6032)         at java.awt.Container.processEvent(Container.java:2041)         at java.awt.Component.dispatchEventImpl(Component.java:4630)         at… Read More »






JasperReport errore ” NoClassDefFoundError “

Se usate JasperReport per creare i report (come lo usiamo noi nel nostro programma open-source jMagazzino ) e ottenete il seguente errore: Exception in thread “report *****” java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester         at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:146)         at stampe.jcJasperReport.satmpaReportPoiApriFinestra(jcJasperReport.java:35)         at stampe.jcStampaReport.stampaDocumento(jcStampaReport.java:176)         at stampe.jcStampaReport.run(jcStampaReport.java:28) Caused by: java.lang.ClassNotFoundException: org.apache.commons.digester.Digester         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)… Read More »






Configurare JasperReport per l’invio delle e-mail

Per configurare l’invio delle e-mail con il proprio SMTP occorre andare a modificare il file js.quartz.properties nella cartella WEB-INF (se usate la virtual machine fatta da bitnami il file lo trovate in /opt/bitnami/apache-tomcat/webapps/jasperserver/WEB-INF ). Ecco un esempio del file: # This file is now just a pass-through for stuff in the # file referenced by… Read More »