[hibernate-issues] [Hibernate-JIRA] Commented: (HV-482) Weblogic ConstrantDeclationException HVbeta2

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Jun 7 05:24:25 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42492#action_42492 ] 

Hardy Ferentschik commented on HV-482:
--------------------------------------

As Gunnar was saying this sounds initially HV-448. Have you read about the restrictions of method level validation which apply for HV?
It is of course confusing that the same validation works in your test environment. I am no Weblogic expert, but what proxies are getting generated? Are this runtime proxies? Could you also post the full stacktrace? If you posted the complete code for your service classes (speak _CustomerServiceBean_ and _CustomerService_) it should indeed work.

> Weblogic ConstrantDeclationException HVbeta2
> --------------------------------------------
>
>                 Key: HV-482
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-482
>             Project: Hibernate Validator
>          Issue Type: Bug
>    Affects Versions: 4.2.0.Beta2
>         Environment: Weblogic 10.3
>            Reporter: Tim Canavan
>
> After upgrading to HV beta2 and changing all our validations to be at the interface level
> we get the constraint declaration exception 
> Caused by: javax.validation.ConstraintDeclarationException: Only the root method of an overridden method in an inheritance hierarchy may be annotated with parameter constraints. The following method itself has no parameter constraints but it is not defined on a sub-type of class 
> Under OpenEJB which our unit tests use everything works fine.
> Is there any code that HV could use that would allow it to understand these proxies or would an option be available
> to turn the check off.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list