日期:2014-05-17 浏览次数:20661 次
SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/Jar%20Package/slf4j-1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/Jar%20Package/slf4j-1.6.4/slf4j-nop-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. Exception in thread "main" java.lang.ExceptionInInitializerError at org.hibernate.cfg.Configuration.reset(Configuration.java:217) at org.hibernate.cfg.AnnotationConfiguration.reset(AnnotationConfiguration.java:233) at org.hibernate.cfg.Configuration.<init>(Configuration.java:197) at org.hibernate.cfg.Configuration.<init>(Configuration.java:201) at org.hibernate.cfg.AnnotationConfiguration.<init>(AnnotationConfiguration.java:108) at com.bjsxt.hibernate.HibernateQLTest.beforeClass(HibernateQLTest.java:21) at com.bjsxt.hibernate.HibernateQLTest.main(HibernateQLTest.java:367) Caused by: java.lang.NullPointerException at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:167) at org.hibernate.cfg.Environment.<clinit>(Environment.java:575) ... 7 more
jar:file:/D:/Jar%20Package/slf4j-1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class;jar:file:/D:/Jar%20Package/slf4j-1.6.4/slf4j-nop-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class