Hello, if you want to use A as an instance as your mapping suggests you cannot make A abstract. The extends relation is not needed in your context.
Here the snipped that should work: <mapping name="classA" class="mypackage.A" flexible="true" odered="false> <value name="go" field="pepe"/> <value name="two" field="lala"/> </mapping> <mapping name="classB" class="mypackage.B" flexible="true" odered="false> <value name="exam" field="name"/> <value name="exampel" field="num" deserializer="myPackage.deserializeInt/> <structure map-as="mypackage.A"/> </mapping> Mathias -------- Original-Nachricht -------- Datum: Thu, 7 Sep 2006 09:05:00 -0300 Von: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> An: "JiBX users" <jibx-users@lists.sourceforge.net> Betreff: Re: [jibx-users] Binding extended classes > But I do not have an structure inside Class B, that´s why i could not > make it works that way... besides, the jibx compiler throws this error > while compiling: > > Error running binding compiler > > *** Error during code generation - please enter a bug report for this > error in Jira if the problem is not listed as fixed on the online > status page *** > > java.lang.IllegalStateException: Stack size mismatch on branch > in method myPackage.B.JiBX_ConsultaSaldos_unmarshal > generated by [EMAIL PROTECTED] > from stack: > 0: myPackage.B > 1: myPackage.A > to stack: > 0: myPackage.A > > Sugestions? > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users