xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25524] - NullPointerException @SchemaTypeImpl.setShortJavaName(SchemaTypeImpl.java:532)
Date Sun, 18 Jan 2004 08:20:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25524>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25524

NullPointerException @SchemaTypeImpl.setShortJavaName(SchemaTypeImpl.java:532)

kkrouse@bea.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From kkrouse@bea.com  2004-01-18 08:20 -------
Here's the repro Steven has.  Both xmlbeans and xerces don't like the schema,
but will still shouldn't NPE.


======> foo.xsd <======
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.w3.org/2001/10/synthesis" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns="http://www.w3.org/2001/10/synthesis" elementFormDefault="qualified">

   <xsd:redefine schemaLocation="foo-core.xsd">

        <xsd:complexType name="speak" mixed="true">
            <xsd:complexContent>
                <xsd:restriction base="speak">
                    <xsd:group ref="speak.class"/>
                </xsd:restriction>
            </xsd:complexContent>
        </xsd:complexType>

    </xsd:redefine>

</xsd:schema>

======> foo-core.xsd <======
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
        elementFormDefault="qualified">

    <xsd:element name="speak" type="speak"/>

    <xsd:group name="speak.class">
        <xsd:sequence>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
                <xsd:element name="metadata">
                    <xsd:complexType>
                        <xsd:choice minOccurs="0" maxOccurs="unbounded">
                            <xsd:any namespace="##other" processContents="lax"/>
                        </xsd:choice>
                        <xsd:anyAttribute namespace="##any"
processContents="strict"/>
                    </xsd:complexType>
                </xsd:element>
            </xsd:choice>
        </xsd:sequence>
    </xsd:group>

    <xsd:complexType name="speak" mixed="true">
        <xsd:group ref="speak.class"/>
    </xsd:complexType>

</xsd:schema>

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message