facebook

i am using hibernateutil but i am not getting the session

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #265878 Reply

    chanduias
    Member

    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread “main” java.lang.ExceptionInInitializerError
    at src.com.chandu.hibernate.test.util.HibernateUtil.<clinit>(HibernateUtil.java:31)
    at src.com.chandu.hibernate.test.EmployeeManagerImpl.add(EmployeeManagerImpl.java:28)
    at src.com.chandu.hibernate.test.EmployeeManagerImpl.main(EmployeeManagerImpl.java:67)
    Caused by: java.lang.NullPointerException
    at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:87)
    at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:148)
    at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:41)
    at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:104)
    at org.hibernate.persister.entity.BasicEntityPersister.<init>(BasicEntityPersister.java:398)
    at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:104)
    at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:199)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
    at src.com.chandu.hibernate.test.util.HibernateUtil.<clinit>(HibernateUtil.java:27)
    … 2 more

    #265879 Reply

    chanduias
    Member

    hi

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: i am using hibernateutil but i am not getting the session

You must be logged in to post in the forum log in