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

HHH-17484: Wrong column type generated for Envers audit tables #343

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Merge branch 'refs/heads/main' into HHH-17484

c701a57
Select commit
Loading
Failed to load commit list.
Open

HHH-17484: Wrong column type generated for Envers audit tables #343

Merge branch 'refs/heads/main' into HHH-17484
c701a57
Select commit
Loading
Failed to load commit list.
Hibernate Jenkins CI / Jenkins failed Aug 28, 2024 in 37s

Test: error in 'sh' step

Test / Shell Script

Error in sh step, with arguments mvn -B verify.

script returned exit code 1
Build log
+ mvn -B verify
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Hibernate ORM 5 Test Case Template                                 [jar]
[INFO] Hibernate ORM 6 Test Case Template                                 [jar]
[INFO] Hibernate Envers 5 Test Case Template                              [jar]
[INFO] Hibernate Envers 6 Test Case Template                              [jar]
[INFO] Hibernate Search 5 with Elasticsearch 2 Test Case Template         [jar]
[INFO] Hibernate Search 5 with Elasticsearch 5 Test Case Template         [jar]
[INFO] Hibernate Search 5 with Lucene Test Case Template                  [jar]
[INFO] Hibernate Search 6 with Hibernate ORM and Elasticsearch Test Case Template [jar]
[INFO] Hibernate Search 6 with Hibernate ORM and Lucene Test Case Template [jar]
[INFO] Hibernate Search 7 with Hibernate ORM and Elasticsearch Test Case Template [jar]
[INFO] Hibernate Search 7 with Hibernate ORM and Lucene Test Case Template [jar]
[INFO] Hibernate Validator 6 Test Case Template                           [jar]
[INFO] Hibernate Validator 8 Test Case Template                           [jar]
[INFO] Hibernate Test Case Templates - Aggregator POM                     [pom]
[INFO] 
[INFO] --< org.hibernate.testcasetemplate:test-case-template-hibernate-orm-5 >--
[INFO] Building Hibernate ORM 5 Test Case Template 1.0.0.Final           [1/14]
[INFO]   from orm/hibernate-orm-5/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-case-template-hibernate-orm-5 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/orm/hibernate-orm-5/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ test-case-template-hibernate-orm-5 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-case-template-hibernate-orm-5 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:testCompile (default-testCompile) @ test-case-template-hibernate-orm-5 ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- hibernate-enhance-maven-plugin:5.6.15.Final:enhance (default) @ test-case-template-hibernate-orm-5 ---
[WARNING] Skipping Hibernate bytecode enhancement plugin execution since no feature is enabled
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-case-template-hibernate-orm-5 ---
[INFO] Surefire report directory: /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/orm/hibernate-orm-5/target/surefire-reports
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.pom (2.4 kB at 13 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-providers/2.12.4/surefire-providers-2.12.4.pom (2.3 kB at 235 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/2.12.4/surefire-junit4-2.12.4.jar (37 kB at 1.9 MB/s)

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hibernate.bugs.JPAUnitTestCase
2024-08-28 08:17:03 INFO  LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [name: templatePU]
2024-08-28 08:17:04 INFO  Version:44 - HHH000412: Hibernate ORM core version 5.6.15.Final
2024-08-28 08:17:04 INFO  Environment:184 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.format_sql=true, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.connection.username=sa, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1, hibernate.max_fetch_depth=5, hibernate.show_sql=false, hibernate.jdbc.batch_versioned_data=true, javax.persistence.validation.mode=NONE, hibernate.connection.driver_class=org.h2.Driver, hibernate.connection.password=****, hibernate.bytecode.use_reflection_optimizer=false, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.pool_size=5, hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory, hibernate.service.allow_crawling=false, hibernate.session.events.log=true}
2024-08-28 08:17:04 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:04 INFO  Version:56 - HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2024-08-28 08:17:04 WARN  pooling:75 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2024-08-28 08:17:04 INFO  pooling:119 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2024-08-28 08:17:04 INFO  pooling:128 - HHH10001001: Connection properties: {password=****, user=sa}
2024-08-28 08:17:04 INFO  pooling:132 - HHH10001003: Autocommit mode: false
2024-08-28 08:17:04 INFO  DriverManagerConnectionProviderImpl:322 - HHH000115: Hibernate connection pool size: 5 (min=1)
2024-08-28 08:17:04 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:04 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2024-08-28 08:17:04 INFO  StatisticalLoggingSessionEventListener:258 - Session Metrics {
    65972 nanoseconds spent acquiring 1 JDBC connections;
    96080 nanoseconds spent releasing 1 JDBC connections;
    0 nanoseconds spent preparing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
2024-08-28 08:17:04 INFO  SchemaDropperImpl$DelayedDropActionImpl:538 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
2024-08-28 08:17:04 INFO  pooling:550 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.464 sec
Running org.hibernate.bugs.ORMStandaloneTestCase
2024-08-28 08:17:04 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:04 WARN  pooling:75 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2024-08-28 08:17:04 INFO  pooling:119 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2024-08-28 08:17:04 INFO  pooling:128 - HHH10001001: Connection properties: {password=****, user=sa}
2024-08-28 08:17:04 INFO  pooling:132 - HHH10001003: Autocommit mode: false
2024-08-28 08:17:04 INFO  DriverManagerConnectionProviderImpl:322 - HHH000115: Hibernate connection pool size: 5 (min=1)
2024-08-28 08:17:04 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:04 INFO  access:48 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@127705e4] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
2024-08-28 08:17:04 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec
Running org.hibernate.bugs.ORMUnitTestCase
2024-08-28 08:17:04 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:04 INFO  CustomRunner:116 - BeforeClass: org.hibernate.bugs.ORMUnitTestCase
2024-08-28 08:17:04 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:04 WARN  TestClassMetadata:173 - Open SessionFactory instances found prior to start of test class [org.hibernate.bugs.ORMUnitTestCase]
2024-08-28 08:17:04 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:04 WARN  pooling:75 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2024-08-28 08:17:04 INFO  pooling:119 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2024-08-28 08:17:04 INFO  pooling:128 - HHH10001001: Connection properties: {password=****, user=sa}
2024-08-28 08:17:04 INFO  pooling:132 - HHH10001003: Autocommit mode: false
2024-08-28 08:17:04 INFO  DriverManagerConnectionProviderImpl:322 - HHH000115: Hibernate connection pool size: 5 (min=1)
2024-08-28 08:17:04 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:04 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2024-08-28 08:17:04 INFO  CustomRunner:123 - Test: hhh123Test
2024-08-28 08:17:04 INFO  StatisticalLoggingSessionEventListener:258 - Session Metrics {
    32426 nanoseconds spent acquiring 1 JDBC connections;
    88854 nanoseconds spent releasing 1 JDBC connections;
    0 nanoseconds spent preparing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
2024-08-28 08:17:04 INFO  SchemaDropperImpl$DelayedDropActionImpl:538 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
2024-08-28 08:17:04 WARN  TestClassMetadata:218 - Open SessionFactory instances found after completion of test class [org.hibernate.bugs.ORMUnitTestCase]; closing them
2024-08-28 08:17:04 INFO  pooling:550 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test-case-template-hibernate-orm-5 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --< org.hibernate.testcasetemplate:test-case-template-hibernate-orm-6 >--
[INFO] Building Hibernate ORM 6 Test Case Template 1.0.0.Final           [2/14]
[INFO]   from orm/hibernate-orm-6/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-case-template-hibernate-orm-6 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/orm/hibernate-orm-6/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ test-case-template-hibernate-orm-6 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-case-template-hibernate-orm-6 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:testCompile (default-testCompile) @ test-case-template-hibernate-orm-6 ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- hibernate-enhance-maven-plugin:6.6.0.Final:enhance (default) @ test-case-template-hibernate-orm-6 ---
[WARNING] Skipping Hibernate bytecode enhancement plugin execution since no feature is enabled
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-case-template-hibernate-orm-6 ---
[INFO] Surefire report directory: /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/orm/hibernate-orm-6/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test-case-template-hibernate-orm-6 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --< org.hibernate.testcasetemplate:test-case-template-hibernate-envers-5 >--
[INFO] Building Hibernate Envers 5 Test Case Template 1.0.0.Final        [3/14]
[INFO]   from envers/envers-5/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-case-template-hibernate-envers-5 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/envers/envers-5/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ test-case-template-hibernate-envers-5 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-case-template-hibernate-envers-5 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:testCompile (default-testCompile) @ test-case-template-hibernate-envers-5 ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-case-template-hibernate-envers-5 ---
[INFO] Surefire report directory: /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/envers/envers-5/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hibernate.envers.bugs.EnversUnitTestCase
2024-08-28 08:17:06 INFO  Version:44 - HHH000412: Hibernate ORM core version 5.6.15.Final
2024-08-28 08:17:06 INFO  Environment:184 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.format_sql=true, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.connection.username=sa, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1, hibernate.max_fetch_depth=5, hibernate.show_sql=false, hibernate.jdbc.batch_versioned_data=true, javax.persistence.validation.mode=NONE, hibernate.connection.driver_class=org.h2.Driver, hibernate.bytecode.use_reflection_optimizer=false, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.pool_size=5, hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory, hibernate.service.allow_crawling=false, hibernate.session.events.log=true}
2024-08-28 08:17:06 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:06 INFO  CustomRunner:116 - BeforeClass: org.hibernate.envers.bugs.EnversUnitTestCase
2024-08-28 08:17:06 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:06 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:06 INFO  Version:56 - HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2024-08-28 08:17:06 WARN  pooling:75 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2024-08-28 08:17:06 INFO  pooling:119 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2024-08-28 08:17:06 INFO  pooling:128 - HHH10001001: Connection properties: {user=sa}
2024-08-28 08:17:06 INFO  pooling:132 - HHH10001003: Autocommit mode: false
2024-08-28 08:17:06 INFO  DriverManagerConnectionProviderImpl:322 - HHH000115: Hibernate connection pool size: 5 (min=1)
2024-08-28 08:17:06 INFO  Dialect:175 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2024-08-28 08:17:06 INFO  EnversServiceImpl:88 - Envers integration enabled? : true
2024-08-28 08:17:07 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2024-08-28 08:17:07 INFO  CustomRunner:123 - Test: hhh123Test
2024-08-28 08:17:07 INFO  StatisticalLoggingSessionEventListener:258 - Session Metrics {
    0 nanoseconds spent acquiring 0 JDBC connections;
    0 nanoseconds spent releasing 0 JDBC connections;
    0 nanoseconds spent preparing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
2024-08-28 08:17:07 INFO  SchemaDropperImpl$DelayedDropActionImpl:538 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.481 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ test-case-template-hibernate-envers-5 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --< org.hibernate.testcasetemplate:test-case-template-hibernate-envers-6 >--
[INFO] Building Hibernate Envers 6 Test Case Template 1.0.0.Final        [4/14]
[INFO]   from envers/envers-6/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test-case-template-hibernate-envers-6 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/envers/envers-6/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ test-case-template-hibernate-envers-6 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ test-case-template-hibernate-envers-6 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.13.0:testCompile (default-testCompile) @ test-case-template-hibernate-envers-6 ---
[INFO] Nothing to compile - all classes are up to date.
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ test-case-template-hibernate-envers-6 ---
[INFO] Surefire report directory: /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/envers/envers-6/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.hibernate.envers.bugs.EnversUnitTestCase
2024-08-28 08:17:08 INFO  Version:44 - HHH000412: Hibernate ORM core version 6.6.0.Final
2024-08-28 08:17:08 INFO  Environment:148 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.format_sql=true, jakarta.persistence.validation.mode=NONE, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.connection.username=sa, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1, hibernate.max_fetch_depth=5, hibernate.show_sql=false, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.driver_class=org.h2.Driver, hibernate.connection.password=****, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.pool_size=5, hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory, hibernate.service.allow_crawling=false, hibernate.session.events.log=true}
2024-08-28 08:17:08 INFO  CustomRunner:126 - BeforeClass: org.hibernate.envers.bugs.EnversUnitTestCase
2024-08-28 08:17:08 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:08 INFO  RegionFactoryInitiator:53 - HHH000025: Second-level cache region factory [org.hibernate.testing.cache.CachingRegionFactory]
2024-08-28 08:17:08 WARN  pooling:86 - HHH10001002: Using built-in connection pool (not intended for production use)
2024-08-28 08:17:08 WARN  deprecation:153 - HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2024-08-28 08:17:08 INFO  pooling:158 - HHH10001005: Database info:
	Database JDBC URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
	Database driver: org.h2.Driver
	Database version: 2.3.232
	Autocommit mode: false
	Isolation level: undefined/unknown
	Minimum pool size: 1
	Maximum pool size: 5
2024-08-28 08:17:08 INFO  EnversServiceImpl:76 - Envers integration enabled? : true
2024-08-28 08:17:08 INFO  AuditMetadataGenerator:322 - Adding properties for entity: com.example.domain.Pet
Hibernate: 
    create global temporary table HTE_Pet(rn_ integer not null, id bigint, description clob, primary key (rn_)) TRANSACTIONAL
2024-08-28 08:17:09 ERROR MetadataContext:771 - HHH015007: Illegal argument on static metamodel field injection : org.hibernate.envers.DefaultRevisionEntity_#class_; expected type :  org.hibernate.metamodel.model.domain.internal.EntityTypeImpl; encountered type : jakarta.persistence.metamodel.MappedSuperclassType
2024-08-28 08:17:09 INFO  JtaPlatformInitiator:56 - HHH000490: Using JTA platform [org.hibernate.engine.transaction.jta.platform.internal.WildFlyStandAloneJtaPlatform]
Hibernate: 
    drop table if exists Pet cascade 
2024-08-28 08:17:09 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@3b3546a3] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    drop table if exists Pet_AUD cascade 
Hibernate: 
    drop table if exists REVINFO cascade 
Hibernate: 
    drop sequence if exists Pet_SEQ
Hibernate: 
    create sequence Pet_SEQ start with 1 increment by 50
2024-08-28 08:17:09 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@5f3f3d00] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    create table Pet (
        id bigint not null,
        description clob,
        primary key (id)
    )
Hibernate: 
    create table Pet_AUD (
        REV integer not null,
        REVTYPE tinyint,
        id bigint not null,
        description varchar(255),
        primary key (REV, id)
    )
Hibernate: 
    create table REVINFO (
        REV integer generated by default as identity,
        REVTSTMP bigint,
        primary key (REV)
    )
Hibernate: 
    alter table if exists Pet_AUD 
       add constraint FKsfo94d984pa1q63v8axatd252 
       foreign key (REV) 
       references REVINFO
2024-08-28 08:17:09 INFO  CustomRunner:133 - Test: hhh17484Test
Hibernate: 
    select
        next value for Pet_SEQ
Hibernate: 
    insert 
    into
        Pet
        (description, id) 
    values
        (?, ?)
Hibernate: 
    insert 
    into
        REVINFO
        (REVTSTMP, REV) 
    values
        (?, default)
Hibernate: 
    insert 
    into
        Pet_AUD
        (REVTYPE, description, REV, id) 
    values
        (?, ?, ?, ?)
2024-08-28 08:17:10 WARN  SqlExceptionHelper:145 - SQL Error: 22001, SQLState: 22001
2024-08-28 08:17:10 ERROR SqlExceptionHelper:150 - Value too long for column "DESCRIPTION CHARACTER VARYING(255)": "'Meet Whiskers, the enigmatic feline wizard with emerald eyes and a sleek obsidi... (290)"; SQL statement:
insert into Pet_AUD (REVTYPE,description,REV,id) values (?,?,?,?) [22001-232]
2024-08-28 08:17:10 INFO  StatisticalLoggingSessionEventListener:280 - Session Metrics {
    58096 nanoseconds spent acquiring 1 JDBC connections;
    158883 nanoseconds spent releasing 1 JDBC connections;
    4866425 nanoseconds spent preparing 4 JDBC statements;
    14769364 nanoseconds spent executing 4 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    33459419 nanoseconds spent executing 2 flushes (flushing a total of 4 entities and 0 collections);
    0 nanoseconds spent executing 0 pre-partial-flushes;
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
Hibernate: 
    drop table if exists Pet cascade 
2024-08-28 08:17:10 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@150f41b9] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    drop table if exists Pet_AUD cascade 
Hibernate: 
    drop table if exists REVINFO cascade 
Hibernate: 
    drop sequence if exists Pet_SEQ
Hibernate: 
    drop table HTE_Pet
2024-08-28 08:17:10 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2024-08-28 08:17:10 INFO  RegionFactoryInitiator:53 - HHH000025: Second-level cache region factory [org.hibernate.testing.cache.CachingRegionFactory]
2024-08-28 08:17:10 WARN  deprecation:153 - HHH90000025: H2Dialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2024-08-28 08:17:10 INFO  pooling:158 - HHH10001005: Database info:
	Database JDBC URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
	Database driver: org.h2.Driver
	Database version: 2.3.232
	Autocommit mode: false
	Isolation level: undefined/unknown
	Minimum pool size: 1
	Maximum pool size: 5
2024-08-28 08:17:10 INFO  EnversServiceImpl:76 - Envers integration enabled? : true
2024-08-28 08:17:10 INFO  AuditMetadataGenerator:322 - Adding properties for entity: com.example.domain.Pet
Hibernate: 
    create global temporary table HTE_Pet(rn_ integer not null, id bigint, description clob, primary key (rn_)) TRANSACTIONAL
2024-08-28 08:17:10 ERROR MetadataContext:771 - HHH015007: Illegal argument on static metamodel field injection : org.hibernate.envers.DefaultRevisionEntity_#class_; expected type :  org.hibernate.metamodel.model.domain.internal.EntityTypeImpl; encountered type : jakarta.persistence.metamodel.MappedSuperclassType
2024-08-28 08:17:10 INFO  JtaPlatformInitiator:56 - HHH000490: Using JTA platform [org.hibernate.engine.transaction.jta.platform.internal.WildFlyStandAloneJtaPlatform]
Hibernate: 
    drop table if exists Pet cascade 
