[prev in list] [next in list] [prev in thread] [next in thread]
List: jibx-devs
Subject: [jibx-devs] [jira] (JIBX-446) org.jibx.runtime.JiBXException: Expected "{http://www.opentravel.org/O
From: "Don Corley (JIRA)" <jira () codehaus ! org>
Date: 2012-01-17 16:13:03
Message-ID: 1267406569.20393.1326816783487.JavaMail.j2ee-jira () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]
[ https://jira.codehaus.org/browse/JIBX-446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288554#comment-288554 \
]
Don Corley commented on JIBX-446:
---------------------------------
Maulik,
What version of the OTA spec are you using... 2006A or 2006B? Are you using the stock \
schema or are there any changes?
It would help greatly if you can you attach a simple project (to this bug report) \
with a short code example that fails with the same error. In your code you could \
create an object, marshal it to xml, then display the xml. Probably less than 40 \
lines of code.
The 'Success' tag is used on almost every opentravel return message. I'm not sure \
which message you are using. Perhaps you could use a simple return message such as \
OTA_PingRS in your example.
Thanks,
Don
> org.jibx.runtime.JiBXException: Expected \
> "{http://www.opentravel.org/OTA/2003/05}TH_PackageSearchRS" end tag, found \
> "{http://www.opentravel.org/OTA/2003/05}Success" start tag (line 2, \
> col 126)
> ------------------------------------------------------------------------------------ \
> ------------------------------------------------------------------------------------------------------------
>
> Key: JIBX-446
> URL: https://jira.codehaus.org/browse/JIBX-446
> Project: JiBX
> Issue Type: Bug
> Components: CodeGen
> Affects Versions: JiBX 1.2.3
> Environment: Windows XP, Apache Ant 1.7, Tomcat 5.5, Java 5
> Reporter: Maulik Kayastha
> Assignee: Don Corley
> Priority: Blocker
> Labels: Jibx, exception, runtime
> Attachments: binding.xml, response.xml
>
>
> Hi,
> While unmarshalling response xml, I am getting exception as below -
> org.jibx.runtime.JiBXException: Expected \
> "{http://www.opentravel.org/OTA/2003/05}TH_PackageSearchRS" end tag, found \
> "{http://www.opentravel.org/OTA/2003/05}Success" start tag (line 2, col 126) I have \
> attached binding.xml and response.xml(which I am trying to unmarshall) for the \
> reference. code to unmarshall response document:
> private Object unmarshallJibxMessage(Document responseDocument) throws \
> CommsException {
> DOMImplementationLS domImplementation =
> (DOMImplementationLS) responseDocument.getImplementation();
> LSSerializer lsSerializer = domImplementation.createLSSerializer();
> String xml = lsSerializer.writeToString(responseDocument);
> try
> {
> IBindingFactory factory =
> BindingDirectory.getFactory("binding", "org.jibx.opentravel.ota._2003._05");
> IUnmarshallingContext unMarshallingContext = factory.createUnmarshallingContext();
> unMarshallingContext.setDocument(new StringReader(xml));
> return unMarshallingContext.unmarshalElement();
> }
> catch (JiBXException e)
> {
> LOG.error("JIBX Unmarshalling Exception", e);
> throw new CommsException("JIBX Unmarshalling Exception", e);
> }
> }
> Please let me know if any further information is required.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic