Bug 900029 (JBPAPP6-1223) - Hibernate Validator test failures on various JDKs
Summary: Hibernate Validator test failures on various JDKs
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBPAPP6-1223
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.1.0
Assignee: Brett Meyer
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks: JBPAPP6-1159
TreeView+ depends on / blocked
 
Reported: 2012-03-12 18:15 UTC by Zbyněk Roubalík
Modified: 2015-09-01 04:00 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-15 14:34:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBPAPP6-1223 0 Major Closed Hibernate Validator test failures on various JDKs 2017-06-14 14:38:09 UTC

Description Zbyněk Roubalík 2012-03-12 18:15:32 UTC
project_key: JBPAPP6

Several test failures: https://hudson.qa.jboss.com/hudson/view/Hibernate/view/Hibernate%20QA/job/EAP6-qa-hibernate-validator-trunk/50/


* *OpenJDK 1.6*  https://hudson.qa.jboss.com/hudson/view/Hibernate/view/Hibernate%20QA/job/EAP6-qa-hibernate-validator-trunk/50/jdk=openjdk-1.6.0-local,label=RHEL6/testReport/
** TestSuite.scriptExpressionReferencingAnnotatedObject  - ConstraintDeclarationException: Error during execution of script "_this.startDate.before(_this.endDate)" occurred.
** TestSuite.scriptExpressionUsingCustomizedAlias 


* *Oracle JDK 1.7*  https://hudson.qa.jboss.com/hudson/view/Hibernate/view/Hibernate%20QA/job/EAP6-qa-hibernate-validator-trunk/50/jdk=java17_default,label=RHEL6/testReport/
** TestSuite.scriptExpressionReferencingAnnotatedObject  - No JSR 223 script engine found for language "javascript".
** TestSuite.testConstraintInheritanceWithXmlConfiguration - problem with BeanType.isIgnoreAnnotations() - got "org.hibernate.validator.xml.BeanType.isIgnoreAnnotations()Ljava/lang/Boolean" instead of boolean typed result
** TestSuite.testEmptyInterfaceConfiguration 
** TestSuite.testInterfaceConfiguration  
** TestSuite.testInterfaceImplementationConfiguration  
** TestSuite.testListOfString 
** TestSuite.customConfigurationExplicitXmlDefinition 
** TestSuite.customConfigurationNoExplicitXmlDefinition  


* *OpenJDK 1.7* https://hudson.qa.jboss.com/hudson/view/Hibernate/view/Hibernate%20QA/job/EAP6-qa-hibernate-validator-trunk/50/jdk=openjdk-1.7.0-local,label=RHEL6/testReport/
** TestSuite.scriptEvaluatesToFalse   - No JSR 223 script engine found for language "javascript".
** TestSuite.scriptEvaluatesToTrue
** TestSuite.scriptExpressionReferencingAnnotatedObject   
** TestSuite.scriptExpressionUsingCustomizedAlias  
** TestSuite.testConstraintInheritanceWithXmlConfiguration  - problem with BeanType.isIgnoreAnnotations() - got "org.hibernate.validator.xml.BeanType.isIgnoreAnnotations()Ljava/lang/Boolean" instead of boolean typed result
** TestSuite.testEmptyInterfaceConfiguration    
** TestSuite.testInterfaceConfiguration   
** TestSuite.testInterfaceImplementationConfiguration  
** TestSuite.testListOfString 
** TestSuite.customConfigurationExplicitXmlDefinition 
** TestSuite.customConfigurationNoExplicitXmlDefinition

Comment 1 Strong Liu 2012-03-14 07:07:53 UTC
Zbyněk,

please open a community jira first if there is not one.

Comment 2 Strong Liu 2012-03-14 10:01:25 UTC
https://hibernate.onjira.com/browse/HV-525

Comment 3 Hardy Ferentschik 2012-03-14 10:15:53 UTC
These issues relate to https://hibernate.onjira.com/browse/HV-525 and https://hibernate.onjira.com/browse/HV-528.

Hibernate Validator 4.2.0 is using JDK 6 for building. It has issues when building with JDK7. These issues have been address in the Jiras above and in the HV 4.3.0.Alpha1 release. The 4.3 version compiles and tests successfully against JDK7.

The issues affect only the build and test process.

Comment 4 Madhumita Sadhukhan 2012-03-14 10:18:36 UTC
These tests have been fixed in HV 4.3.0.Alpha1 to make them compatible to run on jDK7 and is expected to fail on HV 4.2.0.Final(version used in EAP 6.0.0.ER3).
This is test-only known issue and we have decided to leave this open until we go for an upgrade of HV in EAP.

Comment 5 Strong Liu 2012-04-24 02:42:15 UTC
I"m resovling this as won't fix, since this only affects test code.

