Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17283

HibernateException: Unable to resolve property xyz on ManyToOne with BatchSize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 27.0.0.Beta1, 27.0.0.Final
    • JPA / Hibernate
    • None
    • ---
    • ---

    Description

      While migrating to WildFly 27 we are getting the stacktrace below. When an @Entity with @Inheritance(SINGLE_TABLE) has a sub type with a @ManyToOne reference to an @Entity with @BatchSize, queries fail with HibernateException: Unable to resolve property: xyz. I've reported the issue upstream at https://hibernate.atlassian.net/browse/HHH-15694

      Caused by: jakarta.persistence.PersistenceException: Converting `org.hibernate.HibernateException` to JPA `PersistenceException` : Unable to resolve property: failoverTrustedCertificate
      	at org.hibernate@6.1.3.Final//org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:165)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.spi.AbstractSelectionQuery.list(AbstractSelectionQuery.java:374)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.sqm.internal.QuerySqmImpl.list(QuerySqmImpl.java:987)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.Query.getResultList(Query.java:94)
      	at deployment.keyhub.ear.keyhub-dao.jar//nl.topicus.keyhub.data.directory.AccountDirectoryDAO.getAllDirectories(AccountDirectoryDAO.java:64)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.jboss.as.ee@27.0.0.Beta1//org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
      	at org.jboss.as.weld.common@27.0.0.Beta1//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:79)
      	at org.jboss.as.weld.common@27.0.0.Beta1//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:89)
      	at org.jboss.as.weld.common@27.0.0.Beta1//org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:102)
      	at org.jboss.as.ee@27.0.0.Beta1//org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.ejb3@27.0.0.Beta1//org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.jpa@27.0.0.Beta1//org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.ee@27.0.0.Beta1//org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
      	at org.jboss.as.ee@27.0.0.Beta1//org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.ejb3@27.0.0.Beta1//org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.ejb3@27.0.0.Beta1//org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:56)
      	at org.jboss.invocation@1.7.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
      	at org.jboss.as.ejb3@27.0.0.Beta1//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:201)
      	... 131 more
      Caused by: org.hibernate.HibernateException: Unable to resolve property: failoverTrustedCertificate
      	at org.hibernate@6.1.3.Final//org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:871)
      	at org.hibernate@6.1.3.Final//org.hibernate.persister.entity.AbstractEntityPersister.getPropertyIndex(AbstractEntityPersister.java:2778)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.results.graph.entity.internal.BatchEntitySelectFetchInitializer.endLoading(BatchEntitySelectFetchInitializer.java:226)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.results.internal.StandardRowReader.finishUp(StandardRowReader.java:161)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:168)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.results.spi.ListResultsConsumer.consume(ListResultsConsumer.java:32)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.doExecuteQuery(JdbcSelectExecutorStandardImpl.java:443)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.executeQuery(JdbcSelectExecutorStandardImpl.java:166)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.exec.internal.JdbcSelectExecutorStandardImpl.list(JdbcSelectExecutorStandardImpl.java:91)
      	at org.hibernate@6.1.3.Final//org.hibernate.sql.exec.spi.JdbcSelectExecutor.list(JdbcSelectExecutor.java:31)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan.lambda$new$0(ConcreteSqmSelectQueryPlan.java:102)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan.withCacheableSqmInterpretation(ConcreteSqmSelectQueryPlan.java:305)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.sqm.internal.ConcreteSqmSelectQueryPlan.performList(ConcreteSqmSelectQueryPlan.java:246)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.sqm.internal.QuerySqmImpl.doList(QuerySqmImpl.java:537)
      	at org.hibernate@6.1.3.Final//org.hibernate.query.spi.AbstractSelectionQuery.list(AbstractSelectionQuery.java:363)
      	... 162 more
      

      Attachments

        Activity

          People

            smarlow1@redhat.com Scott Marlow
            papegaaij Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: