• 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

JAXB and XmlJavaTypeAdapter

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to make use of XmlJavaTypeAdapter in JAXB(2.0.3) but I can't figure out why I'm getting the following exception





The problem is that I'm not able to return an Array of type domain.DummyType when I marshall the object. However, only returning a DummyType object works fine. I've also tried to return a List, Collection etc. but I'm getting exceptions thrown for all java types. Seems that the context is only aware of the objects I've defined in my jaxb.index file.



This is the lines of code that does the marshalling


Many thanks
Sven
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic