Hi,

Sorry for attaching the files. The complete log is:

Buildfile: 
C:\Developpement\PackagioV2\WebContent\WEB-INF\generateCetoResponseBeans.xml
castor:gen:ComplexTypes:
[castor-srcgen] Processing 
C:\Developpement\PackagioV2\WebContent\WEB-INF\xsd\xft_ComplexTypes.xsd
[castor-srcgen] Creating classes for: Vaccine
[castor-srcgen] Creating classes for: VaccineType
[castor-srcgen] Creating classes for: EntityQualifiedType
[castor-srcgen] Creating classes for: EntityType
[castor-srcgen] Creating classes for: AtomType
[castor-srcgen] Creating classes for: Station
[castor-srcgen] Creating classes for: StationType
[castor-srcgen] Creating classes for: LocationType
[castor-srcgen] Creating classes for: Situations
[castor-srcgen] Creating classes for: CollectionType
[castor-srcgen] Creating classes for: RoomCategory
[castor-srcgen] Creating classes for: RoomCategoryType
[castor-srcgen] Creating classes for: Routes
[castor-srcgen] Creating classes for: FareBasis_s
[castor-srcgen] Creating classes for: Emails
[castor-srcgen] Creating classes for: Identification
[castor-srcgen] Creating classes for: IdentificationType
[castor-srcgen] Creating classes for: Taxes
[castor-srcgen] Creating classes for: Currency
[castor-srcgen] Creating classes for: CurrencyType
[castor-srcgen] Creating classes for: Carriers
[castor-srcgen] Creating classes for: MinMax
[castor-srcgen] Creating classes for: MinMaxType
[castor-srcgen] Creating classes for: Agents
[castor-srcgen] Creating classes for: Vias
[castor-srcgen] Creating classes for: CollectionLocationType
[castor-srcgen] Creating classes for: Symptom
[castor-srcgen] Creating classes for: SymptomType
[castor-srcgen] Creating classes for: Holder
[castor-srcgen] Creating classes for: TravellerType
[castor-srcgen] Creating classes for: PersonType
[castor-srcgen] Creating classes for: TravelEntityType

BUILD FAILED
C:\Developpement\PackagioV2\WebContent\WEB-INF\generateCetoResponseBeans.xml:40:
 java.lang.NullPointerException

Total time: 6 seconds


I don't know if i there is a place where i can find out more information about 
the NPE.

I am using castor 1.1.2.1, but i have tried also versions 1.1.1 and 1.0.5 and 
the result was the same :(


Thanks for all.

Ezequiel.

-----Message d'origine-----
De : Werner Guttmann [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 13 juillet 2007 23:10
À : [email protected]
Objet : Re: [castor-user] Problem with ant task

Mind showing us the NPE (stacktrace) ? ANd what Castor version are you
using ?

Werner

Ezequiel Puig wrote:
> Hi,
> 
>  
> 
> I am trying to use the ant task over a valid xsd and i am getting a
> _java.lang.NullPointerException_
> 
> I know it looks stupid, but i connot find the error. The xsd is
> enourmous, so it's in the attachement.
> 
>  
> 
> My ant task looks like:
> 
>  
> 
> <?xml version="1.0"?>
> 
> <project default="castor:gen:ComplexTypes" basedir=".">
> 
>  
> 
>       <property name="lib.dir" value="${basedir}/lib" />
> 
>       <property name="src.dir" value="${basedir}/../../src" />
> 
>       <property name="xsd.dir" value="${basedir}/xsd" />
> 
>      
> 
>       <path id="classpath">
> 
>             <fileset dir="${lib.dir}" includes="**/*.jar"/>
> 
>       </path>
> 
>       <target name="castor:gen:ComplexTypes" description="Generate Java
> source files from ComplexTypes XSD.">
> 
>             <taskdef name="castor-srcgen"
> 
>                          classname="org.castor.anttask.CastorCodeGenTask"
> 
>                          classpathref="classpath" />
> 
>             <mkdir dir="generated" />
> 
>             <castor-srcgen file="${xsd.dir}/xft_ComplexTypes.xsd"
> 
>                                 todir="${src.dir}"
> 
>                                 package="domaine.response"
> 
>                                 types="j2"
> 
>                                 verbose="true"
> 
>                                 nameConflictStrategy="informViaLog"
> 
>             />
> 
>     </target>
> 
> </project>
> 
>  
> 
>  
> 
> I have to say that i have used the same ant task with others xsd without
> any problem, so i think whe issue is more xsd related than ant related.
> 
>  
> 
> Thanks for your time and have a nice weekend.
> 
>  
> 
> Ezequiel
> 
>  
> 
>  
> 
> _ _
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to