snaco commented on issue #14433:
URL: https://github.com/apache/grails-core/issues/14433#issuecomment-3534587315

   @cdausmus I literally spent 2 full days trying everything under the sun 
disabling springboot dev tools finally gave me an error I could debug properly. 
   
   For context I started seeing this error when we migrated from a single table 
with 5 discriminator columns (i know awful data modeling but I'm inheriting 
legacy code) to a tablePerHierarchy model with subdomains and a single 
formalized discriminator column. One specific sub-class was causing the 
`java.lang.NullPointerException: Cannot invoke 
"org.grails.orm.hibernate.cfg.Mapping.getBatchSize()" because "m" is null` 
exception. Once I disabled springboot dev tools it revealed the masked error 
was actually  due to an erroneous @Transactional annotation on a helper method 
on the domain entity. GORM was trying to map the transactionManager to a 
non-existent transaction_manager column in the database. Removing 
@Transactional from the domain methods resolved the issue. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to