Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor Unmarshalling Error

 
Sree Potluri
Ranch Hand
Posts: 62
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic