May be the mapping it's called to serialize an extension o}f your class, or
something like that, because you are not accessing a member field of the
class that you said it's accesible in "direct" mode, isn't it ?

It could help if you post the mapping file and the call to the
marshall/unmarshall with his parameter.

Regards,

javier


> -----Mensaje original-----
> De: Szabo Peter [mailto:[EMAIL PROTECTED]]
> Enviado el: Tuesday, January 07, 2003 8:06 AM
> Para: [EMAIL PROTECTED]
> Asunto: [castor-dev] java.lang.reflect.InvocationTargetException
>
>
> Hello,
>
> We have a fairly complex class modell to be marshalled using
> our own mapping
> file. Now, as the complexity grown, we get
> java.lang.IllegalStateException: Field access error:
> StatusName(java.lang.String) access resulted in exception:
> java.lang.reflect.InvocationTargetException.
> java.lang.IllegalStateException: Field access error:
> StatusName(java.lang.String) access resulted in exception:
> java.lang.reflect.InvocationTargetException
>       at
> org.exolab.castor.mapping.loader.FieldHandlerImpl.getValue(Fie
> ldHandlerImpl.
> java:381)
>       at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:190)
>       at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XML
> ClassDescripto
> rImpl.java:885)
>       at org.exolab.castor.xml.Validator.validate(Validator.java:122)
>       at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:250)
>       at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XML
> ClassDescripto
> rImpl.java:885)
>       at org.exolab.castor.xml.Validator.validate(Validator.java:122)
>       at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:233)
>       at
> org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XML
> ClassDescripto
> rImpl.java:885)
>       at org.exolab.castor.xml.Validator.validate(Validator.java:122)
>       at
> org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:250)
> ... and this is repeated for pages
>
> The first time it occured for a lazy getter (returning the length of a
> list).
>
> The real pain is that I cannot create a simple test
> reproducing it, using a
> pair of classes with a small number of fields  it works fine
> (with exactly
> the same kind of getters, attributes, everything).
>
> Any idea what causes this?
>
> Thanks,
> Peter
>
> -----------------------------------------------------------
> 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