[hibernate-dev] WildFly BeanValidationCdiIntegrationTestCase test failure with ORM 5

Scott Marlow smarlow at redhat.com
Tue Jul 7 16:50:36 EDT 2015


Hardy,

It seems that the ValidatorFactoryBean#createConstraintValidatorFactory 
is getting called too late for some reason. 
http://pastebin.com/WrdD91Hr shows the call stack for 
ValidatorFactoryBean#create(CreationalContext<ValidatorFactory> ctx) 
which calls createConstraintValidatorFactory, which seems too late 
(CdiValidatorFactoryService is shutting down).

To recreate the WildFly ORM 5 issue on WildFly (if you want to see it 
yourself), steps are:

1.  Build latest ORM master branch (./gradlew clean publishToMavenLocal).

2.  Build https://github.com/scottmarlow/wildfly/tree/hibernate5_july2 
branch (./build.sh clean install -DskipTests=true).

3. change into wildfly/testsuite/integration/basic folder and run "mvn 
clean install -Dtest=*BeanValidationCdiIntegrationTestCase*
"

To run WildFly with the debugger, cd into 
wildfly/dist/target/wildfly-10.0.0.Alpha5-SNAPSHOT/bin and edit the 
standalone.conf file.  Uncomment the "remote socket debugger" line #57 
to look something like the following:

JAVA_OPTS="$JAVA_OPTS 
-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=y"

Then start WildFly, via ./standalone.sh and open port 8787 with your 
debugger.

Then run the test (step #3 above) and your debugger breakpoint should be 
hit.

Scott


More information about the hibernate-dev mailing list