Page 1 of 1

Applet having validation exceptions

Posted: Mon May 28, 2012 1:00 pm
by neon096
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

Posted: Mon May 28, 2012 2:28 pm
by Radu
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:

Code: Select all

<jar href="lib/oxygen-xercesImpl.jar"/>
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

Re: Applet having validation exceptions

Posted: Mon May 28, 2012 2:28 pm
by Radu
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

Re: Applet having validation exceptions

Posted: Mon May 28, 2012 3:55 pm
by neon096
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.