This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Session factory Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Session factory Error" Watch "Session factory Error" New topic
Author

Session factory Error

mano ranjan
Ranch Hand

Joined: Jul 12, 2007
Posts: 102
Hi
Iam getting an error when i try to configure my session factory using JNDI



and this my hibernate.xml

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17271
    
    6

So what is at this line

InsuranceHome.java:67

That is where the NPE is being thrown, so what is the instance that it is trying to call a method on. That instance var is null.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
mano ranjan
Ranch Hand

Joined: Jul 12, 2007
Posts: 102
Hi
I solved that problem . but iam getting another error



thanks
mano ranjan
Ranch Hand

Joined: Jul 12, 2007
Posts: 102
Hi
Can anybody help me out in this error??

thanks
Shailesh Kini
Ranch Hand

Joined: Oct 17, 2001
Posts: 153
Hi Mano,

A NameNotFound exception is usually thrown when the name you have used to register your MySql datasource is not found in your app server directory service. Which app server are you using?


Shailesh Kini.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Session factory Error
 
jQuery in Action, 3rd edition