File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor Unmarshalling Error

 
Sree Potluri
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic