<namespace uri="mynsuri" default="elements" prefix="myprefix"/>
DomMapperBase.findNamespaceIndex(null,"mynsuri") returns -1.
Hi Dennis,
I found a second, now serious, issue here.
After I change my declaration to
<namespace uri="mynsuri" default="elements"/>
I get an exception if I unmarshall, then marshall my document.But this only happens with attributes within elements being marshalled. They should have no namespace set from unmarshalling (only elements should) but they actually DO have the namespaceURI "".
This leads to
DomMapperBase.findNamespaceIndex(null,"") returns -1
(stack trace appended).This means that our documents cannot contain variable content with attributes, a severe limitation for us (if we want to marshall). I do not see how we could work around this issue. Any idea?
--
java.lang.ArrayIndexOutOfBoundsException: -1
at org.jibx.runtime.impl.StreamWriterBase.writePrefix(StreamWriterBase.java:242)
at org.jibx.runtime.impl.XMLWriterBase.addAttribute(XMLWriterBase.java:335)
at org.jibx.extras.DomMapperBase.marshalElement(DomMapperBase.java:264)
at org.jibx.extras.DomMapperBase.marshalNode(DomMapperBase.java:148)
at org.jibx.extras.DomMapperBase.marshalContent(DomMapperBase.java:181)
at org.jibx.extras.DomMapperBase.marshalElement(DomMapperBase.java:274)
at org.jibx.extras.DomMapperBase.marshalNode(DomMapperBase.java:148)
at org.jibx.extras.DomMapperBase.marshalContent(DomMapperBase.java:181)
at org.jibx.extras.DomMapperBase.marshalElement(DomMapperBase.java:274)
at org.jibx.extras.DomElementMapper.marshal(DomElementMapper.java:126)
at com.livis.formsx.desc.ElementValueX.JiBX_xfb_marshal_3_0(ElementValueX.java)
at com.livis.formsx.desc.JiBX_xfbElementValueX_access.marshal()
at com.livis.formsx.desc.Form$Field.JiBX_xfb_marshal_2_0(Form.java)
at com.livis.formsx.desc.JiBX_xfbForm$Field_access.marshal()
at com.livis.formsx.desc.Form$Field.marshal(Form.java)
at com.livis.formsx.desc.JiBX_MungeAdapter.JiBX_xfb_marshal_1_1()
at com.livis.formsx.desc.Form.JiBX_xfb_marshal_2_0(Form.java)
at com.livis.formsx.desc.JiBX_xfbForm_access.marshal()
at com.livis.formsx.desc.Form.marshal(Form.java)
at com.livis.formsx.desc.JiBX_MungeAdapter.JiBX_xfb_marshal_1_1()
at com.livis.formsx.desc.FormX.JiBX_xfb_marshal_1_0(FormX.java)
at com.livis.formsx.desc.JiBX_xfbFormX_access.marshal()
at com.livis.formsx.desc.FormX.marshal(FormX.java)
at org.jibx.runtime.impl.MarshallingContext.marshalRoot(MarshallingContext.java:907)
at org.jibx.runtime.impl.MarshallingContext.marshalDocument(MarshallingContext.java:955)
at com.livis.formsx.beans.FormBuilder.writeFormX(FormBuilder.java:187)
at com.livis.formsx.beans.FormBuilder.persist(FormBuilder.java:113)
at com.livis.formsx.beans.TestViewer.main(TestViewer.java:141)
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
