Hi,
I have an abstract mapping which has double value. If I use
field="fileldname" form the binding works ok. But if I changed it to the
form set-method="method-name" the following exception is thrown at runtime:
java.lang.VerifyError: (class: com/waveman/campaign/entity/Equipment,
method: JiBX_catalog_binding_unmarshal_1_1 signature:
(Lorg/jibx/runtime/impl/UnmarshallingContext;)Lcom/waveman/campaign/entity/Equipment;)
Attempt to split long or double on the stack
at
com.waveman.campaign.entity.JiBX_catalog_bindingCommunicationEquipment_access.unmarshal()
at
com.waveman.campaign.entity.JiBX_catalog_bindingEquipment_access.unmarshal()
at
com.waveman.campaign.entity.Catalog.JiBX_catalog_binding_unmarshal_1_0(Catalog.java)
at
com.waveman.campaign.entity.JiBX_catalog_bindingCatalog_access.unmarshal()
at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unknown Source)
at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unknown Source)
at
com.waveman.campaign.jibx.JibxXmlConverter.initCatalog(JibxXmlConverter.java:154)
This seems to happen to the field which type is double. All other type
works ok with set-method.
The following are excerpt from my mapping file:
<mapping class="com.waveman.campaign.entity.Equipment"
abstract="true">
<value name="name" set-method="setName" />
<value name="range" set-method="setRange" />
</mapping>
<mapping name="communication"
class="com.waveman.campaign.entity.CommunicationEquipment"
extends="com.waveman.campaign.entity.Equipment">
<structure map-as="com.waveman.campaign.entity.Equipment" />
</mapping>
<mapping name="detection"
class="com.waveman.campaign.entity.DetectionEquipment"
extends="com.waveman.campaign.entity.Equipment">
<structure map-as="com.waveman.campaign.entity.Equipment" />
</mapping>
The value that cause exception is "range". If I change that line to:
<value name="range" field="range" />
Everything will works just fine.
Please note that this binding definition is input only (binding
direction="input") so there is no need to declare get-method.
Does anyone know the cause of the exception?
Regards,
Vairoj
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users