Hello,
When I remove the UI dependencies the email notifications stop working and I get this error:
Caused by: org.eclipse.persistence.exceptions.JPQLException:
Exception Description: Problem compiling [select e from emltmp_EmailTemplate e where e.code = :code].
[14, 34] The abstract schema type ‘emltmp_EmailTemplate’ is unknown.
[43, 49] The state field path ‘e.code’ cannot be resolved to a valid type.
at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildException(HermesParser.java:157) ~[org.eclipse.persistence.core-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.jpql.HermesParser.validate(HermesParser.java:349) ~[org.eclipse.persistence.core-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.jpql.HermesParser.populateQueryImp(HermesParser.java:280) ~[org.eclipse.persistence.core-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildQuery(HermesParser.java:165) ~[org.eclipse.persistence.core-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:144) ~[org.eclipse.persistence.jpa-2.7.9-6-jmix.jar:na]
Caused by: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:118) ~[org.eclipse.persistence.jpa-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.(EJBQueryImpl.java:104) ~[org.eclipse.persistence.jpa-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.(EJBQueryImpl.java:88) ~[org.eclipse.persistence.jpa-2.7.9-6-jmix.jar:na]
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1753) ~[org.eclipse.persistence.jpa-2.7.9-6-jmix.jar:na]
… 134 common frames omitted
2022-07-13 15:51:17.385 DEBUG 18712 — [nio-8080-exec-4] i.j.w.WebdavRequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
Caused by: org.eclipse.persistence.exceptions.JPQLException:
The problem is that with only these two dependencies in build.grаdle:
implementation(“io.jmix.email:jmix-email-starter”)
implementation(“io.jmix.emailtemplates:jmix-emailtemplates-starter”)
The Jmix email notifications do not work.
Could you check why it’s not working?
Thanks