Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-561

Not intuitive error message: WELD-000069 An interceptor must have at least one binding, but Foo has none

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Trivial
    • None
    • 1.0.1.Final
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            szpak_jira Marcin Zajaczkowski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: