Hi,
I'm getting a java.lang.InternalError with the JAXB RI Beta's xjc any
time a schema has an element or attribute of datatype xs:IDREF.
Since this is a VirtualMachineError, my setup might matter:
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
I'm running on Redhat 8.0/i386. I also tried java 1.3.1_06-b01 with the
exact same results.
here's my test 'foo.xsd' that exemplifies the problem:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="
http://www.w3.org/2001/XMLSchema"
targetNamespace="foo">
<xs:element name="bar" type="xs:IDREF"/>
</xs:schema>
and here's the stack trace:
Exception in thread "main" java.lang.InternalError
at
com.sun.tools.xjc.grammar.id.SymbolSpace.getType(SymbolSpace.java:48)
at
com.sun.tools.xjc.grammar.id.IDREFTransducer.getReturnType(IDREFTransducer.java:41)
at
com.sun.tools.xjc.grammar.PrimitiveItem.getType(PrimitiveItem.java:45)
at
com.sun.tools.xjc.grammar.FieldItem.addType(FieldItem.java:139)
at
com.sun.tools.xjc.reader.annotator.RelationNormalizer$Pass1.onOther(RelationNormalizer.java:315)
at com.sun.msv.grammar.OtherExp.visit(OtherExp.java:90)
at
com.sun.tools.xjc.reader.annotator.RelationNormalizer$Pass1.onOther(RelationNormalizer.java:344)
at com.sun.msv.grammar.OtherExp.visit(OtherExp.java:90)
at
com.sun.tools.xjc.reader.annotator.RelationNormalizer$Pass1.onElement(RelationNormalizer.java:181)
at com.sun.msv.grammar.ElementExp.visit(ElementExp.java:61)
at
com.sun.tools.xjc.reader.annotator.RelationNormalizer$Pass1.onOther(RelationNormalizer.java:344)
at com.sun.msv.grammar.OtherExp.visit(OtherExp.java:90)
at
com.sun.tools.xjc.reader.annotator.RelationNormalizer.normalize(RelationNormalizer.java:110)
at
com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:530)
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)
thanks,
john
--
John D. Beatty <beatty-at-sun-dot-com>
Sun Microsystems, Inc.