File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 17250
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session factory Error