This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB and XmlJavaTypeAdapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB and XmlJavaTypeAdapter" Watch "JAXB and XmlJavaTypeAdapter" New topic

JAXB and XmlJavaTypeAdapter

Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58

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
I agree. Here's the link:
subject: JAXB and XmlJavaTypeAdapter
It's not a secret anymore!