Hello all, I just would like to know if this wanted or not ...
When I run the following query in the GUI with all databases closed
for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs
it returns the correct dataset.
The same query put into an xquery:eval
xquery:eval("for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs")
gives a result if the database "examples" has been opened. With no open database I get an error message "Improper use or potential bug ...." and the console the GUI is running in return the following stacktrace:
java.io.IOException: Stream Closed java.io.RandomAccessFile.seek(Native Method) org.basex.io.random.DataAccess.cursor(DataAccess.java:229) org.basex.io.random.DataAccess.readToken(DataAccess.java:168) org.basex.data.DiskData.txt(DiskData.java:267) org.basex.data.DiskData.text(DiskData.java:235) org.basex.io.serial.Serializer.node(Serializer.java:389) org.basex.io.serial.Serializer.serialize(Serializer.java:99) org.basex.io.serial.Serializer.serialize(Serializer.java:84) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:80) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:75) org.basex.core.cmd.AQuery.query(AQuery.java:80) org.basex.core.cmd.XQuery.run(XQuery.java:22) 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.gui.GUI.exec(GUI.java:397) org.basex.gui.GUI$7.run(GUI.java:349)
Hi Marco,
does the problem persist with 7.7 beta?
Christian ___________________________
2013/6/13 Marco Lettere marco.lettere@dedalus.eu:
Hello all, I just would like to know if this wanted or not ...
When I run the following query in the GUI with all databases closed
for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs
it returns the correct dataset.
The same query put into an xquery:eval
xquery:eval("for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs")
gives a result if the database "examples" has been opened. With no open database I get an error message "Improper use or potential bug ...." and the console the GUI is running in return the following stacktrace:
java.io.IOException: Stream Closed java.io.RandomAccessFile.seek(Native Method) org.basex.io.random.DataAccess.cursor(DataAccess.java:229) org.basex.io.random.DataAccess.readToken(DataAccess.java:168) org.basex.data.DiskData.txt(DiskData.java:267) org.basex.data.DiskData.text(DiskData.java:235) org.basex.io.serial.Serializer.node(Serializer.java:389) org.basex.io.serial.Serializer.serialize(Serializer.java:99) org.basex.io.serial.Serializer.serialize(Serializer.java:84) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:80) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:75) org.basex.core.cmd.AQuery.query(AQuery.java:80) org.basex.core.cmd.XQuery.run(XQuery.java:22) 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.gui.GUI.exec(GUI.java:397) org.basex.gui.GUI$7.run(GUI.java:349)
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Christian, no I've not yet tried with 7.7. As a further hint it seems to really depend on the size of uploaded data. My tree structure contains small xml resources that act as catalogs together with larger resources that are actually rdf files. I upload from the GUI by adding "*.rdf" as extension and checking the "skip corrupted files" checkbox. This causes the described misbehaviour. If I remove the "*.rdf" extension thus uploading only the small .xml resources everything works smoothly. Have you a way of testing one such scenario? Otherwise let me know I'll send you a zipped (~2megs) copy of my data in a private email to try it out. Thank you, M.
On 06/13/2013 05:12 PM, Christian Grün wrote:
Hi Marco,
does the problem persist with 7.7 beta?
Christian ___________________________
2013/6/13 Marco Lettere marco.lettere@dedalus.eu:
Hello all, I just would like to know if this wanted or not ...
When I run the following query in the GUI with all databases closed
for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs
it returns the correct dataset.
The same query put into an xquery:eval
xquery:eval("for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs")
gives a result if the database "examples" has been opened. With no open database I get an error message "Improper use or potential bug ...." and the console the GUI is running in return the following stacktrace:
java.io.IOException: Stream Closed java.io.RandomAccessFile.seek(Native Method) org.basex.io.random.DataAccess.cursor(DataAccess.java:229) org.basex.io.random.DataAccess.readToken(DataAccess.java:168) org.basex.data.DiskData.txt(DiskData.java:267) org.basex.data.DiskData.text(DiskData.java:235) org.basex.io.serial.Serializer.node(Serializer.java:389) org.basex.io.serial.Serializer.serialize(Serializer.java:99) org.basex.io.serial.Serializer.serialize(Serializer.java:84) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:80) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:75) org.basex.core.cmd.AQuery.query(AQuery.java:80) org.basex.core.cmd.XQuery.run(XQuery.java:22) 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.gui.GUI.exec(GUI.java:397) org.basex.gui.GUI$7.run(GUI.java:349)
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
no I've not yet tried with 7.7.
I remember there was a fix around this, so it could be worth trying the updated version.
Otherwise let me know I'll send you a zipped (~2megs) copy of my data in a private email to try it out. Thank you,
Generally yes, but I’m currently more than busy. Maybe someone else can help out? Christian
Hi Christian, 7.7 snapshot does solve the issue. Since it's hard for me to understand where the problem might because of the behaviour being rather byzantine I was wondering whether there is the possibility to get a reference to the related bug description? Thank you for your help. M.
On 06/13/2013 06:08 PM, Christian Grün wrote:
no I've not yet tried with 7.7.
I remember there was a fix around this, so it could be worth trying the updated version.
Otherwise let me know I'll send you a zipped (~2megs) copy of my data in a private email to try it out. Thank you,
Generally yes, but I’m currently more than busy. Maybe someone else can help out? Christian
Hi Marco,
there have been hundreds of changes in the code over the last months, so I’m sorry I can’t give you an easy answer on that. If you are interested in more details, feel free to check out our code base and use git bisect [1] to track down the relevant commit. It may even be sufficient to scan through the commits of the FNQuery class, which contains the implementation of xquery:eval [2].
Best, Christian
[1] https://www.kernel.org/pub/software/scm/git/docs/git-bisect.html [2] https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/query/f... ___________________________
2013/6/14 Marco Lettere marco.lettere@dedalus.eu:
Hi Christian, 7.7 snapshot does solve the issue. Since it's hard for me to understand where the problem might because of the behaviour being rather byzantine I was wondering whether there is the possibility to get a reference to the related bug description? Thank you for your help. M.
On 06/13/2013 06:08 PM, Christian Grün wrote:
no I've not yet tried with 7.7.
I remember there was a fix around this, so it could be worth trying the updated version.
Otherwise let me know I'll send you a zipped (~2megs) copy of my data in a private email to try it out. Thank you,
Generally yes, but I’m currently more than busy. Maybe someone else can help out? Christian
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
The thing is much trikier than expected because it depends on the database. I uploaded the directory structure that represents the database up to another server and the behaviour is the same. But if I try to open a collection (inside an xquery:eval like in the example reported) of another database on this new server it works perfectly.... So it looks like the database is corrupted ... but I've just uploaded it. So might it relate to the upload operation? M.
On 06/13/2013 04:56 PM, Marco Lettere wrote:
Hello all, I just would like to know if this wanted or not ...
When I run the following query in the GUI with all databases closed
for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs
it returns the correct dataset.
The same query put into an xquery:eval
xquery:eval("for $rvs at $pos in collection('examples/valuesets/resolved') return $rvs")
gives a result if the database "examples" has been opened. With no open database I get an error message "Improper use or potential bug ...." and the console the GUI is running in return the following stacktrace:
java.io.IOException: Stream Closed java.io.RandomAccessFile.seek(Native Method) org.basex.io.random.DataAccess.cursor(DataAccess.java:229) org.basex.io.random.DataAccess.readToken(DataAccess.java:168) org.basex.data.DiskData.txt(DiskData.java:267) org.basex.data.DiskData.text(DiskData.java:235) org.basex.io.serial.Serializer.node(Serializer.java:389) org.basex.io.serial.Serializer.serialize(Serializer.java:99) org.basex.io.serial.Serializer.serialize(Serializer.java:84) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:80) org.basex.query.iter.ValueBuilder.serialize(ValueBuilder.java:75) org.basex.core.cmd.AQuery.query(AQuery.java:80) org.basex.core.cmd.XQuery.run(XQuery.java:22) 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.gui.GUI.exec(GUI.java:397) org.basex.gui.GUI$7.run(GUI.java:349)
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de