File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Initial SessionFactory creation failed. java.lang.AbstractMethodErro Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Initial SessionFactory creation failed. java.lang.AbstractMethodErro" Watch "Initial SessionFactory creation failed. java.lang.AbstractMethodErro" New topic
Author

Initial SessionFactory creation failed. java.lang.AbstractMethodErro

sivasakam kumarsakam
Greenhorn

Joined: Sep 07, 2007
Posts: 21
sivasakam kumarsakam wrote:thanks sir for your reply... here is total program code...(I am using Eclipse and Hibernate3)

hibernate.cfg.xml



Course.hbm.xml



Course.java



Main.java



HibernateUtil.java



error
26 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA
29 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
35 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
42 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
152 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
152 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
288 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/vaannila/course/Course.hbm.xml
400 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.vaannila.course.Course -> COURSES
419 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: java:hibernate/SessionFactory
Initial SessionFactory creation failed. java.lang.AbstractMethodError: org.slf4j.impl.SimpleLogger.isTraceEnabled()Z
java.lang.AbstractMethodError: org.slf4j.impl.SimpleLogger.isTraceEnabled()Z
at org.hibernate.type.NullableType.<clinit>(NullableType.java:59)
at org.hibernate.Hibernate.<clinit>(Hibernate.java:103)
at org.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:69)
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:283)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
at org.hibernate.mapping.Property.isValid(Property.java:207)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:11)
at com.vaannila.course.Main.saveCourse(Main.java:25)
at com.vaannila.course.Main.main(Main.java:15)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:16)
at com.vaannila.course.Main.saveCourse(Main.java:25)
at com.vaannila.course.Main.main(Main.java:15)
Caused by: java.lang.AbstractMethodError: org.slf4j.impl.SimpleLogger.isTraceEnabled()Z
at org.hibernate.type.NullableType.<clinit>(NullableType.java:59)
at org.hibernate.Hibernate.<clinit>(Hibernate.java:103)
at org.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:69)
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:283)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)
at org.hibernate.mapping.Property.isValid(Property.java:207)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at com.vaannila.util.HibernateUtil.<clinit>(HibernateUtil.java:11)
... 2 more

[/code]

thanks sir.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Initial SessionFactory creation failed. java.lang.AbstractMethodErro