You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by es...@imap3.asu.edu on 2002/12/19 13:58:57 UTC

Difficulties getting Grammar objects with VerifyError

I'm getting VerifyError's trying using the example xni.GrammarBuilder that was 
given with the source code.  The lines below from the sample will also give the 
same result:

SymbolTable sym = new SymbolTable(BIG_PRIME);
XMLGrammarPreparser preparser = new XMLGrammarPreparser(sym);
XMLGrammarPoolImpl grammarPool = new XMLGrammarPoolImpl();
preparser.registerPreparser(XMLGrammarDescription.XML_SCHEMA, null);

Is there some feature or property I am supposed to set somewhere?  And if so, 
which ones?  I'm not intending to use the schema for validation;  I just want 
to access the XSGrammar datastructures from the Grammar object.
Or perhaps a different question: Is there some other way to get a SchemaGrammar 
or Grammar object?  I've looked in the faq's but am still running into dead 
ends.

Thanks in advance
Eric 



Exception in thread "main" java.lang.VerifyError: (class: org/apache/xerces/imp
/xs/traversers/XSDHandler, method: getSchema signature: (Ljava/lang/String;Lorg
apache/xerces/xni/parser/XMLInputSource;ZSLorg/w3c/dom/Element;)Lorg/w3c/dom/Do
ument;) Incompatible object argument for function call
        at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.jav
:237)
        at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.jav
:199)
        at newesttest.main(newesttest.java:5)

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org