Hi Andrey,

Maybe your database has been damaged in an earlier state. The INSPECT
command might give you a hint. You can use EXPORT and CREATE to
generate a completely new database instance.

If you get the same error with a completely new instance, feel free to
give us an update.

Hope this helps,
Christian



On Mon, Apr 9, 2018 at 3:32 PM, Andrey Fedosenko
<andrey.fedose...@startmatter.com> wrote:
> Hi Christian,
>
>> optimize
> Improper use? Potential bug? Your feedback is welcome:
> Contact: basex-talk@mailman.uni-konstanz.de
> Version: BaseX 9.0
> Java: Oracle Corporation, 1.8.0_161
> OS: Linux, amd64
> Stack Trace:
> java.lang.ArrayIndexOutOfBoundsException: 257
>         at org.basex.util.Compress.isSet(Compress.java:148)
>         at org.basex.util.Compress.unpack(Compress.java:110)
>         at org.basex.data.DiskData.txt(DiskData.java:307)
>         at org.basex.data.DiskData.text(DiskData.java:273)
>         at org.basex.core.cmd.Optimize.optimize(Optimize.java:145)
>         at org.basex.core.cmd.Optimize.optimize(Optimize.java:92)
>         at org.basex.core.cmd.Optimize$1.run(Optimize.java:50)
>         at org.basex.core.cmd.ACreate.update(ACreate.java:90)
>         at org.basex.core.cmd.Optimize.run(Optimize.java:41)
>         at org.basex.core.Command.run(Command.java:257)
>         at org.basex.core.Command.execute(Command.java:93)
>         at org.basex.server.ClientListener.run(ClientListener.java:140)
>
> 2018-04-06 14:29 GMT+03:00 Christian Grün <christian.gr...@gmail.com>:
>> Hi Andrey,
>>
>> Does the problem also occur with 9.0?
>>
>> Thanks in advance,
>> Christian
>>
>>
>>
>> On Fri, Apr 6, 2018 at 12:27 PM, Andrey Fedosenko
>> <andrey.fedose...@startmatter.com> wrote:
>>> Hello,
>>> I have the following error while executing the "OPTIMIZE ALL" command:
>>>
>>> mproper use? Potential bug? Your feedback is welcome:
>>> Contact: basex-talk@mailman.uni-konstanz.de
>>> Version: BaseX 8.6.7
>>> Java: Oracle Corporation, 1.7.0_151
>>> OS: Linux, amd64
>>> Stack Trace:
>>> java.lang.ArrayIndexOutOfBoundsException: 3
>>>     at org.basex.util.Compress.unpack(Compress.java:120)
>>>     at org.basex.data.DiskData.txt(DiskData.java:284)
>>>     at org.basex.data.DiskData.text(DiskData.java:251)
>>>     at org.basex.io.serial.Serializer.node(Serializer.java:415)
>>>     at org.basex.io.serial.Serializer.node(Serializer.java:158)
>>>     at org.basex.io.serial.Serializer.node(Serializer.java:345)
>>>     at org.basex.io.serial.Serializer.node(Serializer.java:158)
>>>     at org.basex.io.serial.Serializer.serialize(Serializer.java:109)
>>>     at org.basex.core.cmd.OptimizeAll$DBParser.parse(OptimizeAll.java:200)
>>>     at org.basex.build.Builder.parse(Builder.java:77)
>>>     at org.basex.build.DiskBuilder.build(DiskBuilder.java:77)
>>>     at org.basex.core.cmd.OptimizeAll.optimizeAll(OptimizeAll.java:122)
>>>     at org.basex.core.cmd.OptimizeAll$1.run(OptimizeAll.java:42)
>>>     at org.basex.core.cmd.ACreate.update(ACreate.java:90)
>>>     at org.basex.core.cmd.OptimizeAll.run(OptimizeAll.java:38)
>>>     at org.basex.core.Command.run(Command.java:257)
>>>     at org.basex.core.Command.execute(Command.java:93)
>>>     at org.basex.server.ClientListener.run(ClientListener.java:139)

Reply via email to