• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnmarshalException:

 
Prasath Premkumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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

<xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<jxb:class name="FIXadaptor2"/>
</xsd:appinfo>
</xsd:annotation>

<xsd:sequence>
.....
.....
</FIXadapter2>

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
Sheriff
Posts: 21117
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FIXadapter2 or FIXadaptor2?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic