1 Reply Latest reply on Dec 18, 2012 12:18 PM by alberto_souza

    Adding @Produces in ProcessAnnotatedType phase

    alberto_souza

      Hi, currently i am trying to add a @Produces annotation in a method during the ProcessAnnotatedType phase. The funny part is that after that phase, in the ProcessProducer phase, my class is listed as a producer... But when i trying to lookup the produced object the weld container throws a exception:

      [java]

      WELD-001324 Argument bean must not be null

      [/java]

       

      Do you have any tips?

       

      Cheers