Hi Andreas,
Ouch; thanks for letting us know. An updated snapshot is available [1,2].
Best, Christian
[1] https://files.basex.org/releases/latest/ [2] https://github.com/BaseXdb/basex/commit/79cb4820311bbb9e688bd9b29fff7521baa7...
On Mon, Aug 7, 2023 at 7:18 PM Andreas Hartmann andreas.hartmann@gmx.org wrote:
Hi Christian,
sorry to bother you again, but my relief was somewhat premature. After restarting the program, the problem occurs again with the same error message on the command line.
In fact, the .jar is not unaffected. This version opens the “Create database” window, but as soon as I change the parser, I get again:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at
org.basex.gui.dialog.DialogParsing.setType(DialogParsing.java:79)
at org.basex.gui.dialog.DialogImport.action(DialogImport.java:165) at org.basex.gui.dialog.DialogNew.action(DialogNew.java:115) at
org.basex.gui.layout.BaseXCombo.lambda$new$2(BaseXCombo.java:158)
at java.desktop/javax.swing.JComboBox.fireActionEvent(Unknown
Source)
at java.desktop/javax.swing.JComboBox.setSelectedItem(Unknown
Source)
at
org.basex.gui.layout.BaseXCombo.setSelectedItem(BaseXCombo.java:257)
at java.desktop/javax.swing.JComboBox.setSelectedIndex(Unknown
Source)
at
java.desktop/javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown
Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown
Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown
Source)
at
java.desktop/javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown
Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown
Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown
Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source) at java.desktop/java.awt.Dialog.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at java.desktop/java.awt.Dialog.setVisible(Unknown Source) at org.basex.gui.layout.BaseXDialog.finish(BaseXDialog.java:105) at org.basex.gui.dialog.DialogNew.<init>(DialogNew.java:108) at org.basex.gui.GUIMenuCmd$1.execute(GUIMenuCmd.java:40) at
org.basex.gui.layout.BaseXButton.lambda$command$2(BaseXButton.java:115)
at
java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at
java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at
java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown
Source)
at
java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown
Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown
Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown
Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown
Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown
Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown
Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown
Source)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown
Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
However, the parsing seems to work and the database is saved, but it is not possible to open the properties window. When I try to create a second database it is not possible anymore to open the “Create database” window.
Thanks,
Andreas
*Von:* Christian Grün christian.gruen@gmail.com *Gesendet:* Montag, 7. August 2023 18:04 *An:* Andreas Hartmann andreas.hartmann@gmx.org; BaseX < basex-talk@mailman.uni-konstanz.de> *Betreff:* Re: [basex-talk] Problem with creating new database from GUI
Hi Andreas (cc to the list),
Thanks for forwarding the error message, which indicates that removed »Text Parser« may have caused the problem [1]. Good to know it works again.
Best,
Christian
[1] https://docs.basex.org/wiki/Parsers#Changelog https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.basex.org%2Fwiki%2FParsers%23Changelog&data=05%7C01%7C%7C6fa8134efa6b4a4af14808db975ff851%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638270210658759816%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Vev3%2Fj4XCRnkZG5pzxMMB%2FzoDrdlHeLo%2BWGpF5Eb%2BXI%3D&reserved=0
On Mon, Aug 7, 2023 at 5:57 PM Andreas Hartmann andreas.hartmann@gmx.org wrote:
Hi Christian,
in fact I installed BaseX from the .exe. I did now try the .jar and .zip and those work without any problems. Then I did a clean reinstall with the .exe and this seems to have fixed the problem. This is the first time I had problems with installing a new version over an existing installation.
For what it’s worth, when starting the jar-file from the .exe before the reinstall and clicking on the icon I got in the command line:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at
org.basex.gui.dialog.DialogParsing.setType(DialogParsing.java:79)
at org.basex.gui.dialog.DialogImport.action(DialogImport.java:165) at org.basex.gui.dialog.DialogNew.action(DialogNew.java:115) at org.basex.gui.dialog.DialogNew.<init>(DialogNew.java:105) at org.basex.gui.GUIMenuCmd$1.execute(GUIMenuCmd.java:40) at
org.basex.gui.layout.BaseXButton.lambda$command$2(BaseXButton.java:115)