Home Tutorialhelp Comment Hibernate Annotations Problem

 
 

Comment

Hendra
Hibernate Annotations Problem,
January 5, 2008 at 12:32 PM

Hi, i was follow your tutorial and download your code. I can compile, create schema based from your code. But, when i run your code, i've got problem at HibernateUtil.java :
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();

Error like this :
-------------------------------------------------
Exception in thread "Main Thread" java.lang.ExceptionInInitializerError
at com.HibernateUtil.<clinit>(HibernateUtil.java:11)
at com.Example1.main(Example1.java:14)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
... 2 more
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 6 more
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
... 7 more
-------------------------------------------------

Can you help me to solve this problem ?

Thanks,
Hendra
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Hibernate Questions

Hibernate 4 annotations tutorial
Hibernate 4 annotations tutorial  Hi, I am trying to find the best Hibernate 4 annotations tutorial. I think there is good tutorial on your site. Please tell me the url of Hibernate 4 annotations tutorial. Thanks   hi 

Hibernate Questions

hibernate annotations
hibernate annotations  I am facing following problem, I have created... hibernate annotations to insert records into these tables. But it is trying... system properly. Hibernate: select address_.adno, address_.city as city1 

Hibernate-Tutorials

Hibernate Annotations
This tutorial describes the concept of annotations 

Hibernate Questions

Hibernate Annotations ManytoMany - Hibernate
Hibernate Annotations ManytoMany  Can anybody tell me how to have a many to many relationship through Hibernate Annotations not through the Hbm.xml files plz 

Hibernate-Tutorials

Hibernate Annotations
org.hibernate.annotations.WhereJoinTable We have given very good tutorial on Hibernate annotations, you can... at Hibernate Annotations Tutorial section...Hibernate Annotations In this section we will learn about Hibernate 

Hibernate-Tutorials

Hibernate 4 Annotations
Hibernate 4 Annotations In this tutorial you will learn about the use of annotations in Hibernate. To create an example in Hibernate using Annotation reader... and do process as it is defined for. Hibernate also needs to provide 

Hibernate Questions

hibernate annotations example for mappings
hibernate annotations example for mappings  Please send me example of hibernate annotations for mappings.Please send the example   Please go through the following link: Hibernate Annotations 

Hibernate Tutorial Example

Hibernate Annotations
Hibernate Annotations       Hibernate Annotations examples and tutorials. Quick Hibernate Annotation Tutorial This tutorial covers only the Annotations 

Hibernate Tutorial Example

Hibernate 4 Annotations Tutorial
Video Tutorial: Hibernate 4 Annotations Tutorial In this video tutorial I... such applications. We have used the Eclipse IDE. What is Hibernate Annotations... Annotation Tutorial: Here is the brief description of the Hibernate

Hibernate Questions

hibernate annotations with composite primary key
hibernate annotations with composite primary key  I want to know how to use hibernate annotations in case of composite primary key in one table. I... at com.tbss.Store.main(Store.java:9) Please help me in resolving this problem 

Hibernate-Tutorials

Hibernate Annotations Example
Hibernate Annotations Example In this section we will see how we can develop Hibernate Annotations based example program. After completing this tutorial you will be able to use Hibernate Annotations in your project and develop 

Hibernate-Tutorials

Hibernate mapping annotations
In this section, you will learn about the annotations used for various mapping in Hibernate 

Hibernate-Tutorials

Spring Hibernate Annotations
In this section, you will learn about the common annotations used for Spring Hibernate Integration 

Hibernate Tutorial Example

Hibernate Annotations
 

Struts-Tutorials

Hibernate Annotations
Hibernate Annotations       You have... Annotations part.  Download Source Code Hibernate Annotations: Hibernate needs... and does the processing accordingly. The Hibernate Annotations is the powerful 

Hibernate Questions

Unable to create annotations in hibernate 4.0
Unable to create annotations in hibernate 4.0  I worked on a similar example as yours.But when I create a new hibernate console configuration... is deprecated in hibernate 4.0 ,hence I used Configuration object as shown by you. Kindly 