2024-08-28 08:17:10 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@5a90fcaa] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    drop table if exists Pet_AUD cascade 
Hibernate: 
    drop table if exists REVINFO cascade 
Hibernate: 
    drop sequence if exists Pet_SEQ
Hibernate: 
    create sequence Pet_SEQ start with 1 increment by 50
2024-08-28 08:17:10 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1805ec96] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    create table Pet (
        id bigint not null,
        description clob,
        primary key (id)
    )
Hibernate: 
    create table Pet_AUD (
        REV integer not null,
        REVTYPE tinyint,
        id bigint not null,
        description varchar(255),
        primary key (REV, id)
    )
Hibernate: 
    create table REVINFO (
        REV integer generated by default as identity,
        REVTSTMP bigint,
        primary key (REV)
    )
Hibernate: 
    alter table if exists Pet_AUD 
       add constraint FKsfo94d984pa1q63v8axatd252 
       foreign key (REV) 
       references REVINFO
Hibernate: 
    drop table if exists Pet cascade 
2024-08-28 08:17:10 INFO  access:52 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@24615687] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate: 
    drop table if exists Pet_AUD cascade 
Hibernate: 
    drop table if exists REVINFO cascade 
Hibernate: 
    drop sequence if exists Pet_SEQ
Hibernate: 
    drop table HTE_Pet
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.804 sec <<< FAILURE!
hhh17484Test(org.hibernate.envers.bugs.EnversUnitTestCase)  Time elapsed: 0.332 sec  <<< ERROR!
org.hibernate.exception.DataException: could not execute statement [Value too long for column "DESCRIPTION CHARACTER VARYING(255)": "'Meet Whiskers, the enigmatic feline wizard with emerald eyes and a sleek obsidi... (290)"; SQL statement:
insert into Pet_AUD (REVTYPE,description,REV,id) values (?,?,?,?) [22001-232]] [insert into Pet_AUD (REVTYPE,description,REV,id) values (?,?,?,?)]
	at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:55)
	at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:58)
	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108)
	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
	at org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.performNonBatchedMutation(AbstractMutationExecutor.java:134)
	at org.hibernate.engine.jdbc.mutation.internal.MutationExecutorSingleNonBatched.performNonBatchedOperations(MutationExecutorSingleNonBatched.java:55)
	at org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.execute(AbstractMutationExecutor.java:55)
	at org.hibernate.persister.entity.mutation.InsertCoordinatorStandard.doStaticInserts(InsertCoordinatorStandard.java:194)
	at org.hibernate.persister.entity.mutation.InsertCoordinatorStandard.coordinateInsert(InsertCoordinatorStandard.java:132)
	at org.hibernate.persister.entity.mutation.InsertCoordinatorStandard.insert(InsertCoordinatorStandard.java:104)
	at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:110)
	at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:644)
	at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:511)
	at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:414)
	at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:41)
	at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:127)
	at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1429)
	at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1415)
	at org.hibernate.envers.internal.synchronization.AuditProcess.doBeforeTransactionCompletion(AuditProcess.java:178)
	at org.hibernate.envers.internal.synchronization.AuditProcessManager$1.doBeforeTransactionCompletion(AuditProcessManager.java:47)
	at org.hibernate.engine.spi.ActionQueue$BeforeTransactionCompletionProcessQueue.beforeTransactionCompletion(ActionQueue.java:1027)
	at org.hibernate.engine.spi.ActionQueue.beforeTransactionCompletion(ActionQueue.java:557)
	at org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:1979)
	at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:439)
	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:169)
	at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:267)
	at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:101)
	at org.hibernate.envers.bugs.EnversUnitTestCase.hhh17484Test(EnversUnitTestCase.java:55)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.h2.jdbc.JdbcSQLDataException: Value too long for column "DESCRIPTION CHARACTER VARYING(255)": "'Meet Whiskers, the enigmatic feline wizard with emerald eyes and a sleek obsidi... (290)"; SQL statement:
