Opening under linux using 090RC3 a .mm created on windows under 081 that contains notes.
The notes disappear and the console show the attached messages.
I can reproduce the error on Windows Vista, Java 1.6.0. I have downloaded the attached map and opened it with FreeMind 0.9.0 RC3. The map loads, but all the notes are gone.
What causes the lose of all the notes (not nodes) is the presence of the string "" in the notes. When I replace "" with "
" in the notes and load the map again, the notes load properly. This is odd.
the unicode character with the hex of "A" stands for LF - line feed, while the one with the hex of "B" stands for VT - Vertical Tab. How the user managed to enter a "vertical tab" character into the note is mysterious, but that is unfortunately not at stake. The problem seems to be that Apache Xalan has issues with the character, for whatever reason, judging from the following part of the log that the user attached:
run:
[java] Checking Java Version...
[java]
[java] STDERR: ERROR: 'Character reference "" is an invalid XML character.'
[java] STDERR: ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.'Mar 23, 2009 9:52:06 AM freemind.main.Resources logException
[java] SEVERE: An exception occured:
[java] javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
[java] at freemind.main.Tools$1TransformerRunnable.run(Tools.java:964)
[java] at java.lang.Thread.run(Thread.java:619)
[java] Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:547)
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:710)
[java] ... 3 more
....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I now realize that this problem is probably specific to the use case of the conversion of a mind map created in FreeMind 0.8.0 or FreeMind 0.8.1 to the format of FreeMind 0.9.0. It is only then that an XSLT transformation is performed, using Apache Xalan; if the map were saved by FreeMind 0.9.0, even with "" in the text, the problem would probably not be there (I have not tested, admittedly), as there would be no XSLT conversion.
It could be a bug of Xalan; or could it be that certain ASCII control characters are outside of proper XML? Hmm.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tests have shown that your bug is solved with the version 0.9.0
of the FreeMind software.
If you do not agree and can still reproduce the bug with this
version of the software, please reopen this bug or create a new one.
Thanks, Your FreeMind team
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Errors on console loading a 081 mm file
Is RC3 not RC!
Chris, sounds like a data loss bug that needs fixing before final 0.9.0 release.
Eric
The 081 file giving errors
I can reproduce the error on Windows Vista, Java 1.6.0. I have downloaded the attached map and opened it with FreeMind 0.9.0 RC3. The map loads, but all the notes are gone.
What causes the lose of all the notes (not nodes) is the presence of the string "" in the notes. When I replace "" with "
" in the notes and load the map again, the notes load properly. This is odd.
Judging from
http://en.wikipedia.org/wiki/Latin_characters_in_Unicode
and
http://en.wikipedia.org/wiki/ASCII#ASCII_control_characters
the unicode character with the hex of "A" stands for LF - line feed, while the one with the hex of "B" stands for VT - Vertical Tab. How the user managed to enter a "vertical tab" character into the note is mysterious, but that is unfortunately not at stake. The problem seems to be that Apache Xalan has issues with the character, for whatever reason, judging from the following part of the log that the user attached:
run:
[java] Checking Java Version...
[java]
[java] STDERR: ERROR: 'Character reference "" is an invalid XML character.'
[java] STDERR: ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.'Mar 23, 2009 9:52:06 AM freemind.main.Resources logException
[java] SEVERE: An exception occured:
[java] javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
[java] at freemind.main.Tools$1TransformerRunnable.run(Tools.java:964)
[java] at java.lang.Thread.run(Thread.java:619)
[java] Caused by: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Character reference "" is an invalid XML character.
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:547)
[java] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:710)
[java] ... 3 more
....
I now realize that this problem is probably specific to the use case of the conversion of a mind map created in FreeMind 0.8.0 or FreeMind 0.8.1 to the format of FreeMind 0.9.0. It is only then that an XSLT transformation is performed, using Apache Xalan; if the map were saved by FreeMind 0.9.0, even with "" in the text, the problem would probably not be there (I have not tested, admittedly), as there would be no XSLT conversion.
It could be a bug of Xalan; or could it be that certain ASCII control characters are outside of proper XML? Hmm.
Tests have shown that your bug is solved with the version 0.9.0
of the FreeMind software.
If you do not agree and can still reproduce the bug with this
version of the software, please reopen this bug or create a new one.
Thanks, Your FreeMind team