Menu

#86 File doesn't load when xml is invalid

open
nobody
None
9
2022-12-14
2008-12-06
Anonymous
No

I inputted a character that XML doesn't support and it won't allow me to load it again once I saved it. Suggestion: check the input to see if it is valid before allowing the user to input it.

Ver 1.3.0 (200803122134) - Java 1.6.0_05 , OS Windows Vista
java.io.IOException: Character reference "&#12" is an invalid XML character.
at jmemorize.core.Main.loadLesson(Unknown Source)
at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
at jmemorize.gui.swing.actions.file.OpenLessonAction.actionPerformed(Unknown Source)
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 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)

Discussion

  • Nobody/Anonymous

    The file used to generate the error message.

     
  • Riad Djemili

    Riad Djemili - 2008-12-09
     
  • Riad Djemili

    Riad Djemili - 2008-12-09

    Thanks for your report. I'll work on a bug fix as soon as I have time.
    I've also attached the fixed lesson file to this ticket.

     
  • Riad Djemili

    Riad Djemili - 2008-12-09
    • priority: 5 --> 9
     
  • Mahdi

    Mahdi - 2014-10-21

    Hi Riad,
    sorry for disturbing,
    i have this problem, too. here is the error that i see when i want to load my English.jml file. so, please help me.

    Ver 1.3.0 (200803122134) - Java 1.6.0_15 , OS Windows 7
    java.io.IOException: Content is not allowed in prolog.
    at jmemorize.core.Main.loadLesson(Unknown Source)
    at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
    at jmemorize.gui.swing.actions.file.OpenLessonAction.actionPerformed(Unknown Source)
    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 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)

    please let me know if you fix the problem:
    https://www.facebook.com/gholamimahdi87
    gholamimahdi@yahoo.com

     

    Last edit: Mahdi 2014-10-21
  • farid lotfabadi

    farid lotfabadi - 2017-03-03

    Hello.I have the same problem with this attached file and i can not fix it

     
    • Riad Djemili

      Riad Djemili - 2017-04-11

      Sorry about the late reply. I was not able to access my sourceforge account. Do you still need help? Did you try this approach? https://riadd.wordpress.com/2011/01/05/jmemorize-lesson-file-broken-bug/

       
      • farid lotfabadi

        farid lotfabadi - 2017-04-15

        I deleted and recreated that jml file again.
        Thank you for your consideration Mr Djemili

        On Tue, Apr 11, 2017 at 3:36 PM, Riad Djemili djemili@users.sf.net wrote:

        Sorry about the late reply. I was not able to access my sourceforge
        account. Do you still need help? Did you try this approach?
        https://riadd.wordpress.com/2011/01/05/jmemorize-lesson-file-broken-bug/


        Status: open
        Group:
        Created: Sat Dec 06, 2008 02:21 PM UTC by Anonymous
        Last Updated: Fri Mar 03, 2017 07:24 AM UTC
        Owner: nobody

        I inputted a character that XML doesn't support and it won't allow me to
        load it again once I saved it. Suggestion: check the input to see if it is
        valid before allowing the user to input it.

        Ver 1.3.0 (200803122134) - Java 1.6.0_05 , OS Windows Vista
        java.io.IOException: Character reference " " is an invalid XML
        character.
        at jmemorize.core.Main.loadLesson(Unknown Source)
        at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
        at jmemorize.gui.swing.actions.file.OpenLessonAction.actionPerformed(Unknown
        Source)
        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 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)


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/jmemorize/bugs/86/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         
  • sajad

    sajad - 2022-12-14

    Hi Riad
    would you mind help me to fix my jml file, too??
    thanks

     

    Last edit: sajad 2022-12-14
    • sajad

      sajad - 2022-12-14

      Ver 1.3.0 (200803122134) - Java 1.6.0_25 , OS Windows NT (unknown)
      java.io.IOException: Character reference "" is an invalid XML character.
      at jmemorize.core.Main.loadLesson(Unknown Source)
      at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
      at jmemorize.gui.swing.actions.file.OpenLessonAction.actionPerformed(Unknown Source)
      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.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$000(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue$2.run(Unknown Source)
      at java.awt.EventQueue$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$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)

       

      Last edit: sajad 2022-12-14

Log in to post a comment.