• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UnmarshalException:

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FIXadapter2 or FIXadaptor2?
 
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic