File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes [Castor]  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "[Castor]  "unmarshalling exception: unable to find FieldDescriptor for"" Watch "[Castor]  "unmarshalling exception: unable to find FieldDescriptor for"" New topic
Author

[Castor] "unmarshalling exception: unable to find FieldDescriptor for"

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Hi,

I am using Castor when unmarshalling data.

Anyone have any idea on how to fix this?

Below are my codes.



(Above are from the Spring in Action book.)
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2049
Anyways, just so I can proceed, I tried to change the class returned by the web service (changed client, xsd, mapping.xml, etc.).

Instead of returning a PokerHandType (an enum), I returned a Card[]. It works.

This didnt solve the original problem but this is okay for my hello world-level of study at the moment.
 
 
subject: [Castor] "unmarshalling exception: unable to find FieldDescriptor for"
 
Similar Threads
get java object and display in XML format
Castor unable to Map - please help
Problem in castor please help
Error while unmarshalling xml (Castor 1.3, JDK 1.5)
Caused by: java.lang.InstantiationException