Issue Type: Bug Bug
Affects Versions: JiBX 1.2.5
Assignee: Unassigned
Attachments: jibx-test.zip
Components: core
Created: 29/Aug/13 4:32 PM
Description:

I'm getting this error:

org.jibx.runtime.JiBXException: Expected "Ogz" start tag, found "OgzNr" start tag (line 1, col 38)
at org.jibx.runtime.impl.UnmarshallingContext.throwStartTagNameError(UnmarshallingContext.java:220)
at org.jibx.runtime.impl.UnmarshallingContext.matchStart(UnmarshallingContext.java:644)
at org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag(UnmarshallingContext.java:680)
at com.ups.ops.gio.vo.GioOgzVo.JiBX_binding_unmarshal_1_0(GioOgzVo.java)
at com.ups.ops.gio.vo.JiBX_bindingGioOgzVo_access.unmarshal()
at com.ups.ops.gio.vo.GioCurLocGrpVo.JiBX_binding_unmarshal_1_0(GioCurLocGrpVo.java)
at com.ups.ops.gio.vo.GioShuCompositeVo.JiBX_binding_unmarshal_1_0(GioShuCompositeVo.java)
at com.ups.ops.gio.vo.JiBX_bindingGioShuCompositeVo_access.unmarshal()
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2914)

When I try to unmarshal this XML (all one line):

<UpsBasDb><CurLocGrp><Loc><Ogz><OgzNr>3229</OgzNr><Cny><CnyCd>US</CnyCd></Cny></Ogz></Loc><Ts>2012-09-28T00:20:32.000-04:00</Ts></CurLocGrp></UpsBasDb>

However, if I insert a single space charater between the
<Loc> and <Ogz> tags, it works.

Attached is a test case which triggers the exception.

Environment: Windows 7
Project: JiBX
Priority: Blocker Blocker
Reporter: Jeff Prosa
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to