[ http://jira.codehaus.org/browse/JIBX-2?page=all ] Dennis Sosnoski closed JIBX-2: ------------------------------
> Unmarshalling error "Expected end tag" reports wrong tag > -------------------------------------------------------- > > Key: JIBX-2 > URL: http://jira.codehaus.org/browse/JIBX-2 > Project: JiBX > Type: Bug > Components: core > Versions: 1.0-beta3a > Reporter: Dennis Sosnoski > Assignee: Dennis Sosnoski > Priority: Minor > Fix For: 1.0-RC1 > Attachments: 3052-01-0103V11.xml, binding.xml > > > In a case where a collection that's expected to be the last part of an > element's content is followed by another element, the error message "Expected > end tag, found start tag..." is generated but identifies the first child > element of the unexpected element. Here's the binding: > <mapping class="cap.data.DataSet" extends="cap.data.Rule" > name="DataSet"> > <structure map-as="cap.data.Rule"/> > <collection add-method="addAction" item-type="cap.data.Action" > iter-method="actionIterator"/> > <collection add-method="addDataItem" > item-type="cap.data.DataItem" iter-method="dataItemIterator"/> > </mapping> > Here's the actual XML: > <DataSet label="START"> > <Message>Is the patient greater than or = 16 years of > age?</Message> > <Selection name="age" required="YES" tabular="NO" type="RADIO"> > <SelectedItem default="NO" returnValue="no" > textEntry="NO">No</SelectedItem> > <SelectedItem default="NO" returnValue="yes" > textEntry="NO">Yes</SelectedItem> > </Selection> > <Action label="REJECT-AGE"> > <Condition>START.age = "no"</Condition> > </Action> > <Action label="REASON"> > <Condition>START.age = "yes"</Condition> > </Action> > </DataSet> > where Selection is a type of cap.data.DataItem. The generated error is > "org.jibx.runtime.JiBXException: Expected end tag, found start tag > "Condition" (line 10, col 15)". > It looks like the collection close handling code needs to be adjusted to make > sure the error message refers to the proper tag. -- 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 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
