[relaxng-user] Installing custom datatype libraries

Elliotte Harold elharo at metalab.unc.edu
Tue Nov 2 09:53:48 ICT 2004


Hmm, OK, the problem seems to be related to using the executable jing 
script instead of the Java class directly. But there's still a problem. 
This time it loads the BalancedString library and then hits a 
NullPointerException inside 
com.thaiopensource.relaxng.jarv.VerifierHandlerImpl.reset():


~/Desktop/Downloads/jing-20030619/sample/datatype$ java -classpath 
../../bin/jing.jar:datatype-sample.jar 
com.thaiopensource.relaxng.util.Driver datatype-sample.rng valid.xml
Loaded balanced string
Exception in thread "main" java.lang.NullPointerException
         at 
com.thaiopensource.relaxng.jarv.VerifierHandlerImpl.reset(Unknown Source)
         at 
com.thaiopensource.relaxng.impl.PatternValidator.<init>(Unknown Source)
         at 
com.thaiopensource.relaxng.jarv.VerifierHandlerImpl.<init>(Unknown Source)
         at com.thaiopensource.relaxng.jarv.VerifierImpl.<init>(Unknown 
Source)
         at 
com.thaiopensource.relaxng.jarv.SchemaImpl.newVerifier(Unknown Source)
         at 
com.thaiopensource.validate.jarv.VerifierFactorySchemaReader$SchemaImpl.createValidator(Unknown 
Source)
         at 
com.thaiopensource.validate.ValidationDriver.validate(Unknown Source)
         at com.thaiopensource.relaxng.util.Driver.doMain(Unknown Source)
         at com.thaiopensource.relaxng.util.Driver.main(Unknown Source)

Any ideas? has anyone gotten the sample to work? For what it's worth, 
I've seen this on Mac OS X with java 1.4.2 and Linux with Java 1.5.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim



More information about the relaxng-user mailing list