execution code: Configuration cf=new Configuration();
i user hibernate.cfg.xml ,when i debug it auto find hibernate.properties
Caused Exception: 08:54:41,765 INFO Version:37 - Hibernate Commons Annotations 3.2.0.Final 08:54:41,781 INFO Environment:603 - Hibernate 3.6.7.Final Exception in thread "main" java.lang.ExceptionInInitializerError at org.hibernate.cfg.Configuration.reset(Configuration.java:332) at org.hibernate.cfg.Configuration.<init>(Configuration.java:298) at org.hibernate.cfg.Configuration.<init>(Configuration.java:302) at com.test.Test.main(Test.java:13) Caused by: java.lang.NullPointerException at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:167) at org.hibernate.cfg.Environment.<clinit>(Environment.java:618) ... 4 more
|