Error while adding a document.
Tuesday, 3 December 2013 · 3 messages · last reply 4 Dec 2013
TR
Tojo Rakotoarison3 Dec 2013 19:54 #
Hello to the BaseX Team !
I am new to BaseX and exploring its functionalities.
I have created an empty database named 'NBS' and I have got a script in which I have the following lines :
OPEN NBS
SHOW USERS
ADD nbs_1Chr.xml
When I am trying to run it in the basexclient, it raises an error and does not want to add the document. Here is the output.
Do you have any idea where the problem comes from ? The XML file nbs_1Chr.xml is in the current working directory.
Thank you very much !
---
Quoted text · 1 line
> RUN insert_nbs_test.bxs
Username Read Write Create Admin
------------------------------------
admin X X X X
1 Users.
Database 'NBS' was opened in 1.93 ms.
Improper use? Potential bug? Your feedback is welcome:
Contact: basex-talk at mailman.uni-konstanz.de
Version: BaseX 7.6
Java: Sun Microsystems Inc., 1.6.0_22
OS: Linux, i386
Stack Trace:
java.lang.RuntimeException: Data Access out of bounds:
- pre value: 0
- #used blocks: 0
- #total locks: 0
- access: -1 (0 > -1]
org.basex.util.Util.notexpected(Util.java:53)
org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) org.basex.io.random.TableDiskAccess.read5(TableDiskAccess.java:211) org.basex.data.Data.textOff(Data.java:422)
org.basex.data.DiskData.text(DiskData.java:234)
org.basex.index.resource.Docs.paths(Docs.java:107)
org.basex.index.resource.Docs.insert(Docs.java:142)
org.basex.index.resource.Resources.insert(Resources.java:73) org.basex.data.Data.insert(Data.java:676)
org.basex.core.cmd.Add.run(Add.java:118)
org.basex.core.Command.run(Command.java:342)
org.basex.core.cmd.Execute.run(Execute.java:49)
org.basex.core.Command.run(Command.java:342)
org.basex.core.Command.exec(Command.java:321)
org.basex.core.Command.execute(Command.java:78)
org.basex.server.ClientListener.run(ClientListener.java:145)
--
Tojo Rakotoarison
*@tojo_rs <https://twitter.com/#%21/tojo_rs> *
CG
Christian Grün3 Dec 2013 22:39 #
Hi Toko,
thanks for your mail. Is the NBS database empty? Could you provide us with the document that causes the problem?
Christian
Quoted text · Tojo Rakotoarison · 61 lines
> I am new to BaseX and exploring its functionalities. > I have created an empty database named 'NBS' and I have got a script in > which I have the following lines : > > OPEN NBS > SHOW USERS > ADD nbs_1Chr.xml > > When I am trying to run it in the basexclient, it raises an error and does > not want to add the document. Here is the output. > > Do you have any idea where the problem comes from ? The XML file > nbs_1Chr.xml is in the current working directory. > Thank you very much ! > > --- >> RUN insert_nbs_test.bxs > Username Read Write Create Admin > ------------------------------------ > admin X X X X > > 1 Users. > Database 'NBS' was opened in 1.93 ms. > Improper use? Potential bug? Your feedback is welcome: > Contact: basex-talk at mailman.uni-konstanz.de > Version: BaseX 7.6 > Java: Sun Microsystems Inc., 1.6.0_22 > OS: Linux, i386 > Stack Trace: > java.lang.RuntimeException: Data Access out of bounds: > - pre value: 0 > - #used blocks: 0 > - #total locks: 0 > - access: -1 (0 > -1] > org.basex.util.Util.notexpected(Util.java:53) > org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) > org.basex.io.random.TableDiskAccess.read5(TableDiskAccess.java:211) > org.basex.data.Data.textOff(Data.java:422) > org.basex.data.DiskData.text(DiskData.java:234) > org.basex.index.resource.Docs.paths(Docs.java:107) > org.basex.index.resource.Docs.insert(Docs.java:142) > org.basex.index.resource.Resources.insert(Resources.java:73) > org.basex.data.Data.insert(Data.java:676) > org.basex.core.cmd.Add.run(Add.java:118) > org.basex.core.Command.run(Command.java:342) > org.basex.core.cmd.Execute.run(Execute.java:49) > org.basex.core.Command.run(Command.java:342) > org.basex.core.Command.exec(Command.java:321) > org.basex.core.Command.execute(Command.java:78) > org.basex.server.ClientListener.run(ClientListener.java:145) > > > -- > Tojo Rakotoarison > @tojo_rs > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
TR
Tojo Rakotoarison4 Dec 2013 20:35 #
Thanks for the reply !
Unluckily (or luckily), I dropped the database and created a new one, and now it works fine. But I shall send the data if I can reproduce the problem.
2013/12/3 Christian Grün <christian.gruen at gmail.com>
Quoted text · Christian Grün · 71 lines
> Hi Toko, > > thanks for your mail. Is the NBS database empty? Could you provide us > with the document that causes the problem? > > Christian > ___________________________ > > > I am new to BaseX and exploring its functionalities. > > I have created an empty database named 'NBS' and I have got a script in > > which I have the following lines : > > > > OPEN NBS > > SHOW USERS > > ADD nbs_1Chr.xml > > > > When I am trying to run it in the basexclient, it raises an error and > does > > not want to add the document. Here is the output. > > > > Do you have any idea where the problem comes from ? The XML file > > nbs_1Chr.xml is in the current working directory. > > Thank you very much ! > > > > --- > >> RUN insert_nbs_test.bxs > > Username Read Write Create Admin > > ------------------------------------ > > admin X X X X > > > > 1 Users. > > Database 'NBS' was opened in 1.93 ms. > > Improper use? Potential bug? Your feedback is welcome: > > Contact: basex-talk at mailman.uni-konstanz.de > > Version: BaseX 7.6 > > Java: Sun Microsystems Inc., 1.6.0_22 > > OS: Linux, i386 > > Stack Trace: > > java.lang.RuntimeException: Data Access out of bounds: > > - pre value: 0 > > - #used blocks: 0 > > - #total locks: 0 > > - access: -1 (0 > -1] > > org.basex.util.Util.notexpected(Util.java:53) > > org.basex.io.random.TableDiskAccess.cursor(TableDiskAccess.java:488) > > org.basex.io.random.TableDiskAccess.read5(TableDiskAccess.java:211) > > org.basex.data.Data.textOff(Data.java:422) > > org.basex.data.DiskData.text(DiskData.java:234) > > org.basex.index.resource.Docs.paths(Docs.java:107) > > org.basex.index.resource.Docs.insert(Docs.java:142) > > org.basex.index.resource.Resources.insert(Resources.java:73) > > org.basex.data.Data.insert(Data.java:676) > > org.basex.core.cmd.Add.run(Add.java:118) > > org.basex.core.Command.run(Command.java:342) > > org.basex.core.cmd.Execute.run(Execute.java:49) > > org.basex.core.Command.run(Command.java:342) > > org.basex.core.Command.exec(Command.java:321) > > org.basex.core.Command.execute(Command.java:78) > > org.basex.server.ClientListener.run(ClientListener.java:145) > > > > > > -- > > Tojo Rakotoarison > > @tojo_rs > > > > _______________________________________________ > > BaseX-Talk mailing list > > BaseX-Talk at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >
--
Tojo Rakotoarison
*@tojo_rs <https://twitter.com/#%21/tojo_rs> *
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery