InvalidDataAccessApiUsageException

288 Views Asked by At

I'm running a Grails application in "PRODUCTION ENV." with version 2.3.1. It runs fine for some time. But after some time, it starts failing with exception "InvalidDataAccessApiUsageException". Again when I delete target folder and re run the application, it works good.

There is no error while working in "DEVELOPMENT ENV".

Detailed exception is

[[ErrorType:class org.springframework.dao.InvalidDataAccessApiUsageException],
 [ErrorMessage:The given object has a null identifier: com.test.model.Test;
    nested exception is org.hibernate.TransientObjectException:
    The given object has a null identifier: com.test.model.Test]]
0

There are 0 best solutions below