Hibernate Questions

Hibernate Annotattions - Hibernate
hibernate annotations which is a new facility in hibernate 3.2 any tutorial and what.../hibernateannotations/hibernate-annotations-tutorial.shtml http.... The Hibernate Annotations is the powerful way to provide the metadata for the Object 

Hibernate-Tutorials

Hibernate Validator Annotations
In this section, you will learn how to validate in Hibernate using validator annotations in bean class 

Hibernate-Tutorials

Hibernate One to Many Self Join using Annotations
In this section, you will learn one to many self join using Annotations in Hibernate 

Hibernate-Tutorials

Hibernate Many to Many Self Join using Annotations
In this section, you will learn how to do many to many self join using Annotations in Hibernate 

Hibernate Questions

hibernate
why hibernate?  why hibernate?   Hibernate: -Hibernate... library. It solves object-relational impedance mismatch problems. Hibernate makes the application development process easy Hibernate saves the development 

Hibernate Questions

Hibernate
Hibernate  I downloaded the zip file given in the tutorial of Hibernate. I followed all th steps as given in the tutorial, but a build error... the example from Hibernate Getting Started Tutorial. Please follow the steps 

Hibernate Questions

java - Hibernate
the code and run using Hibernate and annotation..plse help me...  Hi friend, Read for more information. http://www.roseindia.net/hibernate/hibernateannotations/hibernate-annotations-tutorial.shtml Thanks 

Hibernate-Tutorials

Complete Hibernate 4.0 Tutorial
: Hibernate 4 Annotations Tutorial Given below the complete list of topics... This section contains the Complete Hibernate 4.0 Tutorial. Complete Hibernate 4.0 Tutorial Hibernate is a Object-relational mapping 

Blog

Sitemap Hibernate Tutorial
; Tutorial Section Introduction to Hibernate 3.0 | Hibernate Architecture | First Hibernate Application | Running the Example in Eclipse | Understanding... | Hibernate Mapping | Hibernate Annotations | Build and testing 

Hibernate Tutorial Example

Hibernate Mapping
also talks about hibernate annotations mapping. In this tutorial we will use xml... the complex things easily.  This Hibernate Mapping tutorial is targeted... the O/R mappings. Annotations are also well supported in hibernate. You can 

Hibernate Tutorial Example

Hibernate 4
at the end of tutorial page. Learn Hibernate 4 with the help of following...; Element Hibernate 4 Annotations Hibernate 4 Annotation Example...Hibernate 4 Hibernate 4 is the latest version of Hibernate which was released 

Hibernate Questions

Hibernate
Hibernate  hi sir i need hibernate complete tutorial for download   Hi Friend, Please visit the following link: Hibernate Tutorials Thanks 

Hibernate Questions

hibernate
hibernate   i am using hibernate3.2.5 and oracle9i. First i set classpath to ojdbc14.jar and all the hibernate jar files to path env variable.After... version " please give me the suggestion to sort out the problem 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem  how to write hibernate Left outer join program 

Java-Tutorials

Hibernate Tutorial
Hibernate Tutorial This section contains the various aspects of Hibernate. Here we will read What is Hibernate, Features of Hibernate, Compatibility... this tutorial. Hibernate 4 Hibernate 3 Hibernate 2 First final release of hibernate 

Hibernate Questions

hibernate - Hibernate
hibernate  is there any tutorial using hibernate and netbeans to do a web application add,update,delete,select   Hi friend, For hibernate tutorial visit to : http://www.roseindia.net/hibernate/index.shtml 

Hibernate Questions

Hibernate tutorial - Hibernate
Hibernate tutorial  can u provide me some material in hibernate.  Hello Rohin,You can learn Hibernate within 10 days from our website. In our hibernate tutorial you will find many examples with running code. You can 

Hibernate Questions

hibernate
hibernate  what is problem of tree loading 

Hibernate Tutorial Example

Hibernate Architecture
to Hibernate runtime. Annotations: Hibernate uses the JPA  annotations...Hibernate Architecture - Understand the architecture of the Hibernate ORM... Hibernate ORM framework. Hibernate is based on the Java technologies 

Hibernate Questions

Hibernate error - Hibernate
/tutorial/hibernate. But I have following error. log4j:WARN No appenders...Hibernate error  I hava following error while running hibernate...(FirstExample.java:35) /hibernate.cfg.xml not found Please solve this problem 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem  Hi, This is Birendra Pradhan.I want... & Regards Birendra  Hi friend, For solving the problem visit to : http://www.roseindia.net/hibernate/index.shtml Thanks 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem   Hi This is Raju I tried the first example of hibernate course material.This is to insert a record into CONTACT table.Is Hibernate code automatically creates the CONTACT table and then insert 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem  Hi This is Raju.I tried the first example of Hibernate material what u have given. I have written contact.java... session.flush(); i am using hibernate 3.3.1 and I kept hibernate3.jar 

Hibernate-Tutorials

Hibernate Configuration
The configuration of Hibernate is handled by the instance of org.hibernate.cfg.Configuration . It symbolizes the complete mapping between Java data types... org.hibernate.SessionFactory . Various XML mapping files or Java Annotations compilation build 

Hibernate Questions

hibernate code problem - Hibernate
hibernate code problem  suppose i want to fetch a row from the table... . Please visit for more information. http://www.roseindia.net/hibernate/selectclause.shtml If you have any problem this send me detail and source code 

Hibernate Questions

hibernate - Hibernate
performance For more information,Tutorial and Examples on Hibernate Visit...hibernate  what is hibernate and how to make a pc hibernating?  Hi friend, Hibernate is based on object oriented concept like java 

Hibernate Tutorial Example

Complete Hibernate 3.0 and Hibernate 4 Tutorial
Complete Hibernate 3.0 and Hibernate 4 Tutorial   ...; Tutorial Basics: Hibernate 4.2.7 Maven dependency - Learn how to use... Hibernate 4 Tutorials Hibernate 4 Tutorial More 

Hibernate Tutorial Example

Quick Hibernate Annotation Tutorial
Hibernate Annotations       Note:- This tutorial covers only the Annotations part. The reader must have hands on experience before starting this tutorial. Introduction:- Hibernate 

Hibernate Questions

JSP with hibernate
JSP with hibernate  Hai Friend, As I new To hibernate, I'm facing problem in My project(JSP with hibernate) I need a tutorial who to devllope application with hibernate and jsp ana library jstl only plz can any one help for my 

Hibernate Questions

hibernate insertion problem - Hibernate
hibernate insertion problem  Hi , Thanks for the material .Its very gud . when i run FirstExample.java i get the message insertion has been done int the table contact . but whne i look into database data is not inserted 

Hibernate Questions

hibernate code problem - Hibernate
hibernate code problem  String SQL_QUERY =" from Insurance...: " + insurance. getInsuranceName()); } in the above code,the hibernate...= request.getParameter("name"); For more information on hibernate visit to : http 

Hibernate Tutorial Example

Hibernate 3 Query Example Part 2
Hibernate 3 Query Example Part 2       Hibernate 3 Query Example Part 2 This tutorial  explains  how to create  Hibernate 3 query example with Spring 3  

Hibernate Questions

hibernate - Hibernate
hibernate  Hai,This is jagadhish I have a problem while developing..., As per your problem exception is related to ant.Plz check the lib for Ant. For read more information: http://www.roseindia.net/hibernate/index.shtml 

Hibernate Questions

Problem in running first hibernate program.... - Hibernate
Problem in running first hibernate program....  Hi...I am using... programs.It worked fine.To run a hibernate sample program,I followed the tutorial below... the error " java.lang.NoClassDefFoundError: roseindia/tutorial/hibernate 

Hibernate Questions

hibernate problem
hibernate problem  please help me.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please...:12) i am getting this prob while running my hibernate program in Eclips please 

Hibernate Questions

Hibernate code problem - Hibernate
Hibernate code problem  Hai, iam working on simple login application using hibernate in spring. I've used Spring dependency injection too.I struck at DAO(data access Object)layer while executing the select statement in HQL 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hai this is jagadhish while running a Hibernate.../hibernate/ Please specify your requirements in detail. It would be good for me to provide you the solution if problem is clear. please post all code 

Spring 3

Spring 3 MVC and Hibernate 3 Example Part 1
Spring 3 MVC and Hibernate 3 Example application using Annotations This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before. You can 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hai this is jagadhish, while executing a program in Hibernate in Tomcat i got an error like this HTTP Status 500.... Hopefully this will solve your problem. Regards Deepak Kumar 

Hibernate Tutorial Example

Hibernate association and join example
Example program of Associations and Joins in Hibernate framework In this section we will learn about the Hibernate Associations and Joins, which is very important concept of Hibernate framework. Hibernate association allows 

Hibernate Tutorial Example

Introduction to Hibernate Framework
Hibernate Tutorial: an introduction to Hibernate Framework, its features and benefits of using Hibernate framework This article is introduces you with the Hibernate framework. You will learn the features and advantages 

Hibernate Interview Questions

HIBERNATE
HIBERNATE   What is difference between Jdbc and Hibernate 

Hibernate-Tutorials

Hibernate Example
This tutorial illustrate an example of hibernate 

Hibernate Interview Questions

hibernate
hibernate  what is hibernate flow 

Hibernate Questions

hibernate
hibernate  what is hibernate listeners 

Spring Framework Questions

spring mvc3 and hibernate with annotation example
spring mvc3 and hibernate with annotation example  please send an example which is used to store the form data into database using spring with hibernate using annotations 

Hibernate Questions

Hibernate
Hibernate  how to use pagination concept in Hibernate 

Hibernate Questions

hibernate
hibernate  what is hibernate why we use 

Hibernate Questions

Hibernate
Hibernate  hibernate delete query execution 

Hibernate Questions

hibernate
hibernate  please give me the link where i can freely download hibernate software(with dependencies)   Learn hibernate, if you want to learn hibernate, please visit the following link: Hibernate Tutorials 

Java Beginners

hibernate
hibernate  how to uses optional column in hibernate 

Hibernate Tutorial Example

Why hibernate is used?
Why hibernate is used? Hibernate is leading ORM solutions for developing... and the application developing is also very simple if Hibernate is used in the application. Hibernate makes the application development process easy 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Questions

Problem in updating query in Hibernate - Hibernate
Problem in updating query in Hibernate  Hi, I have used a query to update the existing columns of one table. The query updates the records..., Please visit the following link: http://www.roseindia.net/hibernate 

Hibernate Questions

hibernate
hibernate  why we should use hibernate projection 

Java Beginners

hibernate
hibernate  pls give one simple example program for hibernate 

Hibernate Questions

Hibernate
Hibernate  Please tell me the difference between hibernate and jdbc 

Hibernate Questions

hibernate
hibernate  how to execute a sequence(in database) from Hibernate program or java program   Please visit the following link: Hibernate Tutorials 

Hibernate Questions

hibernate
hibernate  can any one one explain what is hibernate ?   Please visit the following link: Hibernate Tutorials 

Hibernate Questions

Hibernate
Hibernate  hello, how to run hibernate program in netbeans?please send me step by step instructions to run hibernate in netbeans 

Hibernate Interview Questions

Hibernate
Hibernate  How do you handle parent - child tables relationships in hibernate? How do you handle Detach state in hibernate 

Hibernate Questions

Hibernate delete HQL - Hibernate
Hibernate delete HQL  Hi I am trying hibernate tutorial. But delete HQL tutorial not working properly. It gives null pointer exception. Query class has method executeUpate() & not executeUpdate 

Hibernate Questions

hibernate firstExample not inserting data - Hibernate
hibernate firstExample not inserting data  hello all , i followed the steps in hiberante tutorial i.e FirstExample.java as mentioned in tutorial my problem is data is not inserting into DB even though the program is executed 

Hibernate Questions

Please explain Hibernate Sessionfactory.
Complete Hibernate 3.0 and Hibernate 4 Tutorial Let me know if the problem persists...Please explain Hibernate Sessionfactory.  Hi there, Please explain Hibernate session factory in detail. I have just started learning hibernate so i 

Hibernate Questions

spring hibernate - Hibernate
with hibernate?  Hi friend, For solving the problem Spring with Hibernate visit to : http://www.roseindia.net/spring/index.shtml http://www.roseindia.net/struts/hibernate-spring/index.shtml Thanks 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code   I am facing a problem in hibernate program. Error is ::: Error in reading contact.hbm.xml contact.hbm.xml is my hibernate mapping file.  Hi Friend, check whether you have specified correct path 

Hibernate Questions

Hibernate programming tutorial for beginner
Hibernate programming tutorial for beginner  Hi, I am beginner... quick tutorial for learning Hibernate. Can someone point me to a step by step... the link: Hibernate beginner tutorial. This link contains many tutorials 

Hibernate Questions

Hibernate - Hibernate
Hibernate Features  Hibernate features in eclipse 

Hibernate Questions

hibernate
hibernate  how to impot mysql database client jar file into eclipse for hibernate configuration   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate/runninge-xample.shtml Thanks 

Programming Tutorials

Annotations
Annotations       Sun... efficient in jdk 5. The main objective to develop the annotations is to make the development easier. Annotations behaves like the meta. The literal meaning 

Hibernate Interview Questions

HIBERNATE
HIBERNATE  How u connects database using hibernate 3.0? Where you have written the database configuration details 

Hibernate Questions

hibernate
hibernate  hi what are the necessary jar files that we need to set in the classpath to execute a hibernate application 

Hibernate Questions

hibernate
hibernate  How to know how many columns changed in a table when we are using hibernate 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I had run hibernate first example but it an error..., Please explain in detail your problem so that we can discuss and solve it. If you want more examples of Hibernate please visit the following link. http 

Hibernate Questions

Hibernate @ManyToOne persisting problem - Hibernate
Hibernate @ManyToOne persisting problem  hello, In my apllication, there are students and classes. a student can take many classes. So there is OneToMany <--> ManyToOne relationship. Im my case, the best implementation 

Spring 3

Spring 3 MVC and Hibernate 3 Example Part 2
. <bean id="dataSource"> provides properties to hibernate to make it able to create session factory. Hibernate uses instance of session bean...;annotatedClasses"> element provides hibernate the list of annotated classes.  

Hibernate Questions

hibernate
hibernate  Is there any other way to call procedure in hibernate other than named query????? if we are using session object to get the connection then why hibernate we can directly call by using a simple java class??????? please 

Hibernate Questions

hibernate
hibernate  when we using schemaExport in hibernate every time it drops the existing table and create new table ,if table contain dependent table then is it drop 

Hibernate-Tutorials

Hibernate Mapping
In this tutorial we will discuss Hibernate mapping 

Hibernate-Tutorials

Hibernate Persistence
This tutorial describes the concept of Hibernate persistence 

Hibernate-Tutorials

MyEclipse Hibernate Tutorial
This tutorial is helpful to understand how hibernate work in MyEclipse 

Hibernate Questions

Hibernate 4.3 JPA 2.1
version of Hibernate is 4.3 and JPA is JPA 2.1. My problem is to write... Hibernate with your JPA 2.1 applications. Check the tutorial Hibernate 4.3 and JPA...Hibernate 4.3 JPA 2.1  How to create a Java program using Hibernate 

Hibernate Questions

About Hibernate - Hibernate
in itif you want to expertise in hibernate then you must read step-by-step tutorial...About Hibernate  What is Hibernate? How can i learn it fast.  ... object/relational persistence and query service for Java. Hibernate lets you develop 

Advertisements Advertisements
 

 

 

DMCA.com