Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernate 6.3 support #1796

Closed
EugenMayer opened this issue Sep 20, 2023 · 3 comments · Fixed by #1754
Closed

Hibernate 6.3 support #1796

EugenMayer opened this issue Sep 20, 2023 · 3 comments · Fixed by #1754
Assignees
Labels
component: core kind: bug worth: high Implementing this has a high worth
Milestone

Comments

@EugenMayer
Copy link
Contributor

BP 1.6.9 seems not to be compatible with hibernate 6.3.0

java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@5ba6657f testClass = de.kontextwork.dw.core.config.openapi.OpenApiConfigurationTest, locations = [], classes = [de.kontextwork.dw.core.Application], contextInitializerClasses = [], activeProfiles = ["it"], propertySourceLocations = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@4b3fa0b3, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@6f4029e9, [ImportsContextCustomizer@5f48cd81 key = [org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityConfiguration, org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration, de.kontextwork.dw.platform.testing.utils.mocker.TenantMocker, de.kontextwork.dw.platform.testing.utils.mocker.LicenseMocker, de.kontextwork.dw.platform.testing.utils.mocker.ConverterMocker, de.kontextwork.dw.platform.testing.utils.mocker.FeatureMocker, de.kontextwork.dw.platform.testing.utils.mocker.SecurityContextMocker, de.kontextwork.dw.platform.testing.utils.database.TenantDatabaseService]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@696ce057, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@49338f3, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@c40b421d, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@3d667b59, org.springframework.boot.test.web.reactive.server.WebTestClientContextCustomizer@2bda7a5b, org.springframework.boot.test.context.SpringBootTestAnnotation@3e167a60], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar:file:/__w/1/s/platform-projects/platform-base/build/libs/platform-base.jar!/de/kontextwork/dw/platform/database/sql/HibernateTenancyEntityManagerFactory.class]: Cannot invoke "org.hibernate.boot.spi.MetadataImplementor.getEntityBindings()" because "this.metadata" is null

    Caused by: java.lang.NullPointerException: Cannot invoke "org.hibernate.boot.spi.MetadataImplementor.getEntityBindings()" because "this.metadata" is null
@EugenMayer
Copy link
Contributor Author

Using hibnerate 6.3.1.FINAL results in

  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: 'java.util.Iterator org.hibernate.mapping.PersistentClass.getSubclassPropertyClosureIterator()'

  Caused by: java.lang.NoSuchMethodError: 'java.util.Iterator org.hibernate.mapping.PersistentClass.getSubclassPropertyClosureIterator()'

@beikov beikov added kind: bug component: core worth: high Implementing this has a high worth labels Sep 20, 2023
@beikov beikov added this to the 1.6.10 milestone Sep 20, 2023
@beikov beikov self-assigned this Sep 20, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Sep 23, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Sep 23, 2023
@beikov beikov changed the title Blaze persistence hibernate 6.3.0 compatibility Hibernate 6.3 support Sep 23, 2023
@EugenMayer
Copy link
Contributor Author

With #1794 hibernate 6.3.1 works just fine!

beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 6, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 6, 2023
beikov added a commit to beikov/blaze-persistence that referenced this issue Nov 6, 2023
@EugenMayer
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core kind: bug worth: high Implementing this has a high worth
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants