简体   繁体   中英

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 :)

设置休眠配置就可以了,有一个名为“休眠配置”的选项卡,您可以在其中添加项目,然后在其中进行一些配置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM