[
http://opensource.atlassian.com/projects/hibernate/browse/HV-525?page=com...
]
Hardy Ferentschik commented on HV-525:
--------------------------------------
from the surefire reports:
{noformat}
javax.validation.ConstraintDeclarationException: Error during execution of script
"_this.startDate.before(_this.endDate)" occurred.
at
org.hibernate.validator.constraints.impl.ScriptAssertValidator.isValid(ScriptAssertValidator.java:65)
at
org.hibernate.validator.test.constraints.impl.ScriptAssertValidatorTest.scriptExpressionReferencingAnnotatedObject(ScriptAssertValidatorTest.java:65)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:122)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:101)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: TypeError:
Cannot call method "before" of undefined (<Unknown source>#1) in
<Unknown source> at line number 1
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:133)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:149)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at
org.hibernate.validator.util.scriptengine.ScriptEvaluator.doEvaluate(ScriptEvaluator.java:67)
at
org.hibernate.validator.util.scriptengine.ScriptEvaluator.evaluate(ScriptEvaluator.java:60)
at
org.hibernate.validator.constraints.impl.ScriptAssertValidator.isValid(ScriptAssertValidator.java:62)
... 35 more
Caused by: sun.org.mozilla.javascript.EcmaError: TypeError: Cannot call method
"before" of undefined (<Unknown source>#1)
at sun.org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3785)
at sun.org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3763)
at sun.org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3791)
at sun.org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3810)
at sun.org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3829)
at
sun.org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2334)
at
sun.org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2327)
at sun.org.mozilla.javascript.gen._Unknown_source__9._c_script_0(<Unknown
source>:1)
at sun.org.mozilla.javascript.gen._Unknown_source__9.call(<Unknown source>)
at sun.org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at sun.org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
at sun.org.mozilla.javascript.gen._Unknown_source__9.call(<Unknown source>)
at sun.org.mozilla.javascript.gen._Unknown_source__9.exec(<Unknown source>)
at sun.org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:123)
{noformat}
tests fail on openjdk
---------------------
Key: HV-525
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-525
Project: Hibernate Validator
Issue Type: Bug
Components: tests
Environment: java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.39.1.9.8.el6_1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
Linux stliu-rhel 2.6.32-131.17.1.el6.x86_64
Reporter: Strong Liu
Assignee: Hardy Ferentschik
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 429, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 4.698 sec <<<
FAILURE!
Results :
Failed tests:
scriptExpressionReferencingAnnotatedObject(org.hibernate.validator.test.constraints.impl.ScriptAssertValidatorTest):
Error during execution of script "_this.startDate.before(_this.endDate)"
occurred.
scriptExpressionUsingCustomizedAlias(org.hibernate.validator.test.constraints.impl.ScriptAssertValidatorTest):
Error during execution of script "_.startDate.before(_.endDate)" occurred.
Tests run: 429, Failures: 2, Errors: 0, Skipped: 0
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira