Applet having validation exceptions

Oxygen general issues.
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Applet having validation exceptions

Post 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)
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Applet having validation exceptions

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Applet having validation exceptions

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Re: Applet having validation exceptions

Post 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.
Post Reply