java.lang.RuntimeException: Insertion at beginning of populated table.
Sunday, 30 November 2014 · 4 messages · last reply 1 Dec 2014
AB
Andy Bunce30 Nov 2014 22:47 #
Hi,
With the latest snapshot. running the attached code twice generates the error below.
The intent to create or update a database from the data files.
Regards
/Andy
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk at mailman.uni-konstanz.de
Version: BaseX 8.0 beta 07cd3e9
Java: Oracle Corporation, 1.7.0_60
OS: Windows 8.1, amd64
Stack Trace:
java.lang.RuntimeException: Insertion at beginning of populated table.
at org.basex.util.Util.notExpected(Util.java:60)
at org.basex.io.random.TableDiskAccess.insert(TableDiskAccess.java:325)
at org.basex.data.Data.insert(Data.java:915)
at org.basex.data.Data.insert(Data.java:806)
at org.basex.data.atomic.Replace.apply(Replace.java:64)
at
org.basex.data.atomic.AtomicUpdateCache.applyUpdates(AtomicUpdateCache.java:298)
at
org.basex.data.atomic.AtomicUpdateCache.execute(AtomicUpdateCache.java:282)
at org.basex.query.up.DataUpdates.apply(DataUpdates.java:164)
at org.basex.query.up.ContextModifier.apply(ContextModifier.java:110)
at org.basex.query.up.Updates.apply(Updates.java:133)
at org.basex.query.QueryContext.iter(QueryContext.java:348)
at org.basex.query.QueryContext.execute(QueryContext.java:590)
at org.basex.query.QueryProcessor.execute(QueryProcessor.java:100)
at org.basex.core.cmd.AQuery.query(AQuery.java:82)
at org.basex.core.cmd.XQuery.run(XQuery.java:22)
at org.basex.core.Command.run(Command.java:360)
at org.basex.core.Command.execute(Command.java:94)
at org.basex.gui.GUI.exec(GUI.java:470)
at org.basex.gui.GUI.access$5(GUI.java:427)
at org.basex.gui.GUI$8.run(GUI.java:414)CG
Christian Grün1 Dec 2014 02:38 #
Hi Andy,
Thanks for reporting this. I can reproduce this bug.
A fix will be available soon,
Christian
Quoted text · Andy Bunce · 38 lines
On Sun, Nov 30, 2014 at 10:47 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > Hi, > With the latest snapshot. running the attached code twice generates the > error below. > The intent to create or update a database from the data files. > > Regards > /Andy > > Improper use? Potential bug? Your feedback is welcome: > Contact: basex-talk at mailman.uni-konstanz.de > Version: BaseX 8.0 beta 07cd3e9 > Java: Oracle Corporation, 1.7.0_60 > OS: Windows 8.1, amd64 > Stack Trace: > java.lang.RuntimeException: Insertion at beginning of populated table. > at org.basex.util.Util.notExpected(Util.java:60) > at org.basex.io.random.TableDiskAccess.insert(TableDiskAccess.java:325) > at org.basex.data.Data.insert(Data.java:915) > at org.basex.data.Data.insert(Data.java:806) > at org.basex.data.atomic.Replace.apply(Replace.java:64) > at > org.basex.data.atomic.AtomicUpdateCache.applyUpdates(AtomicUpdateCache.java:298) > at > org.basex.data.atomic.AtomicUpdateCache.execute(AtomicUpdateCache.java:282) > at org.basex.query.up.DataUpdates.apply(DataUpdates.java:164) > at org.basex.query.up.ContextModifier.apply(ContextModifier.java:110) > at org.basex.query.up.Updates.apply(Updates.java:133) > at org.basex.query.QueryContext.iter(QueryContext.java:348) > at org.basex.query.QueryContext.execute(QueryContext.java:590) > at org.basex.query.QueryProcessor.execute(QueryProcessor.java:100) > at org.basex.core.cmd.AQuery.query(AQuery.java:82) > at org.basex.core.cmd.XQuery.run(XQuery.java:22) > at org.basex.core.Command.run(Command.java:360) > at org.basex.core.Command.execute(Command.java:94) > at org.basex.gui.GUI.exec(GUI.java:470) > at org.basex.gui.GUI.access$5(GUI.java:427) > at org.basex.gui.GUI$8.run(GUI.java:414)
CG
Christian Grün1 Dec 2014 02:54 #
https://github.com/BaseXdb/basex/issues/1034
To be continued.
Quoted text · Christian Grün · 48 lines
On Mon, Dec 1, 2014 at 2:38 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Andy, > > Thanks for reporting this. I can reproduce this bug. > > A fix will be available soon, > Christian > > > On Sun, Nov 30, 2014 at 10:47 PM, Andy Bunce <bunce.andy at gmail.com> wrote: >> Hi, >> With the latest snapshot. running the attached code twice generates the >> error below. >> The intent to create or update a database from the data files. >> >> Regards >> /Andy >> >> Improper use? Potential bug? Your feedback is welcome: >> Contact: basex-talk at mailman.uni-konstanz.de >> Version: BaseX 8.0 beta 07cd3e9 >> Java: Oracle Corporation, 1.7.0_60 >> OS: Windows 8.1, amd64 >> Stack Trace: >> java.lang.RuntimeException: Insertion at beginning of populated table. >> at org.basex.util.Util.notExpected(Util.java:60) >> at org.basex.io.random.TableDiskAccess.insert(TableDiskAccess.java:325) >> at org.basex.data.Data.insert(Data.java:915) >> at org.basex.data.Data.insert(Data.java:806) >> at org.basex.data.atomic.Replace.apply(Replace.java:64) >> at >> org.basex.data.atomic.AtomicUpdateCache.applyUpdates(AtomicUpdateCache.java:298) >> at >> org.basex.data.atomic.AtomicUpdateCache.execute(AtomicUpdateCache.java:282) >> at org.basex.query.up.DataUpdates.apply(DataUpdates.java:164) >> at org.basex.query.up.ContextModifier.apply(ContextModifier.java:110) >> at org.basex.query.up.Updates.apply(Updates.java:133) >> at org.basex.query.QueryContext.iter(QueryContext.java:348) >> at org.basex.query.QueryContext.execute(QueryContext.java:590) >> at org.basex.query.QueryProcessor.execute(QueryProcessor.java:100) >> at org.basex.core.cmd.AQuery.query(AQuery.java:82) >> at org.basex.core.cmd.XQuery.run(XQuery.java:22) >> at org.basex.core.Command.run(Command.java:360) >> at org.basex.core.Command.execute(Command.java:94) >> at org.basex.gui.GUI.exec(GUI.java:470) >> at org.basex.gui.GUI.access$5(GUI.java:427) >> at org.basex.gui.GUI$8.run(GUI.java:414)
CG
Christian Grün1 Dec 2014 13:40 #
Hi Andy,
the problem is fixed. It had been introduced by the in-place document replacements of 8.0.
Christian
Quoted text · Christian Grün · 55 lines
On Mon, Dec 1, 2014 at 2:54 AM, Christian Grün <christian.gruen at gmail.com> wrote: > https://github.com/BaseXdb/basex/issues/1034 > > To be continued. > > > On Mon, Dec 1, 2014 at 2:38 AM, Christian Grün > <christian.gruen at gmail.com> wrote: >> Hi Andy, >> >> Thanks for reporting this. I can reproduce this bug. >> >> A fix will be available soon, >> Christian >> >> >> On Sun, Nov 30, 2014 at 10:47 PM, Andy Bunce <bunce.andy at gmail.com> wrote: >>> Hi, >>> With the latest snapshot. running the attached code twice generates the >>> error below. >>> The intent to create or update a database from the data files. >>> >>> Regards >>> /Andy >>> >>> Improper use? Potential bug? Your feedback is welcome: >>> Contact: basex-talk at mailman.uni-konstanz.de >>> Version: BaseX 8.0 beta 07cd3e9 >>> Java: Oracle Corporation, 1.7.0_60 >>> OS: Windows 8.1, amd64 >>> Stack Trace: >>> java.lang.RuntimeException: Insertion at beginning of populated table. >>> at org.basex.util.Util.notExpected(Util.java:60) >>> at org.basex.io.random.TableDiskAccess.insert(TableDiskAccess.java:325) >>> at org.basex.data.Data.insert(Data.java:915) >>> at org.basex.data.Data.insert(Data.java:806) >>> at org.basex.data.atomic.Replace.apply(Replace.java:64) >>> at >>> org.basex.data.atomic.AtomicUpdateCache.applyUpdates(AtomicUpdateCache.java:298) >>> at >>> org.basex.data.atomic.AtomicUpdateCache.execute(AtomicUpdateCache.java:282) >>> at org.basex.query.up.DataUpdates.apply(DataUpdates.java:164) >>> at org.basex.query.up.ContextModifier.apply(ContextModifier.java:110) >>> at org.basex.query.up.Updates.apply(Updates.java:133) >>> at org.basex.query.QueryContext.iter(QueryContext.java:348) >>> at org.basex.query.QueryContext.execute(QueryContext.java:590) >>> at org.basex.query.QueryProcessor.execute(QueryProcessor.java:100) >>> at org.basex.core.cmd.AQuery.query(AQuery.java:82) >>> at org.basex.core.cmd.XQuery.run(XQuery.java:22) >>> at org.basex.core.Command.run(Command.java:360) >>> at org.basex.core.Command.execute(Command.java:94) >>> at org.basex.gui.GUI.exec(GUI.java:470) >>> at org.basex.gui.GUI.access$5(GUI.java:427) >>> at org.basex.gui.GUI$8.run(GUI.java:414)
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery