Thanks for the trace. After looking at it I found a problem in the handling of non-optional short values within the JiBX code. I'll get this fixed in CVS today, but a quick workaround for now is to just make the short value optional by giving it a default value that should never be seen in your data (perhaps -1). Making it optional will avoid the problem, and as long as the default isn't ever present in data your marshalling/unmarshalling should work fine.

I'd tried testing shorts to make sure they were still working properly yesterday, but happened to try it with an optional item... Thanks for reporting the problem.

- Dennis

Grzemowski, Michal wrote:

Hi Dennis,

Thanks for prompt response!

Here's the stack trace you asked for:
org.jibx.runtime.impl.UnmarshallingContext.toStart(UnmarshallingContext.java:489)
org.jibx.runtime.impl.UnmarshallingContext.parsePastStartTag(UnmarshallingContext.java:749)
org.jibx.runtime.impl.UnmarshallingContext.parseContentShort(UnmarshallingContext.java:1606)
org.jibx.runtime.impl.UnmarshallingContext.parseElementShort(UnmarshallingContext.java:1625)
PRMSG.PricingMessage.JiBX_mapping_unmarshal_1_0(PricingMessage.java)
PRMSG.JiBX_mappingPricingMessage_access.unmarshal()
org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2568)
org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2736)
JibXMappingTest.main(JibXMappingTest.java:35)

Please let me know what you think,

Regards,

Michal



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dennis Sosnoski
Sent: Wednesday, May 26, 2004 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [jibx-users] Newbe help request - "Expected start tag, found end tag"...



Hi Michal,

I don't see anything obviously wrong here. It might help to see the stack trace on the exception, since that will show which class JiBX was attempting to unmarshal. You might also try running your binding with the supplied org.jibx.extras.TestRoundtrip code (see http://jibx.sourceforge.net/tools.html) to make sure that fails in the same way.

 - Dennis

Grzemowski, Michal wrote:



Hi,

First I wanted to say hi to everybody. I am pretty excited

about such technology like JiBX. I need it to map java objects generated from CORBA IDL to XMLs used as an input for a web based application.


I am very sorry if I have omitted this problem being

discussed somewhere in the documentation, if so please direct me to the proper source of black magic lore;-)


I am trying to do a simple round trip

marshalling/demarshalling. The XML generated from the object looks ok, but when I try to unmarshal it back to another object, then all I get is the following exception:


"Expected start tag, found end tag "msgNumber" (line 3, col 30)"
I tried to change the order of tags and the exception always


refers to the first tag.

...




-------------------------------------------------------
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






-------------------------------------------------------
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_id149&alloc_id?66&opĚk
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users






-- 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