I experience some problems using interface names in methods headers of the
class i want to map to a xml-object-model file.
I have an SAXException, accially an "instantiation error".

The MappingXml documentation suggest a solution that involve to change the
source object-model-xml-file, but ��� i don't want to do that !!!

So, i replace the mapped classes from the interfaces names to basic clases
that implements them.
I replace too the set method to load the object model with the "set-method"
attribute of the "filed" tag.

I don't receive the instantiation error any more, but i get a
nullpointerexception like this:

java.lang.NullPointerException
        at
org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(FieldHandlerImpl.
java:434)
        at
org.exolab.castor.xml.handlers.EnumFieldHandler.setValue(EnumFieldHandler.ja
va:177)
        at
org.exolab.castor.xml.UnmarshalHandler.processAttribute(UnmarshalHandler.jav
a:1737)

The field mapped who is getting errors to load is the follow:

<field name="parameters" type="com.xyz.impl.BasicRuleParameter"
collection="array" set-method="set2">
        <bind-xml name="ruleParameter" node="element"/>
</field>

I will apretiate any help you can give me.
And if i should use a custom FieldHander (somethin i'm suspecting), �where i
can get info of how use them?

Regards,

javier

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

Reply via email to