BUG Oxygen 8.2 Catalog file templates create illegal file
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 6
- Joined: Fri Jul 30, 2004 5:54 am
- Location: Perth, Western Australia
- Contact:
BUG Oxygen 8.2 Catalog file templates create illegal file
On Windows XP, creating a catalog file with the OASIS Template gives you a file which will get an I/O error when Oxgen attempts to use it. You have to turn on verbosity for catalogs to see the error as it shows during the Catalog loading in the Catalog pane, NOT in the Error pane.
The only way I could reliably see the error occurring was to quit and relaunch Oxygen.
It has taken me HOURS (overnight with a deadline looming today) to work out this was the bug and that it wasn't anything I had typed into the file (vent, vent, rant, rant ...) and to work out how to reliably see that was the problem.
I proved it was OK by just copying the content from the main catalog.xml and pasting it into the file with a select all so it is something about the XML but I am not inclined to spend any more time digging. I thought it was the UTF-8 encoding flag but removing that didn't seem to make a difference, might be because I was tired and didn't force a refresh somehow.
The only way I could reliably see the error occurring was to quit and relaunch Oxygen.
It has taken me HOURS (overnight with a deadline looming today) to work out this was the bug and that it wasn't anything I had typed into the file (vent, vent, rant, rant ...) and to work out how to reliably see that was the problem.
I proved it was OK by just copying the content from the main catalog.xml and pasting it into the file with a select all so it is something about the XML but I am not inclined to spend any more time digging. I thought it was the UTF-8 encoding flag but removing that didn't seem to make a difference, might be because I was tired and didn't force a refresh somehow.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
If I create a new XML document by going to New from Templates and selecting OASIS XML Catalog 1.0 or OASIS XML Catalog 1.1 the document is validated without error by the Validate Document action even if I do not have an Internet connection. That means the system ID of the catalog is also resolved through an XML catalog, that is the default oXygen catalog. I do not understand how you can get an I/O error when the catalog is used. What is the full error message? Can you post the complete content of the catalog file?
Regards,
Sorin
If I create a new XML document by going to New from Templates and selecting OASIS XML Catalog 1.0 or OASIS XML Catalog 1.1 the document is validated without error by the Validate Document action even if I do not have an Internet connection. That means the system ID of the catalog is also resolved through an XML catalog, that is the default oXygen catalog. I do not understand how you can get an I/O error when the catalog is used. What is the full error message? Can you post the complete content of the catalog file?
Regards,
Sorin
-
- Posts: 6
- Joined: Fri Jul 30, 2004 5:54 am
- Location: Perth, Western Australia
- Contact:
Sorry, I'm struggling with deadlines here so it will be Saturday probably before I can respond in more detail.
Briefly, the catalog gets an I/O error that is visible when you turn on the Verbose catalog option but the loading step that encounters the error doesn't seem to occur until you restart the app.
the steps are roughly something like:
1) create your catalog file with the template
2) make it a user catalog (ie: add to your list of catalogs)
3) quit
4) launch Oxygen and see the list of catalog stuff being resolved.
One of the reasons it took me a long time to work out what was going wrong is that the error is NOT reported as an error on an error tab - it appears as just another line in the Catalog list, Here's a copy of that.
Briefly, the catalog gets an I/O error that is visible when you turn on the Verbose catalog option but the loading step that encounters the error doesn't seem to occur until you restart the app.
the steps are roughly something like:
1) create your catalog file with the template
2) make it a user catalog (ie: add to your list of catalogs)
3) quit
4) launch Oxygen and see the list of catalog stuff being resolved.
One of the reasons it took me a long time to work out what was going wrong is that the error is NOT reported as an error on an error tab - it appears as just another line in the Catalog list, Here's a copy of that.
Code: Select all
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/custom/schema/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/schema/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/schema/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.3/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.2/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/5.0/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/svg/dtd/svgcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/jsp/xsd/jspcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml/dtd/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/dtd/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/schema/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/fo/xsd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xs3p/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xmlspec/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/dev/simonTasks/ANZLIC_1_0/trunk/resources/anzlic-tools/ANZLIC-Catalog.xml
SystemID: null
Description: Failed to load catalog, I/O error: file:/C:/dev/simonTasks/ANZLIC_1_0/trunk/resources/anzlic-tools/ANZLIC-Catalog.xml
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/xml.xsd = null
SystemID: null
Description: Resolved public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN System: http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd = file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/schematron1-5.xsd = null
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/xml.xsd = null
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/iso-schematron.xsd = null
SystemID: null
Description: Resolved public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN System: http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd = file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Resolved public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN System: http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd = file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Resolved public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN System: http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd = file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Resolved public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
SystemID: null
Description: Public: -//OASIS//DTD Entity Resolution XML Catalog V1.0//EN System: http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd = file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog1.0.dtd
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
It seems a problem of disk access. Does the path exist on disk? Can you open ANZLIC-Catalog.xml in oXygen and validate it as an XML file?AndyDent wrote:Code: Select all
Description: Failed to load catalog, I/O error: file:/C:/dev/simonTasks/ANZLIC_1_0/trunk/resources/anzlic-tools/ANZLIC-Catalog.xml
Regards,
Sorin
-
- Posts: 6
- Joined: Fri Jul 30, 2004 5:54 am
- Location: Perth, Western Australia
- Contact:
Yes the file exists, yes I have been editing it in oxygen and it validates - I had suspicions the problem was due to location of a path with various characters in the name (eg: underscores, or a deeper tree) so did a few variants with identical results.sorin wrote:It seems a problem of disk access. Does the path exist on disk? Can you open ANZLIC-Catalog.xml in oXygen and validate it as an XML file?AndyDent wrote:Code: Select all
Description: Failed to load catalog, I/O error: file:/C:/dev/simonTasks/ANZLIC_1_0/trunk/resources/anzlic-tools/ANZLIC-Catalog.xml
I have over twenty years experience primarily as a software developer so know what it is like to be on the receiving end of insufficiently detailed bug reports but I need more sleep and unfortunately have to get certain things out the door (all being happily edited in Oxygen) before I can return to the bug in much more detail. Hopefully what I have now given you will be enough.
It does appear that there were no illegal characters in the file and, as I recall, all I did to make the I/O error go away was copy the contents of the main catalog.xml into there, replacing all the original text from the template. At that stage I still had the main catalog.xml active so saw double messages from some things. I then took out the nextCatalog elements and started putting in my rewriteURI and rewriteSystem elements as it was working.
I have replicated the following with project-based catalogs as well as the purely global settings shown in this test.
- create a new catalog file from templates using the Oasis XML Catalog 1.1 template
- confirm the file validates
- save this file as c:\testTemplateCatalog.xml
- go to options - Preferences, choose XML Catalog and add a New catalog entry (see screenshot below), browsing to the file gets an entry of file:/C:/testTemplateCatalog.xml
- make sure verbosity is On
- close all documents
- choose New Project, so there won't be an existing project being opened on startup
- quit Oxygen
- relaunch Oxygen
- no Catalog pane appears yet as nothing is loaded
- open an existing document such as a .sch or .xsd file that has namespaces that need resolving with uri's that are not in the inbuilt stuff
- observe the Catalogs pane appears and has the loading I/O error shown (see below)
Code: Select all
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/custom/schema/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/tei/schema/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/tei/xml/teip4/schema/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.3/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/4.2/dtd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/docbook/5.0/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/svg/dtd/svgcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/jsp/xsd/jspcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xml/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml/dtd/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/dtd/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xhtml11/schema/xhtmlcatalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/fo/xsd/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xs3p/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/frameworks/xmlspec/catalog.xml
SystemID: null
Description: Loading catalog: file:/C:/testTemplateCatalog.xml
SystemID: null
Description: Failed to load catalog, I/O error: file:/C:/testTemplateCatalog.xml
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/xml.xsd = null
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/schematron1-5.xsd = null
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/xml.xsd = null
SystemID: null
Description: Public: null System: jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%208.2/lib/oxygen.jar!/builtin/iso-schematron.xsd = null

