Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1022 HTML based long node cannot be moved

_FreeMind_0.9.0
closed
5
2011-03-04
2011-03-02
Alphazo
No

When I start a new mind map, and add two childs, a & b. Then I "edit long node" the node a and answer Yes to HTML support. Editor pops up, I select my "a" text and hit bold, click OK and quit and save. From this point I can no longer move the node around (to make it a child of b for example). When I try to move I get the editor window. Even worse, I cannot delete the node and cannot save the project as well.

Discussion

  • Alphazo
    Alphazo
    2011-03-02

    Here is the java error message when saving the node with rich text.

    STDERR: Exception occurred during event dispatching:
    STDERR: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    STDERR: at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:134)
    STDERR: at freemind.main.HtmlTools.isWellformedXml(HtmlTools.java:507)
    STDERR: at freemind.main.HtmlTools.toXhtml(HtmlTools.java:85)
    STDERR: at freemind.modes.NodeAdapter.setText(NodeAdapter.java:198)
    STDERR: at freemind.modes.NodeAdapter.setUserObject(NodeAdapter.java:805)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.act(EditAction.java:84)
    STDERR: at freemind.modes.mindmapmode.actions.ModeControllerActionHandler.executeAction(ModeControllerActionHandler.java:48)
    STDERR: at freemind.modes.mindmapmode.actions.xml.ActionFactory.executeAction(ActionFactory.java:138)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.setNodeText(EditAction.java:287)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.setHtmlText(EditAction.java:297)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.access$200(EditAction.java:64)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction$1.ok(EditAction.java:175)
    STDERR: at freemind.view.mindmapview.EditNodeWYSIWYG$HTMLDialog.submit(EditNodeWYSIWYG.java:128)
    STDERR: at freemind.view.mindmapview.EditNodeBase$EditDialog.confirmedSubmit(EditNodeBase.java:108)
    STDERR: at freemind.view.mindmapview.EditNodeBase$EditDialog$DialogWindowListener.windowClosing(EditNodeBase.java:74)
    STDERR: at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:332)
    STDERR: at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:332)
    STDERR: at java.awt.Window.processWindowEvent(Window.java:1865)
    STDERR: at javax.swing.JDialog.processWindowEvent(JDialog.java:627)
    STDERR: at java.awt.Window.processEvent(Window.java:1823)
    STDERR: at java.awt.Component.dispatchEventImpl(Component.java:4652)
    STDERR: at java.awt.Container.dispatchEventImpl(Container.java:2099)
    STDERR: at java.awt.Window.dispatchEventImpl(Window.java:2478)
    STDERR: at java.awt.Component.dispatchEvent(Component.java:4482)
    STDERR: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    STDERR: at java.awt.EventQueue.access$000(EventQueue.java:85)
    STDERR: at java.awt.EventQueue$1.run(EventQueue.java:603)
    STDERR: at java.awt.EventQueue$1.run(EventQueue.java:601)
    STDERR: at java.security.AccessController.doPrivileged(Native Method)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    STDERR: at java.awt.EventQueue$2.run(EventQueue.java:617)
    STDERR: at java.awt.EventQueue$2.run(EventQueue.java:615)
    STDERR: at java.security.AccessController.doPrivileged(Native Method)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    STDERR: at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    STDERR: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    STDERR: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    STDERR: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    STDERR: at java.awt.Dialog$1.run(Dialog.java:1046)
    STDERR: at java.awt.Dialog$3.run(Dialog.java:1098)
    STDERR: at java.security.AccessController.doPrivileged(Native Method)
    STDERR: at java.awt.Dialog.show(Dialog.java:1096)
    STDERR: at freemind.view.mindmapview.EditNodeWYSIWYG.show(EditNodeWYSIWYG.java:258)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.edit(EditAction.java:183)
    STDERR: at freemind.modes.mindmapmode.actions.EditAction.edit(EditAction.java:100)
    STDERR: at freemind.modes.mindmapmode.MindMapController.edit(MindMapController.java:1403)
    STDERR: at freemind.modes.mindmapmode.MindMapController$EditLongAction.actionPerformed(MindMapController.java:1739)
    STDERR: at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    STDERR: at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    STDERR: at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    STDERR: at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    STDERR: at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    STDERR: at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    STDERR: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
    STDERR: at java.awt.Component.processMouseEvent(Component.java:6289)
    STDERR: at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    STDERR: at java.awt.Component.processEvent(Component.java:6054)
    STDERR: at java.awt.Container.processEvent(Container.java:2041)
    STDERR: at java.awt.Component.dispatchEventImpl(Component.java:4652)
    STDERR: at java.awt.Container.dispatchEventImpl(Container.java:2099)
    STDERR: at java.awt.Component.dispatchEvent(Component.java:4482)
    STDERR: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    STDERR: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    STDERR: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    STDERR: at java.awt.Container.dispatchEventImpl(Container.java:2085)
    STDERR: at java.awt.Window.dispatchEventImpl(Window.java:2478)
    STDERR: at java.awt.Component.dispatchEvent(Component.java:4482)
    STDERR: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    STDERR: at java.awt.EventQueue.access$000(EventQueue.java:85)
    STDERR: at java.awt.EventQueue$1.run(EventQueue.java:603)
    STDERR: at java.awt.EventQueue$1.run(EventQueue.java:601)
    STDERR: at java.security.AccessController.doPrivileged(Native Method)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    STDERR: at java.awt.EventQueue$2.run(EventQueue.java:617)
    STDERR: at java.awt.EventQueue$2.run(EventQueue.java:615)
    STDERR: at java.security.AccessController.doPrivileged(Native Method)
    STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    STDERR: at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    STDERR: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    STDERR: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    STDERR: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    STDERR: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    STDERR: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    STDERR: at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

     
  • Thanks for the bug report. Some diagnostic questions:

    (a) Can you post the HTML source code of the problematic node? The HTML source code can be seen in the rich text editor, in the tab "HTML Code view".

    (b) Are you sure you have created the rich text node in FreeMind rather than having pasted the node into FreeMind from an external application such as MS Word?

    (c) What is the operating system that you are using?

    --Dan

     
  • Hm, this part of the error message looks rather suspect: "org.apache.xerces.jaxp.SAXParserFactoryImpl not found". It looks as if some libraries were missing or something, which should not be the case in a normal Windows installation. So, what operating system are you using? What Java virtual machine are you using (type "java -version" into a console to find out)? Could it be that you are on Linux using a Java virtual machine that is not the Oracle one? --Dan

     
  • Alphazo
    Alphazo
    2011-03-03

    Problem appears on both Windows XP and Linux (ArchLinux 64-bit).
    I use Oracle Java on both platforms.

    Windows:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

    Linux
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

    BTW, on Linux and just to make sure I've also installed:
    - xalan-java 2.7.1-3
    - xerces2-java 2.11.0-1 (it contains usr/share/java/xercesImpl.jar)

    I did not paste any text from another application nor modified the HTML code myself. I just created an empty node, selected the text and hit the bold button. Then when I try to apply it crashes.

    Here is the generated HTML code:

    <html>
    <head>
    <style type="text/css">
    <!--
    p { margin-top: 0 }
    body { color: #000000; font-size: 12pt; font-family: SansSerif }
    -->
    </style>

    </head>
    <body>
    <p>
    <b>aa</b>
    </p>
    </body>
    </html>

     
  • I cannot reproduce the problem on Windows Vista, Java "1.6.0_24", FreeMind 0.9.0, unfortunately. The source HTML that you have posted looks okay, containing nothing suspect.

    I used this sequence of steps to try to reproduce the problem:

    * Start a new mind map
    * Add two childred, "a" and "b"
    * Select the node "a"
    * Select the menu item Format > Use Rich Formatting
    * Press F2
    * Observation: Editor of long node pops up
    * Select the text "a" and press Control + B to make the text bold
    * Press OK button
    * Select the node "a" and press Control + Down to move the node down
    * Observation: the node "a" moves down, as it should
    * Press Delete to delete "a" and confirm the deletion
    * Observation: the node "a" gets deleted, as it should

    --Dan

     
  • Alphazo
    Alphazo
    2011-03-04

    Reinstalled my jre (moved from jre to OpenJDK) and everything is fine now.

     
  • Alphazo
    Alphazo
    2011-03-04

    • status: open --> closed