Announcement Announcement Module
No announcement yet.
Problem when changing from Spring-data-jpa 1.1.0.RELEASE Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem when changing from Spring-data-jpa 1.1.0.RELEASE


    I have a strange problem when I try to change version from Spring Data JPA 1.1.0.RELEASE to either 1.1.2.RELEASE/1.2.0.RELEASE/1.3.0.RELEASE. With 1.1.0 and 1.1.1 everything works fine but with newer versions I always get the following exception:
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'entityManager' threw exception; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 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.
    Error Code: 0
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(
    	... 20 more
    The database is up and running, with 1.1.0/1.1.1 have no connection issues. Anyone has any ideas what can cause my problem?
    Thanks for your help!
    Last edited by marczeeee; Mar 3rd, 2013, 05:42 PM.

  • #2
    Well, mistery solved and it was my bad: the mysql server wasn't properly configured and that caused this weird situation. I still don't know why the 1.1.0 and 1.1.1 versions didn't throw any exception but after configuring the database everything works as expected. Lesson learned: always check the server carefully when getting connection failures.