This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Castor Unmarshalling Error  RSS feed

 
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
Boost this thread!