When I try to define the following mappings, I get a NullPointer exception:
<binding add-constructors="true" direction="output"> <mapping abstract="true" class="org.regenstrief.queryposer.QueryCutpointAdapter"> <value name="name" get-method="getName" style="attribute" usage="optional"/> <value name="ordinal" field="ordinal" style="attribute"/> </mapping> <mapping name="cutpoint" class="org.regenstrief.queryposer.QueryCutpointText" extends="org.regenstrief.queryposer.QueryCutpointAdapter"> <structure field="operand"/> </mapping> <mapping name="cutpoint" class="org.regenstrief.queryposer.QueryCutpointConcept" extends="org.regenstrief.queryposer.QueryCutpointAdapter"> <structure field="operand"/> </mapping> </binding> I have a parent QueryCutpointAdapter object and different cutpoint types as children. Text and Concept cutpoints have a different xml form. I understand that for unmarshalling, there probably needs to be unique element names. However, since I have explicitly declared my direction as output only in the binding definition, shouldn't I be able to marshal objects with the same element names as long as repeated element names each point to a unique object type? If not, how can I serialize my xml with the above object structure? Thanks, Tammy -- Tammy Dugan Computer Programmer Regenstrief Institute, Inc. Medical Informatics Health Information and Translational Sciences (HITS) Building 410 West 10th Street, Suite 2000 Indianapolis, IN 46202 Main: 317.423.5500 Fax: 317.423.5695 IU campus mail address: HS, 2000 (317) 423 - 5541 Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users