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