Results 1 to 4 of 4
  1. #1
    endx is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default Intial Session Factory Creation Failed.

    I am using hibernate3. when I rum my java applicaiton the following error appears. pls help me.
    19:07:34,656 ERROR HibernateUtil:28 - Initial SessionFactory creation failed.
    java.lang.NullPointerException
    at org.hibernate.cfg.Configuration.doConfigure(Config uration.java:1214)
    Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class jp.ac.nagaokaut.gii.lim.engine.util.HibernateUtil
    at jp.ac.nagaokaut.gii.lim.engine.service.LIService.t eachSourceDatabase(LIService.java:72)
    at org.hibernate.cfg.Configuration.doConfigure(Config uration.java:1184)
    at org.hibernate.cfg.Configuration.configure(Configur ation.java:1112)
    at org.hibernate.cfg.Configuration.configure(Configur ation.java:1098)
    at jp.ac.nagaokaut.gii.lim.engine.util.HibernateUtil. <clinit>(HibernateUtil.java:24)
    at Classifier.Identify(Classifier.java:25)
    at FileHandler.Handlefile(FileHandler.java:99)
    at DesktopCrawler.TraverseDir(DesktopCrawler.java:259 )
    at Main.main(Main.java:57)
    at jp.ac.nagaokaut.gii.lim.engine.dao.SourceDAO.readS ourceList(SourceDAO.java:57)
    at jp.ac.nagaokaut.gii.lim.engine.service.LIService.t eachSourceDatabase(LIService.java:59)
    at Classifier.Identify(Classifier.java:25)
    at FileHandler.Handlefile(FileHandler.java:99)
    at DesktopCrawler.TraverseDir(DesktopCrawler.java:259 )
    at Main.main(Main.java:57)

    Thanks,

    Endx

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Yes Eranga is right. I think it is hibernate3.jar
    To finish sooner, take your own time....
    Nivedithaaaa

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Instantiation using an instance factory method
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-29-2008, 12:35 PM
  2. Instantiation using an instance factory method
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-26-2007, 08:25 PM
  3. Replies: 1
    Last Post: 08-13-2007, 03:46 AM
  4. Secure FTP Factory 7.0
    By vglass in forum Java Software
    Replies: 0
    Last Post: 07-20-2007, 01:44 PM
  5. creation of new function
    By an8086 in forum Advanced Java
    Replies: 1
    Last Post: 07-16-2007, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •