Saturday, December 28, 2013

Exception in thread "main" java.lang.ExceptionInInitializerError

Could not parse mapping document from resource com/ranga/Person.hbm.xml
Exception in thread "main" java.lang.ExceptionInInitializerError

Problem:  
 In Mapping file DTD information is not added or wrong DTD information you are given.

Solution:  
Add the proper DTD information in mapping file(Person.hbm.xml)

Related Posts:

  • List of Hibernate SQL Dialects (hibernate.dialect)Purpose: We all know there are different versions of Oracle... Oracle 11g, Oracle 10g, Oracle9i, Oracle8. The driver we would use would be a common for all of these. But the dialect we use is specific to each one of them, whi… Read More
  • Hibernate4.X Application example by using MavenPrerequisite requirement - Installed and configured Maven, MySQL, Eclipse IDE.- See more at: http://www.developer.am/documentation/hibernate/?page=maven-spring-hibernate-mysql-example#sthash.8UVHMaBr.dpufPrerequisite requirem… Read More
  • Hibernate4 example by using PostgreSQL DB.Prerequisite requirement - Installed and configured Maven, MySQL, Eclipse IDE.- See more at: http://www.developer.am/documentation/hibernate/?page=maven-spring-hibernate-mysql-example#sthash.8UVHMaBr.dpufPrerequisite requirem… Read More
  • Hibernate4.X Application example by using GradlePrerequisite requirement - Installed and configured Maven, MySQL, Eclipse IDE.- See more at: http://www.developer.am/documentation/hibernate/?page=maven-spring-hibernate-mysql-example#sthash.8UVHMaBr.dpufPrerequisite requirem… Read More
  • Different between session.get() and session.load()There are two methods that can be used on a Hibernate session (org.hibernate.Session) to retrieve a single instance of persistent object. They are get( ) and load( ).Note: In hibernate4.x there is one more method to get a sin… Read More

0 comments: