users@jaxb.java.net

IllegalArgumentException

From: Prabhu Velayutham <Prabhu.Velayutham_at_sun.com>
Date: Thu, 23 Jan 2003 09:20:27 -0700

This message was originally submitted by Prabhu.Velayutham_at_SUN.COM to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.

----------------- Message requiring your approval (71 lines) ------------------
Hi,

I am new to jaxb, i would appreciate if someone can help me get over
this problem.

I wrote a simple xsd and used the xjc.sh script to parse and compile the
xsd.

The command i used for this is

./xjc.sh -d search ncd.xsd

and here is the output of this command.

Exception in thread "main" java.lang.IllegalArgumentException
    at com.sun.xml.xsom.impl.ElementDecl.<init>(ElementDecl.java:40)
    at
com.sun.xml.xsom.impl.parser.state.elementDeclBody.makeResult(elementDeclBody.java:615)
    at
com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:419)
    at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:188)
    at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:248)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
    at org.iso_relax.verifier.impl.VerifierFilterImpl.endElement(Unknown
Source)
    at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
    at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:222)
    at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
    at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
    at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
    at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.Driver.run(Driver.java:268)
    at com.sun.tools.xjc.Driver.main(Driver.java:88)


Can some one throw some light on what is going wrong. I tried the same
command with the Primer.xsd which came along with the JAXB package. It
works fine.

Thanks in Advance

Prabhu