I am not sure what the cause is - but I have worked how to fix it…
Nonetheless - I am asking if this symptom is a bug or not?
For a new developer, never installed anything Lucee or our code-base.
We use CommandBox. (latest)
We’re using the Lucee 3.5.5.latest Hibernate extension.
When going to the “home page” - I get the login page (as expected)
So it seems that everything is working correctly.
But upon form submission - I get the following error for Lucee 5.3.x.x and 5.4.x.x.
lucee cannot load an entity customer:1
Restarting the Lucee Server does not fix the issue.
Performing an application restart via applicationStop() - does not fix the issue.
After a couple of hours - I thought to perform an ormReload() - and the application has worked flawlessly, since.
My question is - why is it so?
I am expecting that upon application initialisation / start - that if you have ORM enabled, that it would do everything that is needed for my application to run correctly.
Whatever it is that ormReload() is doing when run manually - should happen automatically, right?
I am currently getting around it by adding ormReload() to my onApplicationStart() - but I really feel this shouldn’t be necessary.
Tomcat Version: Undertow ???
Lucee Version: 188.8.131.52 / 184.108.40.206-SNAPSHOT / 220.127.116.11