The (generated) catalog file is at
http://www.oofile.com.au/files/misc/tes ... atalog.xml
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Thank you for the catalog file and for the steps for reproducing the I/O error. We fixed the problem. The system ID of an XML Catalog 1.1, that is "http://www.oasis-open.org/committees/en ... atalog.dtd" is not resolved correctly to the internal schema which is shipped with oXygen when the catalog file is parsed. The fix will be included in the next version of oXygen.AndyDent wrote:The (generated) catalog file is atCode: Select all
SystemID: null
Description: Failed to load catalog, I/O error: file:/C:/testTemplateCatalog.xml
http://www.oofile.com.au/files/misc/tes ... atalog.xml
To avoid the error please remove the DOCTYPE declaration from your XML Catalog 1.1 files which you added in Options -> Preferences -> XML -> XML Catalog. After removing the DOCTYPE declaration the catalog files will be used correctly for entity and URI resolution.
Regards,
Sorin
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: BUG Oxygen Catalog file templates create illegal file
Post by Frank Ralf »
I get the same issue when creating an XML Catalog 1.1 file with oXygen 15.2 (File > New OASIS XML Catalog > XML Catalog 1.1). Xerxes throws the following error message:
The reason is that the DTD isn't available at http://www.oasis-open.org/committees/en ... atalog.dtd Has the URL changed? Which is the correct one to use for XML Catalog 1.1 files?
TIA
Frank
Code: Select all
HttpExceptionWithDetails-404 Not Found for: http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd
TIA
Frank
Frank Ralf
parson AG
www.parson-europe.com
parson AG
www.parson-europe.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: BUG Oxygen 8.2 Catalog file templates create illegal fil
Hi,
The URL is not important, that's how it was in 2005 when the OASIS standard for XML Catalogs was approved. If it complains about the URL, it's trying to retrieve it from the web, which is the wrong thing to do.
This usually means you've disabled the default catalogs that handle OASIS XML catalogs (yes, there is an XML catalog for OASIS XML catalogs).
Check in Options > Preferences, XML > XML Catalog and make sure that the Use default catalog option is enabled. If you don't want to enable that for some reason, you should manually add to the list of catalogs the catalog for OASIS XML catalogs: Oxygen\frameworks\xml\catalog.xml
Regards,
Adrian
The URL is not important, that's how it was in 2005 when the OASIS standard for XML Catalogs was approved. If it complains about the URL, it's trying to retrieve it from the web, which is the wrong thing to do.
This usually means you've disabled the default catalogs that handle OASIS XML catalogs (yes, there is an XML catalog for OASIS XML catalogs).
Check in Options > Preferences, XML > XML Catalog and make sure that the Use default catalog option is enabled. If you don't want to enable that for some reason, you should manually add to the list of catalogs the catalog for OASIS XML catalogs: Oxygen\frameworks\xml\catalog.xml
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 482
- Joined: Thu Jan 23, 2014 2:29 pm
- Location: Hamburg
- Contact:
Re: BUG Oxygen 8.2 Catalog file templates create illegal fil
Post by Frank Ralf »
Thanks for the quick reply! I did indeed disable the default catalog while experimenting with different catalog settings. Re-activating validates the XML Catalog 1.1 file.
Frank
Frank
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service