tag:blogger.com,1999:blog-1306958590608174053.post4944153789806679201..comments2024-03-21T08:28:12.966+01:00Comments on Musings of a Programming Addict: What's new in Hibernate Validator 4.1?Anonymoushttp://www.blogger.com/profile/16910067065508493885noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1306958590608174053.post-32221198747523040702020-08-11T19:50:52.091+02:002020-08-11T19:50:52.091+02:00great project on hibernate validator. ڈپلیکیٹ بران...great project on hibernate validator.<a href="https://daamaze.in/product-category/mens-watches/" rel="nofollow"> ڈپلیکیٹ برانڈڈ گھڑیاں آن لائن<br /></a>sanjayhttps://www.blogger.com/profile/17444055280773047470noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-83002126547728545072012-05-08T20:51:50.086+02:002012-05-08T20:51:50.086+02:00Tariq, you can find out more about class-level con...Tariq, you can find out more about class-level constraints in the Hibernate Validator <a href="http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#d0e332" rel="nofollow">reference guide</a>. You can also study <a href="http://docs.jboss.org/hibernate/stable/validator/api/index.html?org/hibernate/validator/constraints/ScriptAssert.html" rel="nofollow">@ScriptAssert</a> as an example.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-48663586667176791652012-05-08T20:47:54.411+02:002012-05-08T20:47:54.411+02:00I know it should be pretty simple. Trying to creat...I know it should be pretty simple. Trying to create a class level custom constraint. Is it possible to find some examples how to do this? Again, much appreciated for all your excellent postings.Tariq Ahsanhttps://www.blogger.com/profile/03790093622136193128noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-35532372927803948662011-01-24T00:56:50.405+01:002011-01-24T00:56:50.405+01:00Thanks for reply,
You are right I am using 3.0.x....Thanks for reply,<br /><br />You are right I am using 3.0.x. currently and have got that isReachable() problem. And yes hope <br />glassfish v3.1 will not have this problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-2831303984970272812011-01-21T23:43:28.828+01:002011-01-21T23:43:28.828+01:00Ravi, have you checked your program's output/l...Ravi, have you checked your program's output/log files, you should find the original exception thrown within the call to isReachable() there.<br /><br />Btw. which version of GlassFish do you use? 3.0.x is bundled with HV 4.0.x, if you want to use HV 4.1 I recommend to upgrade to GF 3.1 once it is released.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-11431992781215807062011-01-20T22:00:26.782+01:002011-01-20T22:00:26.782+01:00Hi,
Thanks just informing i got one way to solve...Hi, <br /><br />Thanks just informing i got one way to solve it to create a TraversalResolver that has actual problem which is bundeled with HiberanteValidator's earlier version.<br />However may be there is other way out.<br />If you please show me that too..<br />Thanks<br />Ravi.ravihttps://www.blogger.com/profile/13028373362491858605noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-1535031811779181972011-01-19T18:30:01.158+01:002011-01-19T18:30:01.158+01:00Hi, It is really nice to read your article. I stuc...Hi, It is really nice to read your article. I stuck with glassfishv3 and its bean-validator.jar I have included hibernate-Validator4.1.0 with project, But has no effect, whenever i use a class level annotation it fires the exception.<br />javax.validation.ValidationException: Call to TraversableResolver.isReachable() threw an exception.<br /><br />Can you please show me some way to get rid of this issue.<br />Thanks <br />Raviravihttps://www.blogger.com/profile/13028373362491858605noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-79795856348351508572010-12-09T16:46:26.391+01:002010-12-09T16:46:26.391+01:00I'm using Javascript. I guess I thought the js...I'm using Javascript. I guess I thought the js.jar that came with the reference implementation would work.<br /><br />Let me try again and try invoking getEngineFactories myself. It's probably that simple :-)<br /><br />thanks again!<br />KevinKevin Hutsonhttps://www.blogger.com/profile/06040178492093718946noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-43888403066621003412010-12-09T01:06:50.448+01:002010-12-09T01:06:50.448+01:00Hi Kevin,
the root exception is thrown because th...Hi Kevin,<br /><br />the root exception is thrown because the JSR 223 runtime could find no script engine for your language name "javascript".<br /><br />Which scripting engine do you use? I could imagine your JSR 223 library comprises only the API itself but no language binding such as Rhino for JavaScript. In that case you would have to add such an implementation to your classpath as well. <br /><br />You can find out which languages engines are registered with <a href="http://download.oracle.com/javase/6/docs/api/javax/script/ScriptEngineManager.html#getEngineFactories%28%29" rel="nofollow">ScriptEngineManager#getEngineFactories()</a>.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-9434190541700601042010-12-09T00:39:48.162+01:002010-12-09T00:39:48.162+01:00Thank for your work on this library.
I was wonder...Thank for your work on this library.<br /><br />I was wondering if you could answer a question?<br /><br />I am trying a very simple example using Javascript as the lang to validation 2 fields on the POJO. <br /><br />Unfortunately, we are still on Java 1.5. And, I'm getting an exception.<br /><br />Example:<br /><br />@ScriptAssert(lang="javascript",script="_this.foo1.equals(_this.foo2)",message="something bad happened" )<br /><br />I have pasted the sample code here:<br />https://gist.github.com/734106<br /><br />I have added these jar's to my classpath:<br />hibernate-validator-4.2.0-20101202.092637-16.jar<br />validation-api.jar<br />js.jar<br />script.jar<br />The last 2 are from the reference implementation of JSR-223 I downloaded. Not impressed with the lack of version information.<br />And, I do have some more jars on my classpath, but I don't think that's the issue.<br /><br />Any thoughts? I had to switch to 4.2 of the validator b/c 4.1 had an issue that wouldn't work with Java 1.5 (HV-382).<br /><br />Have you tried running a sample like this against JDK 1.5?<br /><br />thanks so much!<br /><br />KevinKevin Hutsonhttps://www.blogger.com/profile/06040178492093718946noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-64357670008141090242010-07-13T23:35:32.388+02:002010-07-13T23:35:32.388+02:00Thanks for your feedback, great to hear that this ...Thanks for your feedback, great to hear that this is useful :-) Which scripting language you plan to use with the @ScriptAssert constraint?Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-22301694149172185492010-07-13T10:03:30.123+02:002010-07-13T10:03:30.123+02:00Nice work on @ScriptAssert. That was a big gap. No...Nice work on @ScriptAssert. That was a big gap. Now it will be a lot easier to do password confirmations. :-)Willie Wheelerhttp://wheelersoftware.comnoreply@blogger.com