Open beoRich opened 11 months ago
@beoRich Try running your application with java --add-opens
to allow Reflection access on the Hibernate classes.
Thanks for your quick response.
Tried multiple variation (gradle test config or VM Options)
--add-opens io.hypersistence.optimizer=org.hibernate.internal
--add-open
But the error still remains
@beoRich Try to replicate it on the trial branch of this repository. It has many modules, including a Spring Boot one. If you can replicate it in this repository, then I will be able to investigate it and help you find the solution to this issue.
I am trying evaluate the hypersistence-optimizer in our spring boot hibernate application. After following installation guide and userguide and also succesfully testing out hypersistence-optimizer-public-parent I am running into a dead end with the following error:
Hibernate Config File:
Hypersistence Configuration:
Gradle dependencies: +--- org.springframework.boot:spring-boot-starter-web -> 2.5.2 () +--- org.springframework.boot:spring-boot-starter-data-jpa:2.6.4 | +--- org.springframework.boot:spring-boot-starter-aop:2.6.4 -> 2.5.2 | | +--- org.springframework.boot:spring-boot-starter:2.5.2 () | +--- org.springframework.boot:spring-boot-starter-jdbc:2.6.4 -> 2.5.2 | | +--- org.springframework.boot:spring-boot-starter:2.5.2 () | | +--- com.zaxxer:HikariCP:4.0.3 | | | --- org.slf4j:slf4j-api:1.7.30 -> 1.7.31 | | --- org.springframework:spring-jdbc:5.3.8 | | +--- org.springframework:spring-beans:5.3.8 () | | +--- org.springframework:spring-core:5.3.8 () | | --- org.springframework:spring-tx:5.3.8 () | +--- jakarta.transaction:jakarta.transaction-api:1.3.3 | +--- jakarta.persistence:jakarta.persistence-api:2.2.3 | +--- org.hibernate:hibernate-core:5.6.5.Final -> 5.4.32.Final | | +--- org.jboss.logging:jboss-logging:3.4.1.Final -> 3.4.2.Final
and
Also tried a different configuration aproach via HibernateTransactionManagerBootstrapExecutorConfiguration and run into the same issue.
Any help or hints would be appreciated!