[hibernate-issues] [Hibernate-JIRA] Issue Comment Edited: (HV-482) Weblogic ConstraintDeclarationException

Tim Canavan (JIRA) noreply at atlassian.com
Wed Jun 8 04:31:24 EDT 2011


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

Tim Canavan edited comment on HV-482 at 6/8/11 3:30 AM:
--------------------------------------------------------

Here is the exception returned to the client

{code}
javax.servlet.ServletException: javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:45)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:351)

root cause

javax.faces.el.EvaluationException: javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:55)
	org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:68)
	org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58)
	javax.faces.component.UICommand.broadcast(UICommand.java:315)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:95)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:45)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:351)

root cause

javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)
	weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)
	$Proxy85.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean.downloadELM(ExportTranslationBean.java:122)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean.download(ExportTranslationBean.java:83)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:294)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:98)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean_$$_javassist_36.download(ExportTranslationBean_$$_javassist_36.java)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	com.sun.el.parser.AstValue.invoke(AstValue.java:234)
	com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
	com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98)
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:55)
	org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:67)
	org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58)
	javax.faces.component.UICommand.broadcast(UICommand.java:315)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:94)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:44)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)

root cause

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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	org.hibernate.validator.metadata.AggregatedMethodMetaData$Builder.checkParameterConstraints(AggregatedMethodMetaData.java:230)
	org.hibernate.validator.metadata.AggregatedMethodMetaData$Builder.build(AggregatedMethodMetaData.java:155)
	org.hibernate.validator.metadata.BeanMetaDataImpl.buildMethodMetaData(BeanMetaDataImpl.java:266)
	org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:249)
	org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:146)
	org.hibernate.validator.engine.ValidatorImpl.getBeanMetaData(ValidatorImpl.java:1268)
	org.hibernate.validator.engine.ValidatorImpl.validateParametersInContext(ValidatorImpl.java:903)
	org.hibernate.validator.engine.ValidatorImpl.validateAllParameters(ValidatorImpl.java:227)
	com.lpsolutions.util.ejb.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:28)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
	com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
	weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
	com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	$Proxy223.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl.__WL_invoke(Unknown Source)
	weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl_WLSkel.invoke(Unknown Source)
	weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
	weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
	weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
	weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
	weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
	weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
	weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
	weblogic.work.ExecuteThread.run(ExecuteThread.java:176)


{code}

I have also attached the debug output as a jpg.



      was (Author: tcanavan):
    Here is the esception returned to the client

{code}
javax.servlet.ServletException: javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:45)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:351)

root cause

javax.faces.el.EvaluationException: javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:55)
	org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:68)
	org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58)
	javax.faces.component.UICommand.broadcast(UICommand.java:315)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:95)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:45)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:351)

root cause

javax.ejb.EJBException: EJB Exception: ; nested exception is: 
	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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]; nested exception is: 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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:121)
	weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:96)
	$Proxy85.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean.downloadELM(ExportTranslationBean.java:122)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean.download(ExportTranslationBean.java:83)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.webbeans.intercept.InterceptorHandler.invoke(InterceptorHandler.java:294)
	org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.invoke(NormalScopedBeanInterceptorHandler.java:98)
	com.lpsolutions.gui.bo.translation.ExportTranslationBean_$$_javassist_36.download(ExportTranslationBean_$$_javassist_36.java)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	com.sun.el.parser.AstValue.invoke(AstValue.java:234)
	com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
	com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98)
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViolationAwareActionListener.processAction(SecurityViolationAwareActionListener.java:55)
	org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewControllerActionListener.processAction(ViewControllerActionListener.java:67)
	org.apache.myfaces.extensions.cdi.jsf.impl.listener.action.CodiActionListener.processAction(CodiActionListener.java:58)
	javax.faces.component.UICommand.broadcast(UICommand.java:315)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.execute(CodiLifecycleWrapper.java:94)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	com.lpsolutions.gui.common.listener.RequestContextSetupFilter.doFilter(RequestContextSetupFilter.java:44)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:349)

root cause

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 interface com.lpsolutions.lmsglobal.translations.ejb.TranslationService: MethodMetaData [method=public abstract java.util.List com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_Intf.exportELMByLanguageCode(com.lpsolutions.commons.context.RequestContext,java.lang.String), parameterMetaData=[ParameterMetaData [type=interface com.lpsolutions.commons.context.RequestContext], [index=0], name=arg0], constraints=[], isCascading=false], ParameterMetaData [type=class java.lang.String], [index=1], name=arg1], constraints=[], isCascading=false]], constraints=[], isCascading=false, hasParameterConstraints=false]
	org.hibernate.validator.metadata.AggregatedMethodMetaData$Builder.checkParameterConstraints(AggregatedMethodMetaData.java:230)
	org.hibernate.validator.metadata.AggregatedMethodMetaData$Builder.build(AggregatedMethodMetaData.java:155)
	org.hibernate.validator.metadata.BeanMetaDataImpl.buildMethodMetaData(BeanMetaDataImpl.java:266)
	org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:249)
	org.hibernate.validator.metadata.BeanMetaDataImpl.<init>(BeanMetaDataImpl.java:146)
	org.hibernate.validator.engine.ValidatorImpl.getBeanMetaData(ValidatorImpl.java:1268)
	org.hibernate.validator.engine.ValidatorImpl.validateParametersInContext(ValidatorImpl.java:903)
	org.hibernate.validator.engine.ValidatorImpl.validateAllParameters(ValidatorImpl.java:227)
	com.lpsolutions.util.ejb.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:28)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
	com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
	weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
	com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
	com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	$Proxy223.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl.__WL_invoke(Unknown Source)
	weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl.exportELMByLanguageCode(Unknown Source)
	com.lpsolutions.lmsglobal.translations.ejb.TranslationService_a1hroo_TranslationServiceImpl_WLSkel.invoke(Unknown Source)
	weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
	weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
	weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
	weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
	weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
	weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
	weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
	weblogic.work.ExecuteThread.run(ExecuteThread.java:176)


{code}

I have also attached the debug output as a jpg.


  
> Weblogic ConstraintDeclarationException 
> ----------------------------------------
>
>                 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
>         Attachments: debuginterceptor.JPG
>
>
> 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