Hi Paul,

I'm not sure what could be going on with this, but it's related to the extends="..." processing at runtime. From what you show I'd think you could just eliminate the extends="..." links completely and the problem would probably go away. extends="..." is really only intended for the equivalent of schema substitution groups, so unless that's what you're doing it's not really needed.

If you've got the current simplified code to demonstrate the problem please enter a bug in Jira and attach the code, test data, and binding along with a build.xml so I can make sure it gets fixed. Thanks,

 - Dennis

Paul Abbott wrote:

Hi,
I'm getting the above error message at run time with I try to marshal a tree of objects. I'm using the following mappings which compile without error;

<binding>
     <mapping name="rule" class="Rule">
<collection field="selectors" type="java.util.ArrayList" item-type="Subject" usage="optional"/>
     </mapping>

     <mapping class="ElementSelector" abstract="true">
     </mapping>

<mapping name="typeSelector" class="TypeSelector" extends="ElementSelector">
     </mapping>

     <mapping class="Subject" abstract="true"/>

<mapping name="subjectSelector" class="SubjectSelector" extends="Subject"> <structure get-method="getElementSelector" set-method="setElementSelector" usage="optional">
               <!-- This will contain an object of type TypeSelector -->
         </structure>
     </mapping>

</binding>

I've simplified the mapping for this posting, before you ask "why are you doing that?"

The Java objects are as follows;
ElementSelector and Subject are both interfaces
Rule, TypeSelector and SubjectSelector and concrete classes, TypeSelector implements ElementSelector and SubjectSelector implements Subject.

There appears to be a problem with the use of 2 abstract mappings, one inside the other. Has anyone else seen this kind of problem?

Paul Abbott

Volantis Systems Ltd.



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to