File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Castor Unmarshalling Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Castor Unmarshalling Error" Watch "Castor Unmarshalling Error" New topic
Author

Castor Unmarshalling Error

Sree Potluri
Ranch Hand

Joined: Aug 12, 2009
Posts: 62
When I am unmarshalling the xml, I get Null pointer Exception, can any one help me please.

org.exolab.castor.mapping.Mapping setBaseURL
INFO: C:\Users\NetBeansProjects\TestWebApplication\src\java\testing is not a URL, trying to convert it to a file URL
Oct 10, 2010 1:54:56 AM org.exolab.castor.mapping.Mapping loadMapping
INFO: Loading mapping descriptors from book-mapping.xml
Subject null
First Name null
java.lang.NullPointerException
Last Name null
at testing.BookUnmarshall.main(BookUnmarshall.java:39)
BUILD SUCCESSFUL (total time: 2 seconds)

sample.xml



BookUnmarshal.java
book-mapping.xml

BookInfo.java
BookTitle.java

OtherAuthors.java

Info.java
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor Unmarshalling Error