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 <[email protected]>:
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

Reply via email to