Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JAXBException while unmarshalling an xml file

Reply
Thread Tools

JAXBException while unmarshalling an xml file

 
 
Sikku
Guest
Posts: n/a
 
      12-09-2006
Hi all,
Im trying to unmarshall an xml file which i have in the form of a
StringReader. When i try to unmarshall it by calling the following
unmarshall method

Envelope env = (Envelope) unmarshaller.unmarshal(new
StreamSource(xmlReader));
its throwing a JAXBException

[12/9/06 15:25:41:859 GMT] 39eb6d00 SystemOut O
DefaultValidationEventHandler: [ERROR]: uncompleted content model.
expecting: <Response>
[12/9/06 15:25:41:219 GMT] 236dad00 SystemErr R
com.sun.msv.verifier.ValidityViolation: uncompleted content model.
expecting: <Response>

can anyone please suggest what might be the possible solution for this
problem.


Thanks in advance.....

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML DSig - NullPointerException while unmarshalling Marcin 'golish' Goliszewski Java 0 03-06-2007 05:29 PM
JAXBException unable to locate bgm.ser Asra Java 0 10-21-2004 08:02 PM
JAXB unmarshalling problem Timo Nentwig Java 0 05-26-2004 09:33 AM
Castor and collections: mapping file needed for unmarshalling? Chris XML 0 02-26-2004 01:59 PM
Castor and collections: mapping file needed for unmarshalling? Chris Java 0 02-26-2004 01:59 PM



Advertisments