The data.xml file doesn't appear to match either the error or the binding. Can you check that you're actually using the data file you think you're using (perhaps just create a copy and simplify it down to see what happens to the error)?

The line number reported by the error (in this case, line 14) should show you where the problem is occurring. In this case line 14 of your data.xml doesn't have an </entry>, which makes me think something is wrong with the data you're using. Aside from that, since you're using a custom mar/umar for the HashMaps there could be a problem in that code; it looks like you can instead use the one from the jibx-extras.jar (org.jibx.extras.HashMapperStringToComplex), if you just want the HashMap representation to be what you have in the data.xml you included. You can try using this instead to see if it has the same problem you're seeing with your version.

- Dennis

Sudhendra Seshachala wrote:



Basically I have a object which has HashMap of dbColumns and
HAshMap of tableProperties.
My binding.xml is as follows. The data.xml is also attached.
When I try to run the TestRoundTrip I get the following error
runbindings:
[jar] Building jar: C:\jibx\lib\runtimebindings.jar
runTest16:
[java] org.jibx.runtime.JiBXException: Expected start
tag, found end tag "e
ntry" (line 14, col 48)
[java] at
org.jibx.runtime.impl.UnmarshallingContext.toStart(Unmarshall
ingContext.java:489)
[java] at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(U
nmarshallingContext.java:2561)
[java] at
org.jibx.custombindings.HashMapper.unmarshal(HashMapper.java:
157)
[java] at
example16.DBTable.JiBX_jibx_tutorial_example16_binding_unmars
hal_1_0(DBTable.java)
[java] at
example16.JiBX_jibx_tutorial_example16_bindingDBTable_access.
unmarshal()
[java] at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(U
nmarshallingContext.java:2568)
[java] at
org.jibx.custombindings.HashMapper.unmarshal(HashMapper.java:
157)
[java] at
example16.DBModel.JiBX_jibx_tutorial_example16_binding_unmars
hal_1_0(DBModel.java)
[java] at
example16.JiBX_jibx_tutorial_example16_bindingDBModel_access.
unmarshal()
[java] at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(U
nmarshallingContext.java:2568)
[java] at
org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(
UnmarshallingContext.java:2736)
[java] at
org.jibx.extras.TestRoundtrip.runTest(TestRoundtrip.java:86)
[java] at
org.jibx.extras.TestRoundtrip.main(TestRoundtrip.java:140)
[java] Error round-tripping class: example16.DBModel
[java] with input file example16/data.xml and output
compared to example16
/data.xml
[java] Saved output document file path
C:\jibx\tutorial\temp.xml
BUILD FAILED
file:C:/jibx/tutorial/build.xml:346: Java returned: 1
Any inputs or suggestions ?
Thanks in Advance
Sudhi



-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to