Bug 719433

Summary: Exporting MindMap to either PDF or to SVG raises java.lang.NullPointerException
Product: [Fedora] Fedora Reporter: Juha Nikkanen <nikkej>
Component: freemindAssignee: hannes <johannes.lips>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: johannes.lips, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: freemind-0.9.0-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-07 14:37:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juha Nikkanen 2011-07-06 19:57:31 UTC
Description of problem:
Exporting mindmaps does not work

Version-Release number of selected component (if applicable):
0.9.0-1, 0.9.0-2

How reproducible:
Always when exporting mindmap diagram to some image / pdf format

Steps to Reproduce:
1. Open existing or draw new MindMap
2. Select 'File -> Export -> As PDF / AS SVG'
3. Wait for an error dialog
  
Actual results:
SEVERE: An exception occured:
java.lang.NullPointerException
        at org.apache.batik.svggen.ImageHandlerBase64Encoder.encodeImage(ImageHandlerBase64Encoder.java:157)
        at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF(ImageHandlerBase64Encoder.java:133)
        at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF(ImageHandlerBase64Encoder.java:72)
        at org.apache.batik.svggen.DefaultImageHandler.handleImage(DefaultImageHandler.java:63)
        at org.apache.batik.svggen.SimpleImageHandler.handleImage(SimpleImageHandler.java:100)
        at org.apache.batik.svggen.SVGGraphics2D.drawImage(SVGGraphics2D.java:677)
        at javax.swing.ImageIcon.paintIcon(ImageIcon.java:412)


Expected results:
<no exceptions>, MindMap exported to requested format

Additional info:
Shall all jar files which FreeMind depends, to be introduced in class path at start up script

Comment 1 Fedora Update System 2011-07-07 05:09:48 UTC
freemind-0.9.0-3.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/freemind-0.9.0-3.fc15

Comment 2 Fedora Update System 2011-07-07 05:10:01 UTC
freemind-0.9.0-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/freemind-0.9.0-2.fc14

Comment 3 hannes 2011-07-07 05:12:42 UTC
I think the svg export works now but it seems that pdf export is still broken. I will have a look at it or you could try to debug it. 

Thanks again for filing these bugs.

Comment 4 hannes 2011-07-07 11:26:09 UTC
Ok, found the error and just fixing the errors. The next update should fix all issues related to missing jar files in the classpath.

Comment 5 Juha Nikkanen 2011-07-07 11:50:43 UTC
(In reply to comment #4)
> Ok, found the error and just fixing the errors. The next update should fix all
> issues related to missing jar files in the classpath.

Great, thanks! Was it because of some missing jars that were not listed as required jars for FreeMind? Sorry, I forgot to say I installed some additional packages and frakly, I didn't check what was the library that enabled PDF as well:
ant-trax, ant-apache-regexp, bcel, jarbundler, ws-jaxme, log4j, lucene-contrib, swing-layout, javacc, jflex, junit4, docbook2X

Comment 6 hannes 2011-07-07 12:04:14 UTC
Yes there was one jar missing from the class-patch since the avalon-framework.jar was splitted and I didn't account for that in the classpath of freemind.sh. I now added both jars and it seemed to work here without errors. So make sure that you install freemind-0.9.0-4.fc15 which should arrive on the mirrors shortly.
https://admin.fedoraproject.org/updates/freemind-0.9.0-4.fc15

If you want it really fast: 
yum localinstall http://kojipkgs.fedoraproject.org/packages/freemind/0.9.0/4.fc15/noarch/freemind-0.9.0-4.fc15.noarch.rpm

johannes

Comment 7 Juha Nikkanen 2011-07-07 14:37:25 UTC
Johannes, thank you. Now FreeMind seems to work properly on Fedora 15. I'll close these bugs now and let's keep up good work!

Juha

Comment 8 Fedora Update System 2011-07-18 22:41:55 UTC
freemind-0.9.0-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-07-18 22:43:24 UTC
freemind-0.9.0-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.