[weld-issues] [JBoss JIRA] Resolved: (WELD-561) Not intuitive error message: WELD-000069 An interceptor must have at least one binding, but Foo has none

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Fri Jul 30 12:06:49 EDT 2010


     [ https://jira.jboss.org/browse/WELD-561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marius Bogoevici resolved WELD-561.
-----------------------------------

    Resolution: Duplicate Issue


The message is correct if the interceptor does not have a binding, which is a class of errors in itself.

The problem here is that the existing binding is illegal, which should have thrown an exception beforehand (WELD-563)

> Not intuitive error message: WELD-000069 An interceptor must have at least one binding, but Foo has none
> --------------------------------------------------------------------------------------------------------
>
>                 Key: WELD-561
>                 URL: https://jira.jboss.org/browse/WELD-561
>             Project: Weld
>          Issue Type: Task
>          Components: Interceptors and Decorators
>    Affects Versions: 1.0.1.Final
>            Reporter: Marcin Zajaczkowski
>            Priority: Trivial
>
> WELD-000069 error message (without debug message) is not very intuitive.
> DEBUG org.jboss.weld.Reflection - WELD-000602 interface net.sf.perf4cdi.api.Perf4jProfiled is not declared @Target(TYPE, METHOD) or @Target(TYPE)
> ERROR org.jboss.weld.exceptions.DeploymentException: WELD-000069 An interceptor must have at least one binding, but net.sf.perf4cdi.Perf4jProfiledInterceptor has none
> 	at org.jboss.weld.bean.InterceptorImpl.<init>(InterceptorImpl.java:71)
> 	at org.jboss.weld.bean.InterceptorImpl.of(InterceptorImpl.java:55)
> 	at
> org.jboss.weld.bootstrap.AbstractBeanDeployer.createInterceptor(AbstractBeanDeployer.java:255)
> 	at org.jboss.weld.bootstrap.BeanDeployer.createBeans(BeanDeployer.java:106)
> 	at
> org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:151)
> 	at
> org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:377)
> 	at
> org.jboss.weld.mock.MockServletLifecycle.beginApplication(MockServletLifecycle.java:121)
> 	at org.jboss.weld.mock.TestContainer.startContainer(TestContainer.java:85)
> 	at
> org.jboss.weld.test.harness.AbstractStandaloneContainersImpl.deploy(AbstractStandaloneContainersImpl.java:40)
> 	at org.jboss.testharness.AbstractTest.deployArtifact(AbstractTest.java:103)
> 	at org.jboss.testharness.AbstractTest.beforeClass(AbstractTest.java:206)
> 	at
> org.jboss.weld.test.AbstractWeldTest.beforeClass(AbstractWeldTest.java:57)

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

        


More information about the weld-issues mailing list