当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Why do I get Nullpointer exception when I create a hibernate mapping XML file?

问题描述:

I am a newbie to hibernate and trying to create a hibernate XML mapping file for a particular class. I am using Spring Tool Suite with hibernate plugin installed and also using Maven. Why do I get the null pointer exception and what could be the reason for it?

A screenshot is also attached

It says see error log. But I do not know where the error log exists. I tried a google search too, but could not find a good answer. Any kind of help will be highly appreciated.

Thank You all !!!!!!

网友答案:

I could solve this problem by using a different version. As said by one of my friends I think the problem was with the version that I was using. Then I tried it with Eclipse Kepler and the problem was gone :)

网友答案:

Set up the hibernate configuration it will be ok there is tab called hibernate configuration you add there your projects and you do some configurations there .

分享给朋友:
您可能感兴趣的文章:
随机阅读: