Hi Angelina,
OK, I'll run your schema fragment here, when I get a chance, and see if I can see what's going on. Thanks, --Keith [EMAIL PROTECTED] wrote: > > Thanks Keith. I ran against a CVS checkout and the error is the same: > > [java] java.lang.IllegalArgumentException: '-ERROR-IF-THIS-IS-USED-' is > not a valid Java identifier. > [java] at org.exolab.javasource.JField.setName(JField.java:189) > [java] at org.exolab.javasource.JField.<init>(JField.java:80) > [java] at > org.exolab.castor.builder.DescriptorSourceFactory.createDescriptor(Descripto > rSourceFactory.java:297) > [java] at > org.exolab.castor.builder.DescriptorSourceFactory.createSource(DescriptorSou > rceFactory.java:222) > [java] at > org.exolab.castor.builder.SourceGenerator.processJClass(SourceGenerator.java > :1302) > [java] at > org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGenerator > .java:1033) > [java] at > org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerator.java > :866) > [java] at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav > a:348) > [java] at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav > a:410) > [java] at > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.jav > a:441) > [java] at > org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:797) > [java] Exception in thread "main" > > I'd be happy to try any other ideas. > > Thanks! > > -Angelina > > > -----Original Message----- > > From: Keith Visco [mailto:[EMAIL PROTECTED] > > Sent: Thursday, July 15, 2004 3:49 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [castor-user] [XML] Error traceback from > > generator with choice in > > > > > > > > > > Angelina, > > > > Can you try running the schema, just for debugging purposes, > > with the CVS version of Castor, it has some improvements to > > the error messages in this particular case. > > > > --Keith > > > > > [EMAIL PROTECTED] wrote: > > > > > > When the Castor source generator runs against my schema, I get the > > > following traceback: > > > > > > [java] java.lang.IllegalArgumentException: > > > '-ERROR-IF-THIS-IS-USED-' is not a valid Java identifier. > > > [java] at > > > org.exolab.javasource.JField.setName(JField.java:189) > > > [java] at > > org.exolab.javasource.JField.<init>(JField.java:80) > > > > > > [java] at > > > > > org.exolab.castor.builder.DescriptorSourceFactory.createDescriptor(Des > > > criptorSourceFactory.java:297) > > > > > > [java] at > > > > > org.exolab.castor.builder.DescriptorSourceFactory.createSource(Descrip > > > torSourceFactory.java:222) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.processJClass(SourceGenerato > > > r.java:1302) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.processComplexType(SourceGen > > > erator.java:1033) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.createClasses(SourceGenerato > > > r.java:866) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat > > > or.java:348) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat > > > or.java:410) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerat > > > or.java:441) > > > > > > [java] at > > > > > org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:79 > > > 7) > > > > > > [java] Exception in thread "main" > > > > > > This occurs (I believe) from the following schema snippet: > > > > > > <complexType name="TaskType"> > > > <sequence minOccurs="0" maxOccurs="unbounded"> > > > <element name="Statuses" type="myns:StatusesType" > > minOccurs="0" > > > maxOccurs="unbounded"/> > > > <choice minOccurs="0" maxOccurs="1"> > > > <element name="Abort" type="myns:AbortType" minOccurs="0" > > > maxOccurs="unbounded"/> > > > <element name="Run" type="myns:RunType" minOccurs="0" > > > maxOccurs="unbounded"/> > > > .. > > > </choice> > > > </sequence> > > > </complexType> > > > > > > Any ideas where the '-ERROR-IF-THIS-IS-USED' comes from? It's not > > > anywhere in my schema and I can't even find the string when > > searching > > > on the Castor source. > > > > > > Thanks! > > > > > > -Angelina Talley > > > > > > --------------------------------------------------------------- > > > ----------------------------------------------------------- > > > If you wish to unsubscribe from this mailing, send mail to > > > [EMAIL PROTECTED] with a subject of: > > > unsubscribe castor-user > > > > > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-user > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-user ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
