bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric BURLET (JIRA) <j...@apache.org>
Subject [jira] [Updated] (BVAL-141) Wrong method interceptor signature
Date Mon, 07 Dec 2015 09:19:12 GMT

     [ https://issues.apache.org/jira/browse/BVAL-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Frédéric BURLET updated BVAL-141:
---------------------------------
    Description: 
We are using BVal 1.1.0 as JSR-349 Bean Validation implementation in Weblogic 12.1.3 with
java 8. When deploying our application, the application server complains about method signature
compliance of the interceptor {{org.apache.bval.cdi.BValInterceptor}}.

{noformat}
weblogic.ejb.container.compliance.ComplianceException: AroundInvoke method invoke in class
org.apache.bval.cdi.BValInterceptor must have the signature: 'Object <METHOD(InvocationContext)>
throws Exception'
	at weblogic.ejb.container.compliance.BusinessMethodInterceptorChecker.validateAroundInvokeOrTimeoutMethod(BusinessMethodInterceptorChecker.java:154)
...
{noformat}

See the complete stacktrace in the attached file.

Indeed the signature of the method {{invoke(InvocationContext)}} in {{org.apache.bval.cdi.BValInterceptor}}
throws {{java.lang.Throwable}} instead of {{java.lang.Exception}} which seems to be a violation
of the interceptor specification.


  was:
We are using BVal 1.1.0 as JSR-349 Bean Validation implementation in Weblogic 12.1.3 with
java 8. When deploying our application, the application server complains about method signature
compliance of the interceptor {{org.apache.bval.cdi.BValInterceptor}}. See the complete stacktrace
in the attached file.

Indeed the signature of the method {{invoke(InvocationContext)}} in {{org.apache.bval.cdi.BValInterceptor}}
throws {{java.lang.Throwable}} instead of {{java.lang.Exception}} which seems to be a violation
of the interceptor specification.



> Wrong method interceptor signature
> ----------------------------------
>
>                 Key: BVAL-141
>                 URL: https://issues.apache.org/jira/browse/BVAL-141
>             Project: BVal
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         Environment: Oracle Weblogic 12.1.3 with java 8
>            Reporter: Frédéric BURLET
>         Attachments: stacktrace_compliance_exception.txt
>
>
> We are using BVal 1.1.0 as JSR-349 Bean Validation implementation in Weblogic 12.1.3
with java 8. When deploying our application, the application server complains about method
signature compliance of the interceptor {{org.apache.bval.cdi.BValInterceptor}}.
> {noformat}
> weblogic.ejb.container.compliance.ComplianceException: AroundInvoke method invoke in
class org.apache.bval.cdi.BValInterceptor must have the signature: 'Object <METHOD(InvocationContext)>
throws Exception'
> 	at weblogic.ejb.container.compliance.BusinessMethodInterceptorChecker.validateAroundInvokeOrTimeoutMethod(BusinessMethodInterceptorChecker.java:154)
> ...
> {noformat}
> See the complete stacktrace in the attached file.
> Indeed the signature of the method {{invoke(InvocationContext)}} in {{org.apache.bval.cdi.BValInterceptor}}
throws {{java.lang.Throwable}} instead of {{java.lang.Exception}} which seems to be a violation
of the interceptor specification.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message