testlens-app[bot] commented on PR #16350:
URL: https://github.com/apache/grails-core/pull/16350#issuecomment-6101856001

   ## 🚨 TestLens detected 1 failed test 🚨
   
   ### Test Summary
   > [!TIP]
   > Inspect all details with the [TestLens 
CLI](https://testlens.app/docs/features/cli): `testlens pr 16350`
   
   #### [CI / Build Grails-Core Rerunning all Tasks \(Ubuntu JDK 21 shard 
2\)](https://github.com/apache/grails-core/actions/runs/38083216258/job/114304234121?pr=16350)
 > :grails-data-graphql-core:test
   
   | Test | Runs | Flakiness |
   |---|---|--:|
   | SchemaSpec | ❌ | 0% 🟢 |
   
   🏷️ Commit: ef5736480bddd8e060d22bd6ece6e4a95b6726c8
   ▶️ Tests:  7317 executed
   🟡 Checks: 25/83 completed
   
   ### Test Failures
   
   <details><summary><strong>SchemaSpec</strong> 
(:grails-data-graphql-core:test in <a 
href="https://github.com/apache/grails-core/actions/runs/38083216258/job/114304234121?pr=16350";>CI
 / Build Grails-Core Rerunning all Tasks (Ubuntu JDK 21 shard 2)</a>)</summary>
   
   ```
   java.lang.RuntimeException: org.hibernate.MappingException: The property 
org.grails.gorm.graphql.domain.general.toone.ToOne.bytes uses a wrapper type 
Byte[]/Character[] which indicates an issue in your domain model. These types 
have been treated like byte[]/char[] until Hibernate 6.2 which meant that null 
elements were not allowed, but on JDBC were processed like VARBINARY or 
VARCHAR. If you don't use nulls in your arrays, change the type of the property 
to byte[]/char[]. To allow explicit uses of the types Byte[]/Character[], 
allowing null elements, but with a different serialization format than before 
Hibernate 6.2, configure the setting 'hibernate.type.wrapper_array_handling' to 
the value 'ALLOW'. To revert to the legacy treatment of these types, configure 
the value to 'LEGACY'. For more information on this matter, consult the 
migration guide of Hibernate 6.2 and the Javadoc of the field 
'org.hibernate.cfg.AvailableSettings.WRAPPER_ARRAY_HANDLING'.
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:364)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:166)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:280)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:68)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:96)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:64)
        at 
org.grails.datastore.mapping.core.connections.ConnectionSourcesInitializer.create(ConnectionSourcesInitializer.groovy:45)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:370)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:406)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:410)
        at org.grails.gorm.graphql.SchemaSpec.setupSpec(SchemaSpec.groovy:47)
   Caused by: org.hibernate.MappingException: The property 
org.grails.gorm.graphql.domain.general.toone.ToOne.bytes uses a wrapper type 
Byte[]/Character[] which indicates an issue in your domain model. These types 
have been treated like byte[]/char[] until Hibernate 6.2 which meant that null 
elements were not allowed, but on JDBC were processed like VARBINARY or 
VARCHAR. If you don't use nulls in your arrays, change the type of the property 
to byte[]/char[]. To allow explicit uses of the types Byte[]/Character[], 
allowing null elements, but with a different serialization format than before 
Hibernate 6.2, configure the setting 'hibernate.type.wrapper_array_handling' to 
the value 'ALLOW'. To revert to the legacy treatment of these types, configure 
the value to 'LEGACY'. For more information on this matter, consult the 
migration guide of Hibernate 6.2 and the Javadoc of the field 
'org.hibernate.cfg.AvailableSettings.WRAPPER_ARRAY_HANDLING'.
        at org.hibernate.mapping.Property.isValid(Property.java:347)
        at 
org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:705)
        at org.hibernate.mapping.RootClass.validate(RootClass.java:286)
        at 
org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:464)
        at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:269)
        at 
org.hibernate.internal.SessionFactoryRegistry.instantiateSessionFactory(SessionFactoryRegistry.java:64)
        at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:458)
        at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1112)
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:362)
        ... 10 more
   ```
   
   </details>
   
   ### Rerun Controls
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 SchemaSpec <!-- 
uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.SchemaSpec] -->
   
   Reuse successful test results:
   
   🔲 ♻️ Only rerun the tests that failed or were muted before
   
   Click the checkbox to trigger a rerun:
   
   🔲 **Rerun jobs**
   
   ---
   _Learn more about TestLens at 
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to