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(DescriptorSourceFactory.java:297)
>
> [java] at
> org.exolab.castor.builder.DescriptorSourceFactory.createSource(DescriptorSourceFactory.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.java:348)
>
> [java] at
> org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:410)
>
> [java] at
> org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:441)
>
> [java] at
> org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:797)
>
> [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