[
http://jira.codehaus.org/browse/JIBX-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-154.
----------------------------------
Assignee: Dennis Sosnoski
Resolution: Fixed
Fix Version/s: JiBX 1.2
Fixed by CodeGen replacement for xsd2jibx, released as part of 1.2. Verified
fix with the simple schema supplied inline in comments.
> Fails when <xsd:group> falls within an <xsd:complexType> block
> --------------------------------------------------------------
>
> Key: JIBX-154
> URL: http://jira.codehaus.org/browse/JIBX-154
> Project: JiBX
> Issue Type: Bug
> Components: xsd2jibx
> Affects Versions: xsd2jibx-beta0.2
> Environment: Suse SLED10 Linux, Sun Java 1.5.0_11
> Reporter: Randal Cobb
> Assignee: Dennis Sosnoski
> Priority: Critical
> Fix For: JiBX 1.2
>
> Attachments: PayrollFederalTaxWithholding-RAC.wsdl~,
> PayrollFederalTaxWithholding-RAC.xsd, soap_encoding.xsd
>
>
> When using the xsd2jibx tool (rebuilt and repackaged to use the jibx 1.1.3
> libraries) on the attached xsd, the following exception is thrown:
> org.jibx.xsd2jibx.GeneratorException: unable to unmarshall
> Root cause: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
> found "group" start tag (line 18, col 31)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:380)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> Caused by: org.jibx.runtime.JiBXException: Expected "complexType" end tag,
> found "group" start tag (line 18, col 31)
> at
> org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:793)
> at org.jibx.xsd2jibx.JiBX_xsdXsdComplexType_access.unmarshal()
> at org.jibx.xsd2jibx.JiBX_MungeAdapter.JiBX_xsd_unmarshal_1_1()
> at org.jibx.xsd2jibx.XsdSchema.JiBX_xsd_unmarshal_1_0(XsdSchema.java)
> at org.jibx.xsd2jibx.JiBX_xsdXsdSchema_access.unmarshal()
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538)
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2681)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:378)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> Cause: org.jibx.runtime.JiBXException: Expected "complexType" end tag, found
> "group" start tag (line 18, col 31)
> at
> org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:793)
> at org.jibx.xsd2jibx.JiBX_xsdXsdComplexType_access.unmarshal()
> at org.jibx.xsd2jibx.JiBX_MungeAdapter.JiBX_xsd_unmarshal_1_1()
> at org.jibx.xsd2jibx.XsdSchema.JiBX_xsd_unmarshal_1_0(XsdSchema.java)
> at org.jibx.xsd2jibx.JiBX_xsdXsdSchema_access.unmarshal()
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538)
> at
> org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2681)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:378)
> at org.jibx.xsd2jibx.XsdSchema.unmarshall(XsdSchema.java:254)
> at org.jibx.xsd2jibx.Generator.execute(Generator.java:170)
> at org.jibx.xsd2jibx.Generate.generate(Generate.java:131)
> at org.jibx.xsd2jibx.Generate.main(Generate.java:182)
> This same xsd works fine when used with XMLBeans
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs