I fixed a couple bugs with CollectionFieldHandler last week, have you
tried
the latest CVS version just to see if it fixes the problem you are
seeing?

Thanks,

--Keith

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I have a schema that contains IDREFS. I set the property
> org.exolab.castor.builder.javaclassmapping=type in castorbuilder.properties
> file for source code generation. I was able to generate the source
> including class descriptors and compile them. But when I used the generated
> classes in my program and try to marshal the object with IDREFS, I got the
> following exception:
> 
> java.lang.NullPointerException
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:806)
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:538)
>         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:458)
>         at com.tms.decaf.bus.schema.domain.Claim.marshal(Claim.java:258)
> 
> The schema looks like this:
> 
>         <xs:complexType name="Claim">
>                 <xs:complexContent>
>                         <xs:extension base="ClaimBase" abstract="true">
>                                 <xs:attribute name="claimAcceptorRole" 
>type="xs:IDREFS"/>
>                         </xs:extension>
>                 </xs:complexContent>
>         </xs:complexType>
> 
> I checked the source code, it seems to be a bug in CollectionFieldHandler. Any 
>ideas? Thanks a lot.
> 
> -Roy
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to