- Dennis
Hartman, Brett wrote:
When specifying an optional structure in my mapping file, I'm encountering the following error at runtime:
class: test/Reporter, method: JiBX_reporterbinding_marshal_1_0 signature: (Lorg/jibx/runtime/impl/MarshallingContext;)V) Inconsistent stack height 3 != 1
I no longer get this error message if I remove the usage="optional" attribute on the structure mapping.
Here's a distilled version of the mapping file that produces this error:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE binding SYSTEM "W:\Projects\jibx\docs\binding.dtd"> <binding> <mapping name="Reporter" class="test.Reporter"> <structure name="Consumeable" field="consumeable" usage="optional"> <value name="itemId" field="itemID" style="attribute"/> <value name="CurrentQuantity" field="currentQuantity" style="element"/> </structure> </mapping> </binding>
And the sample xml file I'm trying to process: <?xml version="1.0" encoding="UTF-8"?> <Reporter> <Consumeable itemId="0"> <CurrentQuantity>3.14159</CurrentQuantity> </Consumeable> </Reporter>
Am I doing something wrong, or is this a bug in the current beta 3 release?
Thanks, Brett Hartman
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op�k _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
