Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session factory Error

 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Iam getting an error when i try to configure my session factory using JNDI



and this my hibernate.xml

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I solved that problem . but iam getting another error



thanks
 
mano ranjan
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can anybody help me out in this error??

thanks
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic