users@jaxb.java.net

Re: JAXB unable to handle large schema (java.lang.StackOverflowError)

From: Benjamin Shrom <Benjamin.Shrom_at_gtri.gatech.edu>
Date: Mon, 22 Sep 2003 18:37:44 -0400

Thank you for quick response.

I have increased stack memory size to 128mb and fixed collisions,
however i still get StackOverflowError.
Are there any other recipes?
(Attached: schema, build.xml, binding.xjb).
(I also tried -nv in order to exclude schema validation, didn't work either)

Regards,

Benjamin.

Ryan Shoemaker - JavaSoft East wrote:

> Benjamin Shrom wrote:
>
>> Hello,
>>
>> I apologize for sending bug to the comments ng, however i could not
>> find any other way to
>> propagate this bug to the development group.
>>
>
> No problem. I've attached instructions on subscribing and posting to our
> iterest list. This list is actively monitored by the JAXB development
> team. Please send future technical issues to the list.
>
>> JXDD (Justice XML Data Dictionary) schema crashes JAXB with no
>> specific error message. (See log file for details).
>
>
> Can you try increasing the stack size[1] and let me know what happens?
>
>> I've also attached build.xml file that was used.
>>
>
> You're also going to have to resolve the name conflicts[2].
>
> Thanks,
>
> --Ryan
>
> [1] http://java.sun.com/webservices/docs/1.2/jaxb/ReleaseNotes.html
> bullet 7 under "Known Issues"
>
> [2] $JWSDP_HOME/jaxb/samples/fix-collides
>


<jxb:bindings version="1.0"
               xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
               xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <jxb:bindings schemaLocation="jxdds_3.0.0.1.xsd" node="/xs:schema">

    <jxb:schemaBindings>
      <jxb:package name="jxdd"/>

      <jxb:nameXmlTransform>
        <!-- Systematically ensure that symbol space collisions
             between the element symbol space and other symbol
             spaces are resolved by appending "Element" to
             all element interfaces. This customization
             resolves name collision between element FooBar
             and complexType FooBar. The element interface
             for element <FooBar> is FooBarElement because of
             this customization. It will also correct all other
             collisions between element and type definition namespaces.
        -->
        <jxb:elementName suffix="Element"/>
      </jxb:nameXmlTransform>
    </jxb:schemaBindings>

  </jxb:bindings>

</jxb:bindings>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net