Hibernate学习中的ExceptionInInitializerError解决

在使用Hibernate3.6.1时出现这样的问题
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.hibernate.cfg.Configuration.reset(Configuration.java:330)
	at org.hibernate.cfg.Configuration.<init>(Configuration.java:296)
	at org.hibernate.cfg.Configuration.<init>(Configuration.java:300)
	at org.hibernate.cfg.AnnotationConfiguration.<init>(AnnotationConfiguration.java:74)
	at com.macleo.SaveWorker.main(SaveWorker.java:25)
Caused by: java.lang.NullPointerException
	at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:167)
	at org.hibernate.cfg.Environment.<clinit>(Environment.java:608)
	... 5 more


解决:
嘿嘿嘿嘿....



参考:
1. http://blog.csdn.net/aaronbai/archive/2006/12/17/1446516.aspx

2. http://topic.csdn.net/u/20110205/01/e123e681-60ec-45d1-87c6-3a7862aeca78.html?seed=129169960&r=72086597#r_72086597

你可能感兴趣的:(java,thread,Hibernate,.net,Blog)