2 Replies Latest reply on Mar 18, 2015 3:22 AM by Jozef Hartinger

    NullPointerException when bean-discovery-mode="annotated"

    Tony L Newbie

      See this error with "annotated" bean discovery mode, but not a problem when bean-discovery-mode="all".

       

      JavaSE, Weld-2.2.9-Final.

       

      Any idea on what's going on?

       

      java.lang.NullPointerException

        at org.jboss.weld.environment.deployment.discovery.ReflectionDiscoveryStrategy.hasBeanDefiningAnnotation(ReflectionDiscoveryStrategy.java:69)

        at org.jboss.weld.environment.deployment.discovery.ReflectionDiscoveryStrategy.processAnnotatedDiscovery(ReflectionDiscoveryStrategy.java:60)

        at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:110)

        at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:218)

        at org.jboss.weld.environment.se.Weld.initialize(Weld.java:143)

       

      Thanks