This one time I kept getting a Hibernate exception so I set a break point to check out what was going on. After reading everything I continued running and it ran fine... I did some more tests and realized that it worked fine if I created a break point and waited about 10 seconds before continuing ¯_(ツ)_/¯ (eventually came up with an actual solution but still a heh moment)
I'm no expert, but I think you have to explicitly specify asynchronicity for Hibernate and it wasn't used for many purposes on the project (definitely not here, at least).
This was last summer so I don't remember it super clearly, but I think the Hibernate session was ending prematurely. Then for some reason doing someEntity.getAttribute() prevented it.
Something like this happened to me. Except it only worked in the debugger because I had a watch variable in IntelliJ that was changing a value on break points.
22
u/Dillawnz Jul 20 '18
This one time I kept getting a Hibernate exception so I set a break point to check out what was going on. After reading everything I continued running and it ran fine... I did some more tests and realized that it worked fine if I created a break point and waited about 10 seconds before continuing ¯_(ツ)_/¯ (eventually came up with an actual solution but still a heh moment)