Comment 6 Madhumita Sadhukhan 2012-05-16 08:51:10 UTC
There are some more failures noticed in ER7 on JDK7(Oracle/IBM/OpenJDK) after the previously skipped tests were run in ER7

https://hudson.qa.jboss.com/hudson/view/EAP6/view/EAP6-Hibernate/job/EAP6-qa-hibernate-validator-trunk/62/

I am reopening this and marking it to be tracked so that the issue is tracked and we can verify it when we go for a component upgrade for Hibernate Validator

Comment 7 Madhumita Sadhukhan 2012-05-16 09:01:41 UTC
List of some tests failing on all JDK7

org.hibernate.validator.ap.AnnotationTypeValidationTest
org.hibernate.validator.ap.ConstraintValidationProcessorTest
org.hibernate.jsr303.tck.tests.xmlconfiguration.DuplicateConfigurationTest
org.hibernate.jsr303.tck.tests.xmlconfiguration.XmlConfigurationTest
org.hibernate.validator.test.xml.XmlMappingTest



Comment 8 Rostislav Svoboda 2012-06-07 09:46:19 UTC
Link: Added: This issue is a dependency of JBPAPP-9188


Comment 9 Brett Meyer 2012-09-14 16:33:18 UTC
What's the status on this?  Has there been a component upgrade?  Should I backport HV-528?

Comment 10 Brett Meyer 2012-10-01 15:04:51 UTC
[~madhumita12], was there a component upgrade for EAP6?

Comment 11 Madhumita Sadhukhan 2012-10-01 15:25:14 UTC
There was a component upgrade in EAP6.From EAP6 we started using Hibernate-validator-4.2.0.Final and there has been no more upgrades after that so far.
As per my last discussion(with Hardy/Strong) since this affected only test code fixed in HV 4.3.0 we decided to leave it until next upgrade of validators in EAP.
However If you wish to backport the fixes from HV 4.3.0. to 4.2.0 nothing better than that.

Comment 12 Hardy Ferentschik 2012-10-03 08:54:07 UTC
FYI, looking at the last set of failing tests:

{quote}
org.hibernate.validator.ap.AnnotationTypeValidationTest
org.hibernate.validator.ap.ConstraintValidationProcessorTest
org.hibernate.jsr303.tck.tests.xmlconfiguration.DuplicateConfigurationTest
org.hibernate.jsr303.tck.tests.xmlconfiguration.XmlConfigurationTest
org.hibernate.validator.test.xml.XmlMappingTest
{quote}

I am not quite sure how they would be connected to HV-525 and HV-528. But then again, I did not see the stack trace or error report. However, I just tested 4.3 again and it compiles/tests fine w/ JDK 7. I was using:

{code}
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /opt/java/maven
Java version: 1.7.0_05, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"
{code}



Comment 13 Brett Meyer 2012-10-12 17:54:51 UTC
[~hardy.ferentschik], I'm running the test suite on the 4.3 branch and had this failure, although the ones originally mentioned worked fine.

OpenJDK7
Maven 3.0.4
Fedora 17

testBeanMetaDataCanBeGarbageCollected(org.hibernate.validator.test.internal.metadata.BeanMetaDataManagerTest): Metadata instances should be garbage collectible

Not sure what else could be different on the CI job's environment.

Comment 14 Hardy Ferentschik 2012-10-15 08:22:13 UTC
@Brett, _BeanMetaDataManagerTest_ is a new test in 4.3 so I am not surprised it did not show up before. That the other errors disappeared is a good sign and as mentioned expected.

Is the test failure in _BeanMetaDataManagerTest_ repeatable? The test is trying to force a _OutOfMemoryException_ to verify that afterwards weak references have been cleared. I think we had some problems with the test before and we changed. It might be worth comparing the version on the 4.3 branch with master - https://github.com/hibernate/hibernate-validator/blob/master/engine/src/test/java/org/hibernate/validator/test/internal/metadata/BeanMetaDataManagerTest.java

Comment 15 Brett Meyer 2012-10-15 14:33:20 UTC
[~hardy.ferentschik], BeanMetaDataManagerTest fails for me on both 4.3 and master branches, w/ both Sun and OpenJDK 7.  However, everything else seems to pass.  With that test as the exception, we should be all set for the component upgrade.

Comment 16 Brett Meyer 2012-10-15 14:34:53 UTC
Hibernate components will be upgraded in EAP 6.1.0.

Comment 17 Brett Meyer 2012-10-15 14:34:53 UTC
Release Notes Docs Status: Added: Not Required


Comment 18 Anne-Louise Tangring 2012-11-13 20:46:40 UTC
Release Notes Docs Status: Removed: Not Required 
Docs QE Status: Removed: NEW 



Note You need to log in before you can comment on or make changes to this bug.