-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NullPointer Exception and no clue
PostPosted: Thu Jun 03, 2004 10:42 am 
Newbie

Joined: Thu Jun 03, 2004 10:29 am
Posts: 2
Hello

I am new to hibernate and always get the following error:

[java] 03.06.2004 16:21:59 net.sf.hibernate.cfg.Environment <clinit>
[java] INFO: Hibernate 2.1.2
[java] 03.06.2004 16:21:59 net.sf.hibernate.cfg.Environment <clinit>
[java] INFO: hibernate.properties not found
[java] 03.06.2004 16:21:59 net.sf.hibernate.cfg.Environment <clinit>
[java] INFO: using CGLIB reflection optimizer
[java] 03.06.2004 16:21:59 net.sf.hibernate.cfg.Configuration configure
[java] INFO: configuring from file: Logging.hbm.xml
[java] %%%% Error Creating SessionFactory %%%%
[java] java.lang.NullPointerException
[java] at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:958)
[java] at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:928)
[java] at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:890)
[java] at de.scheller.flex.logging.db.HibernateSession.loadClasses(HibernateSession.java:73)
[java] at de.scheller.flex.logging.db.HibernateSession.currentSession(HibernateSession.java:33)
[java] at de.scheller.flex.core.ServerStarter.initialize(ServerStarter.java:118)
[java] at de.scheller.flex.core.ServerStarter.main(ServerStarter.java:53)
[java] Exception in thread "main" java.lang.NullPointerException
[java] at de.scheller.flex.logging.db.HibernateSession.currentSession(HibernateSession.java:41)
[java] at de.scheller.flex.core.ServerStarter.initialize(ServerStarter.java:118)
[java] at de.scheller.flex.core.ServerStarter.main(ServerStarter.java:53)

the code for HibernateSession is taken from
http://www.systemmobile.com/articles/In ... rnate.html which also the was the foundation of my tries. any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 03, 2004 11:03 am 
Newbie

Joined: Thu Jun 03, 2004 10:29 am
Posts: 2
forget it it was my fault


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.