insert into Pet_AUD (REVTYPE,description,REV,id) values (?,?,?,?) [22001-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:518)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:223)
	at org.h2.message.DbException.getValueTooLongException(DbException.java:334)
	at org.h2.value.Value.getValueTooLongException(Value.java:2612)
	at org.h2.value.Value.convertToVarchar(Value.java:1287)
	at org.h2.value.Value.convertTo(Value.java:1143)
	at org.h2.value.Value.convertForAssignTo(Value.java:1118)
	at org.h2.table.Column.validateConvertUpdateSequence(Column.java:406)
	at org.h2.table.Table.convertInsertRow(Table.java:963)
	at org.h2.command.dml.Insert.insertRows(Insert.java:167)
	at org.h2.command.dml.Insert.update(Insert.java:135)
	at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:74)
	at org.h2.command.CommandContainer.update(CommandContainer.java:139)
	at org.h2.command.Command.executeUpdate(Command.java:304)
	at org.h2.command.Command.executeUpdate(Command.java:248)
	at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:213)
	at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:172)
	at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:194)
	... 39 more


Results :

Tests in error: 
  hhh17484Test(org.hibernate.envers.bugs.EnversUnitTestCase): could not execute statement [Value too long for column "DESCRIPTION CHARACTER VARYING(255)": "'Meet Whiskers, the enigmatic feline wizard with emerald eyes and a sleek obsidi... (290)"; SQL statement:(..)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Hibernate ORM 5 Test Case Template 1.0.0.Final ..... SUCCESS [  3.448 s]
[INFO] Hibernate ORM 6 Test Case Template 1.0.0.Final ..... SUCCESS [  0.438 s]
[INFO] Hibernate Envers 5 Test Case Template 1.0.0.Final .. SUCCESS [  1.758 s]
[INFO] Hibernate Envers 6 Test Case Template 1.0.0.Final .. FAILURE [  3.088 s]
[INFO] Hibernate Search 5 with Elasticsearch 2 Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 5 with Elasticsearch 5 Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 5 with Lucene Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 6 with Hibernate ORM and Elasticsearch Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 6 with Hibernate ORM and Lucene Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 7 with Hibernate ORM and Elasticsearch Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Search 7 with Hibernate ORM and Lucene Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Validator 6 Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Validator 8 Test Case Template 1.0.0.Final SKIPPED
[INFO] Hibernate Test Case Templates - Aggregator POM 1.0-SNAPSHOT SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.867 s
[INFO] Finished at: 2024-08-28T08:17:10Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project test-case-template-hibernate-envers-6: There are test failures.
[ERROR] 
[ERROR] Please refer to /mnt/workdir/jenkins/workspace/rnate-test-case-templates_PR-343/envers/envers-6/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :test-case-template-hibernate-envers-6

Details

  • Declarative: Checkout SCM (5.7 sec)
    • Declarative: Tool Install (3.6 sec)
      • Build (16 sec)
      • Test (11 sec)
        Error: script returned exit code 1