[jibx-users] Exception: Depth .. is out of range

2005-05-02 Thread babloosony
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] comparision with xml beans

2005-05-02 Thread Dennis Sosnoski
See the Xsd2Jibx tool at http://jibx.sourceforge.net/xsd2jibx/index.html 
This does not support as much of schema as XMLBeans, but does offer a 
reasonable starting point.

 - Dennis
divya reddy wrote:
Hi
 
Is it possible to generate java classes(which further can be used to 
marshal xml) as in xml beans using JiBX
 
Regards,
Divya
 

*Yahoo! India Matrimony* 
http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/*:* 
Find your life partner online 
http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/. 



---
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users


Re: [jibx-users] bug in GenericXMLWriter.java

2005-05-02 Thread Dennis Sosnoski
Thanks for pointing this out, I correct it in the CVS code.
 - Dennis
Jitesh Doshi wrote:
I think I might have found a bug in GenericXMLWriter.java.
The following line ...
   protected void writePrefix(int index) throws IOException {
   try {
   String text = m_prefixes[index];
... should instead be ...
   protected void writePrefix(int index) throws IOException {
   try {
   String text = getNamespacePrefix(index);
... that way it takes into account, the extension namespaces as well. I am
using JiBX bound XML beans with a lot of DOM-based elements embedded in (using
DOMElementMapper). In those case, I get ArrayIndexOutOfBoundsException.
Dennis, what do you think?
--Jitesh
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
jibx-users mailing list
jibx-users@lists.sourceforge.net
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
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users