Applet having validation exceptions
Oxygen general issues.
Applet having validation exceptions
I'm currently trying to build an applet based on the AuthorComponentSample example provided. However I'm getting the following exception on the automatic validation thread every time I perform an action. The frameworks and options zip I'm using are working without exceptions in the example applet, so I can only guess I'm missing something in my code. Please can you provide some details in what I can look at?
ERROR: ro.sync.exml.o.b.bb - Errors when create transformer : [[SystemID: jar:file:/C:/repository/ro/oxygen/oxygen/13.2/oxygen-13.2.jar!/builtin/schematronDispatcher.xsl
Severity: error
Line: -1
Column: -1
EndLine: -1
EndColumn: -1
Length: -1
Offset: -1
Message: This parser does not support specification "null" version "null"]]
ERROR: ro.sync.exml.editor.ib - Automatically validation thread stopped because java.lang.NullPointerException
java.lang.NullPointerException
at ro.sync.exml.o.b.bb.<init>(Unknown Source)
at ro.sync.exml.o.e.g(Unknown Source)
at ro.sync.exml.o.e.e(Unknown Source)
at ro.sync.exml.editor.xmleditor.p.m(Unknown Source)
at ro.sync.exml.editor.xmleditor.p.n(Unknown Source)
at ro.sync.exml.editor.xmleditor.fb.c(Unknown Source)
at ro.sync.exml.editor.xmleditor.qb.getErrorScanner(Unknown Source)
at ro.sync.exml.editor.validate.c.d(Unknown Source)
at ro.sync.exml.editor.validate.o.g(Unknown Source)
at ro.sync.exml.editor.validate.o.n(Unknown Source)
at ro.sync.exml.editor.ib.e(Unknown Source)
at ro.sync.exml.editor.ib$1.xsc(Unknown Source)
at ro.sync.ui.application.s.run(Unknown Source)
Re: Applet having validation exceptions
Hi,
It's as if the Schematron rules which are applied when a DITA topic is validated are applied using an older XML parser than the one which comes with the applet.
The applet comes with a bunch of library references, among which the reference to the Xerces library:
Did you add additional JAR libraries to the applet?
If so, did you reference them before or after the libraries which come by default with the applet?
If so, it might be possible that one of your additional libraries has a META-INF property which forces another XML parser to be used.
Regards,
Radu
It's as if the Schematron rules which are applied when a DITA topic is validated are applied using an older XML parser than the one which comes with the applet.
The applet comes with a bunch of library references, among which the reference to the Xerces library:
Code: Select all
<jar href="lib/oxygen-xercesImpl.jar"/>
If so, did you reference them before or after the libraries which come by default with the applet?
If so, it might be possible that one of your additional libraries has a META-INF property which forces another XML parser to be used.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Applet having validation exceptions
Also, if you could enable the Java console and send us the entire contents of the console to support@oxygenxml.com this could help us further in finding out the problem.
Regards,
Radu
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Applet having validation exceptions
I've been using Maven to build the project and it would appear I have used the xercesImpl from mvnrepository.com to build the project. I've moved them to point to the oxygen jars and I no longer have the exception.
Thanks for the speedy response.
Thanks for the speedy response.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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