Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19318

java.lang.IncompatibleClassChangeError exception is thrown by org.hibernate.test.typeoverride.TypeOverrideTest when executing on Eclipse OpenJ9 VM AdoptOpenJDK (v. 11.0.6)

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.3.0.GA.CR4
    • Fix Version/s: None
    • Component/s: Hibernate
    • Labels:
      None

      Description

      This is a clone of https://hibernate.atlassian.net/browse/HHH-13966

      When using Eclipse OpenJ9 VM AdoptOpenJDK (see Environment details), a java.lang.IncompatibleClassChangeError exception is thrown by the following test methods

      • org.hibernate.test.typeoverride.TypeOverrideTest.testInsert
      • org.hibernate.test.typeoverride.TypeOverrideTest.testRegisteredFunction

      when the following commands are executed to run the Hibernate ORM tests.

      # make gradle ignore test failures
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-core/hibernate-core.gradle
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-agroal/hibernate-agroal.gradle
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-c3p0/hibernate-c3p0.gradle
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-ehcache/hibernate-ehcache.gradle
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-envers/hibernate-envers.gradle
      echo -e '\ntest { ignoreFailures=true }' >> hibernate-proxool/hibernate-proxool.gradle
      
      ./gradlew test -Dmaven.repo.url=http://jcenter.bintray.com -Dgradle.plugin.url=https://plugins.gradle.org/m2/ \
              -Dhibernate.show_sql=true -Dhibernate.format_sql=true --info --stacktrace -x :hibernate-core:classes \
              -x :hibernate-envers:classes -x :hibernate-ehcache:test -x :hibernate-hikaricp:test -x :hibernate-jcache:test \
              -x :hibernate-vibur:test -x :hibernate-osgi:test -x :documentation:test -x :hibernate-spatial:test \
              -x :hibernate-testing:test --project-cache-dir=/tmp --continue -g local-home
      

      Environment:

      openjdk version "11.0.6" 2020-01-14
      OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
      Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.18.1, JRE 11 Linux amd64-64-Bit Compressed References 20200122_441 (JIT enabled, AOT enabled)
      OpenJ9 - 51a5857d2
      OMR - 7a1b0239a
      JCL - da35e0c380 based on jdk-11.0.6+10)

      OS name: "linux", version: "3.10.0-1062.el7.x86_64", arch: "amd64", family: "unix"

      Stack trace:

      java.lang.IncompatibleClassChangeError: org.hibernate.test.typeoverride.StoredPrefixedStringType
      	at org.hibernate.type.Type.resolve(Type.java:487)
      	at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:205)
      	at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:160)
      	at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:252)
      	at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:215)
      	at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:133)
      	at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:107)
      	at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:188)
      	at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4289)
      	at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:597)
      	at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:565)
      	at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:226)
      	at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:350)
      	at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:127)
      	at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:93)
      	at org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1277)
      	at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1265)
      	at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:208)
      	at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2901)
      	at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2875)
      	at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1097)
      ...
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gbadner Gail Badner
                  Reporter:
                  fburzigo Fabio Burzigotti
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: