BaseXdb/basex — Issue #410: Improper use/potential bug. Database corrupt
Author: mikehawkes
Created: 2012-03-01 17:03:53+00:00
State: open

Is there any way to fix a database error, or have I lost all my data?

From the command-line:

Every query I run against this data set now returns an error.
```
> xquery //audit

Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk@mailman.uni-konstanz.de
Version: BaseX 7.1.1
Java: Apple Inc., 1.6.0_29
OS: Mac OS X, x86_64
Stack Trace:
java.lang.RuntimeException: Not expected: Data Access out of bounds [pre:256, indexSize:2, access:2 > 1].
org.basex.util.Util.notexpected(Util.java:67)
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:404)
org.basex.io.random.TableDiskAccess.read2(TableDiskAccess.java:122)
org.basex.data.Data.name(Data.java:395)
org.basex.data.Data.name(Data.java:410)
org.basex.io.serial.Serializer.node(Serializer.java:260)
org.basex.io.serial.Serializer.node(Serializer.java:175)
org.basex.query.item.DBNode.serialize(DBNode.java:138)
org.basex.core.cmd.AQuery.query(AQuery.java:104)
org.basex.core.cmd.XQuery.run(XQuery.java:22)
org.basex.core.Command.run(Command.java:328)
org.basex.core.Command.exec(Command.java:309)
org.basex.core.Command.execute(Command.java:77)
org.basex.server.ClientListener.run(ClientListener.java:198)

```