[size=small]在使用Hibernate3.6.1时出现这样的问题[/size]
[size=small][color=red]解决[/color]:
嘿嘿嘿嘿....[/size]
参考:
1.[url]http://blog.youkuaiyun.com/aaronbai/archive/2006/12/17/1446516.aspx[/url]
2.[url]http://topic.youkuaiyun.com/u/20110205/01/e123e681-60ec-45d1-87c6-3a7862aeca78.html?seed=129169960&r=72086597#r_72086597[/url]
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
[size=small][color=red]解决[/color]:
嘿嘿嘿嘿....[/size]
参考:
1.[url]http://blog.youkuaiyun.com/aaronbai/archive/2006/12/17/1446516.aspx[/url]
2.[url]http://topic.youkuaiyun.com/u/20110205/01/e123e681-60ec-45d1-87c6-3a7862aeca78.html?seed=129169960&r=72086597#r_72086597[/url]