OK and now, it doesn't work with WildFly either.
[2020-29-23 06:29:54.112, 20101]ERROR[default task-1](DefaultMonetaryContextFactory.java:62) - Error evaluating default NumericContext, using default (NumericContext.NUM64).
java.lang.NullPointerException
at org.javamoney.moneta.spi.MonetaryConfig.getConfig(MonetaryConfig.java:106)
at org.javamoney.moneta.DefaultMonetaryContextFactory.getContext(DefaultMonetaryContextFactory.java:53)
at org.javamoney.moneta.Money.<clinit>(Money.java:74)
at org.hibernate.validator.integration.wildfly.OptionalConstraintsIT.canUseJavaMoneyBasedConstraint(OptionalConstraintsIT.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:182)
at org.jboss.arquillian.testng.Arquillian$2.invoke(Arquillian.java:173)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
It looked like an easy win but in the end I really don't have the time to try to understand what broke all the integrations. If someone is interested in trying to understand what's going on, there is a PR here for the 6.1 branch where the WildFly tests are enabled: https://github.com/hibernate/hibernate-validator/pull/1117 . |