File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes UnmarshalException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "UnmarshalException:" Watch "UnmarshalException:" New topic


Prasath Premkumar
Ranch Hand

Joined: Nov 13, 2008
Posts: 43

I validated my schema & xml in JAXP. its validated fine. I created the object model in JAXB using xjc command & wn i try to run run the program in throws

javax.xml.bind.UnmarshalException: unexpected element{} exception.

It is complaining abt FIXadapter2 element which is defined in the schema as

<xsd:element name="FIXadaptor2">

<jxb:class name="FIXadaptor2"/>


the exceptin is :
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"FIXadaptor2"). Expected elements are (none)

Can anyone please help me???

Thanks in advance.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

FIXadapter2 or FIXadaptor2?
I agree. Here's the link:
subject: UnmarshalException:
jQuery in Action, 3rd edition