JAXBException while unmarshalling an xml file

Discussion in 'Java' started by Sikku, Dec 9, 2006.

  1. Sikku

    Sikku Guest

    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.....
     
    Sikku, Dec 9, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris
    Replies:
    0
    Views:
    404
    Chris
    Feb 26, 2004
  2. Timo Nentwig

    JAXB unmarshalling problem

    Timo Nentwig, May 26, 2004, in forum: Java
    Replies:
    0
    Views:
    477
    Timo Nentwig
    May 26, 2004
  3. Asra
    Replies:
    0
    Views:
    1,194
  4. Chris
    Replies:
    0
    Views:
    452
    Chris
    Feb 26, 2004
  5. Marcin 'golish' Goliszewski

    XML DSig - NullPointerException while unmarshalling

    Marcin 'golish' Goliszewski, Mar 6, 2007, in forum: Java
    Replies:
    0
    Views:
    788
    Marcin 'golish' Goliszewski
    Mar 6, 2007
Loading...

Share This Page