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
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk