Anonymní profil Karol – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Anonymní profil Karol – Programujte.comAnonymní profil Karol – Programujte.com

 

Příspěvky odeslané z IP adresy 85.248.64.–

Karol
Java › Generovanie reportu (iReport…
3. 1. 2015   #197788

Zdravim, mam problem s vygenerovanim reportu do pdf formatu s pomocou Jasper Reports.
Vsetko funguje OK, ked generovanie spustim priamo z IDE Eclipse. Akonahle to zabalim a spustim z podpisaneho jar suboru cez JNLP protokol, konzola v jave mi vypise doleuvedenu chybu:

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
 at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.configureDigester(JRXmlDigesterFactory.java:169)
 at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:954)
 at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:202)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.AbstractButton.doClick(Unknown Source)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$000(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue$4.run(Unknown Source)
 at java.awt.EventQueue$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: net.sf.jasperreports.engine.JRRuntimeException: Error loading the properties
 at net.sf.jasperreports.engine.util.JRProperties.initProperties(JRProperties.java:189)
 at net.sf.jasperreports.engine.util.JRProperties.<clinit>(JRProperties.java:156)
 ... 43 more
Caused by: net.sf.jasperreports.engine.JRException: Default properties file not found.
 at net.sf.jasperreports.engine.util.JRProperties.getDefaults(JRProperties.java:216)
 at net.sf.jasperreports.engine.util.JRProperties.initProperties(JRProperties.java:166)
 ... 44 more...

Pravdepodobne je asi problem s CLASS_PATH, aj ked kniznice z iReportu (ver. 1.3.0) mam nastavenne v zdrojovej ceste (JavaBuildPath -> Order and Export).

JRE pouzivam vo verzii 7.

Ak by mi niekto vedel pomoct, mozem prilozit aj casti predmetnych kodov.

 

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý