IndexOutOfBoundsException while importing a gnucash XML file

Hi all, I am trying to create an XSD schema for the gnucash XML file format, and so tried to use Oxygen v9.1 (MacOSX standalone) to load the gnucash file. The attempt to load the file caused Oxygen to abort the load with the error below. An IndexOutOfBoundsException implies to me that something is broken within whatever parser is being used to parse the XML. Has anyone encountered this before? Please restart after allocating more memory to oxygen. For this modify the parameter -Xmx in the startup script, for example -Xmx700m. In case you were running a diff tool when this problem occurred you can try to use another algorithm next time. For more details see the 'Performance problems' and 'Setting a parameter in the startup script' sections of the User Manual. If you just want to inspect the file, please use the Large File Viewer available from the Tools menu. [ AWT-EventQueue-0 ] - java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at ro.sync.H.M.A(Unknown Source) at ro.sync.H.M.<init>(Unknown Source) at ro.sync.H.L.C(Unknown Source) at ro.sync.P.I.G(Unknown Source) at ro.sync.exml.I.a.G.B.ડ(Unknown Source) at ro.sync.exml.I.T.B$_A$1.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:535) at java.awt.Dialog$2.run(Dialog.java:563) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:561) at java.awt.Component.show(Component.java:1302) at java.awt.Component.setVisible(Component.java:1255) at ro.sync.ui.application.ApplicationDialog.Ǭ(Unknown Source) at ro.sync.ui.application.ApplicationDialog.setVisible(Unknown Source) at ro.sync.ui.application.G.ð(Unknown Source) at ro.sync.ui.application.G.î(Unknown Source) at ro.sync.exml.Q.B.A(Unknown Source) at ro.sync.exml.Q.B.doAppend(Unknown Source) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.fatal(Category.java:379) at ro.sync.P.H$5.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at ro.sync.ui.c.A(Unknown Source) at ro.sync.P.H.B(Unknown Source) at ro.sync.exml.I.T.B.F(Unknown Source) at ro.sync.exml.I.o.E(Unknown Source) at ro.sync.exml.I.a.G.B.E(Unknown Source) at ro.sync.exml.I._A.readDocument(Unknown Source) at ro.sync.exml.I.R.K.readDocument(Unknown Source) at ro.sync.exml.I.a.a.readDocument(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I._A.E(Unknown Source) at ro.sync.exml.I.a.a.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.open(Unknown Source) at ro.sync.exml.I.A.w(Unknown Source) at ro.sync.exml.D.F$11.actionPerformed(Unknown Source) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) [ AWT-EventQueue-0 ] - java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at ro.sync.H.M.A(Unknown Source) at ro.sync.H.M.<init>(Unknown Source) at ro.sync.H.L.C(Unknown Source) at ro.sync.P.I.G(Unknown Source) at ro.sync.exml.I.a.G.B.ડ(Unknown Source) at ro.sync.exml.I.T.B$_A$1.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:535) at java.awt.Dialog$2.run(Dialog.java:563) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:561) at java.awt.Component.show(Component.java:1302) at java.awt.Component.setVisible(Component.java:1255) at ro.sync.ui.application.ApplicationDialog.Ǭ(Unknown Source) at ro.sync.ui.application.ApplicationDialog.setVisible(Unknown Source) at ro.sync.ui.application.G.ð(Unknown Source) at ro.sync.ui.application.G.î(Unknown Source) at ro.sync.exml.Q.B.A(Unknown Source) at ro.sync.exml.Q.B.doAppend(Unknown Source) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.fatal(Category.java:379) at ro.sync.P.H$5.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at ro.sync.ui.c.A(Unknown Source) at ro.sync.P.H.B(Unknown Source) at ro.sync.exml.I.T.B.F(Unknown Source) at ro.sync.exml.I.o.E(Unknown Source) at ro.sync.exml.I.a.G.B.E(Unknown Source) at ro.sync.exml.I._A.readDocument(Unknown Source) at ro.sync.exml.I.R.K.readDocument(Unknown Source) at ro.sync.exml.I.a.a.readDocument(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I._A.E(Unknown Source) at ro.sync.exml.I.a.a.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.open(Unknown Source) at ro.sync.exml.I.A.w(Unknown Source) at ro.sync.exml.D.F$11.actionPerformed(Unknown Source) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) [ AWT-EventQueue-0 ] - java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at ro.sync.H.M.A(Unknown Source) at ro.sync.H.M.<init>(Unknown Source) at ro.sync.H.L.C(Unknown Source) at ro.sync.P.I.G(Unknown Source) at ro.sync.exml.I.a.G.B.ડ(Unknown Source) at ro.sync.exml.I.T.B$_A$1.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:535) at java.awt.Dialog$2.run(Dialog.java:563) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:561) at java.awt.Component.show(Component.java:1302) at java.awt.Component.setVisible(Component.java:1255) at ro.sync.ui.application.ApplicationDialog.Ǭ(Unknown Source) at ro.sync.ui.application.ApplicationDialog.setVisible(Unknown Source) at ro.sync.ui.application.G.ð(Unknown Source) at ro.sync.ui.application.G.î(Unknown Source) at ro.sync.exml.Q.B.A(Unknown Source) at ro.sync.exml.Q.B.doAppend(Unknown Source) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.fatal(Category.java:379) at ro.sync.P.H$5.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at ro.sync.ui.c.A(Unknown Source) at ro.sync.P.H.B(Unknown Source) at ro.sync.exml.I.T.B.F(Unknown Source) at ro.sync.exml.I.o.E(Unknown Source) at ro.sync.exml.I.a.G.B.E(Unknown Source) at ro.sync.exml.I._A.readDocument(Unknown Source) at ro.sync.exml.I.R.K.readDocument(Unknown Source) at ro.sync.exml.I.a.a.readDocument(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I._A.E(Unknown Source) at ro.sync.exml.I.a.a.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.open(Unknown Source) at ro.sync.exml.I.A.w(Unknown Source) at ro.sync.exml.D.F$11.actionPerformed(Unknown Source) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) [ AWT-EventQueue-0 ] - java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 java.lang.IndexOutOfBoundsException: Index: 376205, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at ro.sync.H.M.A(Unknown Source) at ro.sync.H.M.<init>(Unknown Source) at ro.sync.H.L.C(Unknown Source) at ro.sync.P.I.G(Unknown Source) at ro.sync.exml.I.a.G.B.ડ(Unknown Source) at ro.sync.exml.I.T.B$_A$1.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:180) at java.awt.Dialog$1.run(Dialog.java:535) at java.awt.Dialog$2.run(Dialog.java:563) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:561) at java.awt.Component.show(Component.java:1302) at java.awt.Component.setVisible(Component.java:1255) at ro.sync.ui.application.ApplicationDialog.Ǭ(Unknown Source) at ro.sync.ui.application.ApplicationDialog.setVisible(Unknown Source) at ro.sync.ui.application.G.ð(Unknown Source) at ro.sync.ui.application.G.î(Unknown Source) at ro.sync.exml.Q.B.A(Unknown Source) at ro.sync.exml.Q.B.doAppend(Unknown Source) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.fatal(Category.java:379) at ro.sync.P.H$5.run(Unknown Source) at ro.sync.ui.c$1.run(Unknown Source) at ro.sync.ui.c.A(Unknown Source) at ro.sync.P.H.B(Unknown Source) at ro.sync.exml.I.T.B.F(Unknown Source) at ro.sync.exml.I.o.E(Unknown Source) at ro.sync.exml.I.a.G.B.E(Unknown Source) at ro.sync.exml.I._A.readDocument(Unknown Source) at ro.sync.exml.I.R.K.readDocument(Unknown Source) at ro.sync.exml.I.a.a.readDocument(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I.w.A(Unknown Source) at ro.sync.exml.I._A.E(Unknown Source) at ro.sync.exml.I.a.a.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.E(Unknown Source) at ro.sync.exml.I.A.open(Unknown Source) at ro.sync.exml.I.A.w(Unknown Source) at ro.sync.exml.D.F$11.actionPerformed(Unknown Source) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Regards, Graham --

Dear Graham, The problem is that Oxygen probably needs more memory in order to open your file. The other errors are received after the Oxygen application runs out of memory and it becomes unstable. How large is your file? You can see here how to increase the amount of memory for Oxygen: http://www.oxygenxml.com/doc/ug-standalone/performance-problems.html#perform... Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Graham Leggett wrote:
Hi all,
I am trying to create an XSD schema for the gnucash XML file format, and so tried to use Oxygen v9.1 (MacOSX standalone) to load the gnucash file.
The attempt to load the file caused Oxygen to abort the load with the error below.
An IndexOutOfBoundsException implies to me that something is broken within whatever parser is being used to parse the XML.
Has anyone encountered this before?
Please restart after allocating more memory to oxygen. For this modify the parameter -Xmx in the startup script, for example -Xmx700m. In case you were running a diff tool when this problem occurred you can try to use another algorithm next time. For more details see the 'Performance problems' and 'Setting a parameter in the startup script' sections of the User Manual.
If you just want to inspect the file, please use the Large File Viewer available from the Tools menu.
participants (2)
-
Graham Leggett
-
Radu Coravu