javasql.SQLException: Connection is null. I am trying to save an object on Hibernate database but I am receiving following exception. It seems like session is open and connected but the code is unable to commit. org.springframework.transaction.TransactionSystemException: Could not commit Hibernate transaction; nested exception is org.hibernate Well same problem here. I'm using phpmyadmin. I had to go to phpmyadmin->users->root->Edit Privileges.. Then on the field "Database-specific privileges" I had to provide privileges for my database.On the field "Change password" I retyped my password (I don't know why I had to do that, maybe a possible bug since i already had one).On the field "Login Information->Host" I put value Any host. Thereare a number of options for selecting an approach to form the basis for your JDBC database access. There are three flavors of the JdbcTemplate, a new "SimpleJdbc" approach taking advantage of database metadata, and there is also the "RDBMS Object" style for a more object oriented approach similar in style to the JDO Query design. Cannotconnect to database server Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. Ifyou use the DB2 Universal Driver type 4 for access to DB2 Network Server, and your database fails, the database server issues a generic -99999 exception in response to every JDBC getConnection request. This exception, which is exemplified in the following code excerpt, can cause unexpected behavior in your applications. java.sql.SQLException HikariPool1 - Exception during pool initialization , Unknown database 'cafemanagementsystem;' Hot Network Questions An accumulated moving average .

jdbc exception on hibernate data access sqlexception for sql