Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6513

IncompatibleClassChangeError with weld-se 2.0.2

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.0
    • 2.14.0
    • camel-cdi
    • Unknown

    Description

      After upgrading from weld 1.1.10 (CDI 1.0) to weld 2.0.2 (CDI 1.1), an Arquillian based test throws an error:

      Caused by: java.lang.IncompatibleClassChangeError: Class org.apache.camel.cdi.internal.CamelContextBean does not implement the requested interface javax.enterprise.inject.spi.BeanAttributes
      at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateStereotypes(ExternalBeanAttributesFactory.java:76)
      at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateBeanAttributes(ExternalBeanAttributesFactory.java:69)
      at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.processBean(AfterBeanDiscoveryImpl.java:83)
      at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.addBean(AfterBeanDiscoveryImpl.java:77)
      at org.apache.camel.cdi.internal.CamelExtension.registerManagedCamelContext(CamelExtension.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)
      ... 112 more

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            treverix Andreas Dolk
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: