If you can send me (directly, not via the list) a zip file containing the source, the binding, and an ant build.xml to compile the code and run the binding compiler to create this error I'll try it out and see what happens. That's assuming you're actually using the binding compiler when this happens - is that the case, or have you tried taking some code out of the binding compiler and running it on your own?

 - Dennis

[EMAIL PROTECTED] wrote:

Hi All,

When I am below code snippet

BindingElement binding = (BindingElement)uctx.unmarshalDocument(new
FileInputStream(name), null);


on this binding.xml


<?xml version="1.0" encoding="UTF-8"?> <binding forwards="false" value-style="attribute"> <namespace uri="http://ws.indigo.com/xmlschemas/list"; default="elements"/> <mapping class="com.indigo.InputBean" name="inputbean"> <value name="ch" field="ch"/> </mapping> <mapping class="com.indigo.OutputBean" name="outputbean"> <value style="element" name="id" field="Id" usage="optional"/> </mapping> </binding>




I am getting below exception, can anyone please tell what am I missing here ...


java.lang.ArrayIndexOutOfBoundsException: Depth -1 is out of range at org.jibx.runtime.impl.UnmarshallingContext.getStackObject(Unknown Source) at org.jibx.binding.model.ElementBase.validateAttributes(Unknown Source) at org.jibx.binding.model.BindingElement.preSet(Unknown Source) at org.jibx.binding.model.BindingElement.JiBX_jibx_build_src_org_jibx_binding_model_binding_newinstance_3_0(Unknown Source) at org.jibx.binding.model.JiBX_jibx_build_src_org_jibx_binding_model_bindingBindingElement_access.unmarshal()

        at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(Unknown 
Source)
        at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(Unknown 
Source)





Thanks & Regards,
Kumar.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r _______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users






-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to