Author |
Message |
12/08/2008 09:39:53
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
When I show the Jasper Report (Global Logistics example) in the Demo Workplace, I can save it as csv and html, but I cannot save it as pdf and xls. Do you experience the same?
|
|
|
12/08/2008 09:50:47
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Hi,
yes, you are right. There seems to be a jasper library missing (we reduced the jasper libraries to a minimum, so taht the amount of classes sent to the client is reduced...):
Code:
Exception in thread "AWT-EventQueue-1" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
at net.sf.jasperreports.view.save.JRPdfSaveContributor.save(JRPdfSaveContributor.java:107)
at net.sf.jasperreports.view.JRViewer.btnSaveActionPerformed(JRViewer.java:1128)
at net.sf.jasperreports.view.JRViewer$3.actionPerformed(JRViewer.java:668)
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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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.dispatchEvent(Unknown Source)
at org.eclnt.client.page.BlockingEventQueue.dispatchEvent(BlockingEventQueue.java:82)
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)
We'll check and add the missing library. (We cannot just pass it to you, because all libraries sent to the client are signed with one and the same signature.)
Thanks!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
19/08/2008 09:53:25
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Hi,
there are two libraries missing on client side in order to export to PDF and to XLS. After having extended my client path by...
Code:
jasperreports-3.0.0\lib\itext-1.3.1.jar
jasperreports-3.0.0\lib\poi-3.0.1-FINAL-20070705.jar
...both pdf and xls are not running into problems anymore.
We will deliver these libraries in a signed way (so that they are usable with web start / applet) with next update.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
15/05/2013 18:19:19
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Hi Captain,
I'm having problems saving in pdf using CC 20130416_interim version.
The pdf file created is empty (meanwhile saving in rtf, docx is working fine).
Regards,
Makis
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 07:59:19
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Hi,
could you please check if iText.jar (eclnt/lib) is contained in the list of client libraries?
Regards,
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/05/2013 09:30:38
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Hello,
iText.jar is already contained in the list of client libraries.
I just tried the demo tools example "show jasper report" and I found that it doesn't even save an empty pdf file. The same behavior I found with the demo tools example after installing the latest cc version. Meanwhile, I tried the on-line demo and from it everything works ok!
For the moment since I'm able to save the report in docx or rtf I'm fulfilling the needs of my customer, so I just thought to report the problem...
Regards
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 10:03:28
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Hi,
I just took a look:
when starting the demo workplace via batch, then the iText.jar is NOT part of the list of jars... In the applet/jnlp file it is. That's the reason behind...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/05/2013 11:06:47
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Thanks for the quick answer.
Do you have though any thoughts/suggestions/advice on what to look further for the fact that even if I have iText.jar in eclnt/lib and defined also in index.html
<applet code="org.eclnt.client.page.PageApplet.class"
archive="eclnt/lib/eclnt.jar,eclnt/lib/jasperreports.jar,eclnt/lib/commons-beanutils.jar,eclnt/lib/commons-collections.jar,eclnt/lib/commons-digester.jar,eclnt/lib/commons-javaflow.jar,eclnt/lib/commons-logging.jar,eclnt/lib/commons-logging-api.jar,eclnt/lib/iText.jar,eclnt/lib/poi.jar,eclnt/lib/jfreechart.jar,eclnt/lib/jcommon.jar" width="100%" height="100%" MAYSCRIPT>
the pdf file saved by my app is empty while rtf or docx are working fine (... different libs) ?
Regards,
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 11:31:19
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
...could you attach the XML-output of the jasper generation of the backend? I mean the output XML, not the form XML of Jasper - i.e. the one that is sent to the client side. (Sorry, I am not the Jasper-expert, I hope you know what I mean...)
Thanks !
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/05/2013 11:51:33
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
I guess you are talking about the jrxml report file... you see I'm not an Jasper-expert either...
Again, as I said before it is not something that I need urgently a solution ;-)
Thanks,
Filename |
medHistory.jrxml |
Download
|
Description |
|
Filesize |
13 Kbytes
|
Downloaded: |
599 time(s) |
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 12:32:13
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
...sorry, no.
I need the XML that is created by Jasper server processing out of the jrxml + the data.
It's the XML that you pass into the JRVIEWER via the attribute JASPERXML.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/05/2013 15:11:58
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Ok see attached file.
Hope this is the one your are looking for.
Regards,
Filename |
Noname2.xml |
Download
|
Description |
|
Filesize |
11 Kbytes
|
Downloaded: |
568 time(s) |
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 15:38:43
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Some additional info...
If I hit the print button of the jrviewr component then the report is printed ok. (although this has nothing to do).
Regards,
|
Gerasimos Makis Defteraios
|
|
|
16/05/2013 15:44:12
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
...we are getting closer:
Jasper outputs the following message:
Code:
Exception in thread "AWT-EventQueue-0" net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :
pdfFontName : arial.ttf
pdfEncoding : Identity-H
isPdfEmbedded : true
at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:1950)
at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1714)
at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1689)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2166)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:777)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:737)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:615)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:384)
at net.sf.jasperreports.view.save.JRPdfSaveContributor.save(JRPdfSaveContributor.java:106)
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:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Some font problem. Maybe you already can see something?
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/05/2013 15:53:30
|
deftereos
Power User
Joined: 05/05/2011 13:49:24
Messages: 100
Offline
|
Hm, that might be the problem (... using appropriate fonts capable displaying Greek characters).
I guess the fact that the jrviewer displays correctly the report (and the greek characters) has nothing to do with the saving...(?)
Regards,
|
Gerasimos Makis Defteraios
|
|
|
|