hi susan

this sounds like a bug to me (the schema generation stuff is still experimental, i'm afraid).

if you'd be willing to create a unit test demonstrating this bug and contribute it to apache by attaching to a bugzilla report, it would greatly increase the chances of this being fixed promptly.

TIA

- robert

On 17 Jan 2005, at 16:02, Susan Liu wrote:

I am trying to write xml schema for a cyclic Bean(A include B, B include A).

The Bean definition used LoopBean.java in the example:

public class LoopBean
{
   private static int count = 0;
   private static final int max_count = 100;

   private LoopBean friend;

   private String name;
  .........................

}


The code to generate the XML Schema for this Bean: (from the example)

     SchemaTranscriber transcriber = new SchemaTranscriber();

transcriber.getXMLIntrospector().getConfiguration().setElementNameMappe r(new
HyphenatedNameMapper());


transcriber.getXMLIntrospector().getConfiguration().setAttributeNameMap per(n
ew HyphenatedNameMapper());


transcriber.getXMLIntrospector().getConfiguration().setAttributesForPri mitiv
es(false);


transcriber.getXMLIntrospector().getConfiguration().setWrapCollectionsI nElem
ent(false);
//transcriber.getXMLIntrospector().setMapIDs(true);


      System.out.println("before generate schema:");
      Schema schema = transcriber.generate(LoopBean.class);

   .........................


A StackOverflowException was caught when executing the: transcriber.generate(LoopBean.class).

Please help.

Susan


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to