• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Castor Unmarshalling Error

 
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
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!