Hi, I'm on 8.2.2, but I just tried it with BaseX 8.4 and got the same result. Here is a simple way to reproduce the error:
1. From BaseX GUI, I create a new database from a folder that contains mostly .xml, .xsd and .dtd files (attached). I use the default options from the GUI except:
GENERAL
- Input format XML: *.xml, *.xsd - Check 'Add other files as raw' - Uncheck 'Parse files in archives'
PARSING
- Check 'Use internal XML parser' - Uncheck 'Chop whitespaces'
2. Once the content is loaded, go to the 'Database properties' window for the DB and you'll see that all files are there and that you are able to browse the collections.
3. Click 'Optimize All' and try to browse the collections again. It doesn't work and a 'Stream Closed' error is generated in the terminal windows (details attached)!
France Baril Architecte documentaire / Documentation architect france.baril@architextus.com
Hi France,
I created the database via the GUI as you described, I opened the database properties dialog, I optimized the database, but everything works fine on my system.. Hm. Does it happen every time you are optimizing the database this way? Do you have similar problems on command-line? Could you please run the following command script and report back what happens?
create.bxs _____________________
SET CREATEFILTER *.xml,*.xsd SET ADDARCHIVES false SET ADDRAW true SET CHOP false SET INTPARSE true CREATE DB test-db dita-schemas OPTIMIZE ALL INSPECT ____________________________
You may need to update the path to the 'dita-schemas' directory.
Thanks in advance, Christian
- From BaseX GUI, I create a new database from a folder that contains
mostly .xml, .xsd and .dtd files (attached). I use the default options from the GUI except:
GENERAL
Input format XML: *.xml, *.xsd Check 'Add other files as raw' Uncheck 'Parse files in archives'
PARSING
Check 'Use internal XML parser' Uncheck 'Chop whitespaces'
- Once the content is loaded, go to the 'Database properties' window for
the DB and you'll see that all files are there and that you are able to browse the collections.
- Click 'Optimize All' and try to browse the collections again. It doesn't
work and a 'Stream Closed' error is generated in the terminal windows (details attached)!
France Baril Architecte documentaire / Documentation architect france.baril@architextus.com
Ok, I played with this a lot and was able to get more precise about the issue.
1. I create the DB with the script. 2. I Open the Manage Database window and I can navigate. 3. I Optimize All from the GUI 4. Only the items that were opened in 2 can be opened. The others are shown as empty. 5. I close the Manage Database window and reopen it, I can navigate.
It seems like an issue with the view. The database isn't really corrupted, it can still be queried.
FYI: I'm on OS X 10.10.5.
Regards,
France
On Fri, Mar 4, 2016 at 4:59 AM, Christian Grün christian.gruen@gmail.com wrote:
Hi France,
I created the database via the GUI as you described, I opened the database properties dialog, I optimized the database, but everything works fine on my system.. Hm. Does it happen every time you are optimizing the database this way? Do you have similar problems on command-line? Could you please run the following command script and report back what happens?
create.bxs _____________________
SET CREATEFILTER *.xml,*.xsd SET ADDARCHIVES false SET ADDRAW true SET CHOP false SET INTPARSE true CREATE DB test-db dita-schemas OPTIMIZE ALL INSPECT ____________________________
You may need to update the path to the 'dita-schemas' directory.
Thanks in advance, Christian
- From BaseX GUI, I create a new database from a folder that contains
mostly .xml, .xsd and .dtd files (attached). I use the default options
from
the GUI except:
GENERAL
Input format XML: *.xml, *.xsd Check 'Add other files as raw' Uncheck 'Parse files in archives'
PARSING
Check 'Use internal XML parser' Uncheck 'Chop whitespaces'
- Once the content is loaded, go to the 'Database properties' window for
the DB and you'll see that all files are there and that you are able to browse the collections.
- Click 'Optimize All' and try to browse the collections again. It
doesn't
work and a 'Stream Closed' error is generated in the terminal windows (details attached)!
France Baril Architecte documentaire / Documentation architect france.baril@architextus.com
It seems like an issue with the view.
Ditto! And thanks for reporting it back, it is now fixed [1]. Christian
Thanks!
On Wed, Mar 9, 2016 at 9:13 AM, Christian Grün christian.gruen@gmail.com wrote:
It seems like an issue with the view.
Ditto! And thanks for reporting it back, it is now fixed [1]. Christian
basex-talk@mailman.uni-konstanz.de