Thread: I am Facing Exception Hibernate

Forum : Hibernate Core and Annotations.   14 Aug, 2017 22:40
User Image
ChanduB

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 26

Posts: 14

I am Facing Exception Hibernate

| Quote Date : 14 Aug, 2017    Views:752    

org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl stop INFO: HHH000030: Cleaning up connection pool [jdbc:mysql://localhost:3306/automobiles] Exception in thread "main" java.lang.NullPointerException at com.msf.dao.VehicleDao.saveVehicle(VehicleDao.java:29) at com.msf.test.Test.main(Test.java:28) hibernate.cfg.xml: com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/automobiles root welcome1 org.hibernate.dialect.MySQLDialect true

Comments

User Image
Abhishek3

Newbie

Joined : 25 Jun, 2017

Points : 140

Threads: 7

Posts: 26

Re: I am Facing Exception Hibernate

Reply Date : 16 Aug, 2017

As it look you might calling the method on an object before initializing it.
plz check once that  all the Objects inside saveVehicle() methods are properly initialized before calling any method upon it.

Load More

No More Comments