• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Hibernate Mapping

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I cannot deploy my application right now with the following hibernate mapping file, NamedQuery.hbm.xml.
When I try to deploy I get a NullPointerException. When I remove this file from my data folder with all the other mapping files, the app WILL deploy fine. I can't determine what is wrong.
The one thing that does stand out in my mind is that the other .hbm.xml files that I have are automatically generated from java files using an xDoclet command in my build file, however this one I created from hand, there is no correspodning java file.

I feel like I am missing something obvious, does anyone spot something wrong here?
Thanks!

 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you paste the Exception stack trace. Also we don't know how your classes are mapped to be able to see if there is an error in a Named Query, but my guess is that there is something wrong in one of your Named Queries like missingin a camel case capitalization in one of your properies in the query.

Most of the time I have some sort of typo in my named queries.

Mark
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic