Friday, December 27, 2013

Caused by: java.lang.NullPointerException at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)

Caused by: java.lang.NullPointerException at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)

Problem: 
Because of adding the jars in user library class path.

Solution: 
Instead of adding the jar files using User Library add the jars using classpath.

Related Posts:

  • Explain about Hibernate Object Life Cycle?In hibernate object life cycle, mainly consists of four states. They are Transient State, Persistent State, Detached State and Removed State.Hibernate Object Life Cycle1. New or Transient State:When ever a… Read More
  • Different ways to get the Connection object using HibernateGetting the java.sql.Connection object using Session:---------------------------------------------------------------------------org.hibernate.Session is nothing but get the one physical connection from the database. By u… Read More
  • Hibernate Object Identity and EqualityThere are several mismatches between the Object oriented system and Relation system. In that one of the important mismatch is Object identity and equality.There are three ways to tackle identity: two ways in java world, and o… Read More
  • How to Create Custom Dialect class in Hibernate?Creating a Custom Dialect in Hibernate:In order to create any new Dialect class we need to extends org.hibernate.dialect.Dialect class. Dialect class is a abstract class.If you look at the Dialect class,public abstract c… Read More
  • How to get all table names using Hibernate.This post demonstrates the how to get the all table names using Hibernate.Configuration configuration = new Configuration();configuration.configure("hibernate.cfg.xml");SessionFactory sessionFactory = configuration.buildSessi… Read More

0 comments: