Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14361

Create Hibernate 2LC implementation for Hibernate 6.2.x.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It is not yet clear to me whether the existing implementation (compiled against ORM 6.0.x) is compatible with 6.2.x - in which case, we can close this.

      Hibernate 6.2.x will indeed require a separate 2LC implementation.

      12-14-2022 21:47:20:  Opened connection to http://localhost:8080/jpa_core_annotations_basic_puservlet_vehicle_web/puservlet_vehicle
      12-14-2022 21:47:20:  SVR-ERROR: Test case throws exception: java.lang.NoSuchMethodError: 'long org.hibernate.engine.spi.SharedSessionContractImplementor.getTransactionStartTimestamp()'
      12-14-2022 21:47:20:  SVR-ERROR: Exception at:  
      12-14-2022 21:47:20:  SVR-ERROR: java.lang.NoSuchMethodError: 'long org.hibernate.engine.spi.SharedSessionContractImplementor.getTransactionStartTimestamp()'
      	at org.infinispan.hibernate-cache@14.0.3.Final//org.infinispan.hibernate.cache.v60.impl.ReadOnlyEntityDataAccess.get(ReadOnlyEntityDataAccess.java:20)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.engine.internal.CacheHelper.fromSharedCache(CacheHelper.java:30)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3809)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:294)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.internal.EntityState.getEntityState(EntityState.java:59)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.internal.DefaultPersistEventListener.entityState(DefaultPersistEventListener.java:112)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.internal.DefaultPersistEventListener.persist(DefaultPersistEventListener.java:85)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:77)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:54)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:749)
      	at org.hibernate@6.2.0-SNAPSHOT//org.hibernate.internal.SessionImpl.persist(SessionImpl.java:733)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.tests.jpa.core.annotations.basic.Client.createTestData(Client.java:1325)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.tests.jpa.core.annotations.basic.Client.setupData(Client.java:59)
      	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 deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.lib.harness.EETest.run(EETest.java:569)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.tests.common.vehicle.puservlet.PUServletVehicle.runTest(PUServletVehicle.java:65)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.tests.common.vehicle.servlet.ServletVehicle.doGet(ServletVehicle.java:95)
      	at deployment.jpa_core_annotations_basic_vehicles.ear.jpa_core_annotations_basic_puservlet_vehicle_web.war//com.sun.ts.tests.common.vehicle.servlet.ServletVehicle.doPost(ServletVehicle.java:115)
      	at jakarta.servlet.api@6.0.0//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:547)
      	at jakarta.servlet.api@6.0.0//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
      	at io.smallrye.opentracing-contrib//io.smallrye.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:69)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      	at org.wildfly.security.elytron-web.undertow-server@3.0.0.Final//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.lambda$handleRequest$1(ElytronRunAsHandler.java:68)
      	at org.wildfly.security.elytron-base@2.0.0.Final//org.wildfly.security.auth.server.FlexibleIdentityAssociation.runAsFunctionEx(FlexibleIdentityAssociation.java:103)
      	at org.wildfly.security.elytron-base@2.0.0.Final//org.wildfly.security.auth.server.Scoped.runAsFunctionEx(Scoped.java:161)
      	at org.wildfly.security.elytron-base@2.0.0.Final//org.wildfly.security.auth.server.Scoped.runAs(Scoped.java:73)
      	at org.wildfly.security.elytron-web.undertow-server@3.0.0.Final//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.handleRequest(ElytronRunAsHandler.java:67)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.core@2.3.0.Final//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      	at io.undertow.core@2.3.0.Final//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      	at org.wildfly.security.elytron-web.undertow-server-servlet@3.0.0.Final//org.wildfly.elytron.web.undertow.server.servlet.CleanUpHandler.handleRequest(CleanUpHandler.java:38)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:275)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1435)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1435)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1435)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1435)
      	at org.wildfly.extension.undertow@28.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1435)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:255)
      	at io.undertow.servlet@2.3.0.Final//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:391)
      	at io.undertow.core@2.3.0.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at org.jboss.xnio@3.8.8.Final//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      
      12-14-2022 21:47:20:  Test status from a puservlet:  1:Test case throws exception: java.lang.NoSuchMethodError: 'long org.hibernate.engine.spi.SharedSessionContractImplementor.getTransactionStartTimestamp()'
      12-14-2022 21:47:20:  Test: returning from running in a puservlet vehicle
      STATUS:Failed.Test case throws exception: java.lang.NoSuchMethodError: 'long org.hibernate.engine.spi.SharedSessionContractImplementor.getTransactionStartTimestamp()'
      result: Failed. Test case throws exception: java.lang.NoSuchMethodError: 'long org.hibernate.engine.spi.SharedSessionContractImplementor.getTransactionStartTimestamp()'
      

              wburns@redhat.com Will Burns
              pferraro@redhat.com Paul Ferraro
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: