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

Unsatisfied dependency in interceptor still checked for serialization, resulting in NPE

XMLWordPrintable

      Given a serializable interceptor with a

      @Inject Logger log

      but no producer for it you get a

      java.lang.NullPointerException
      at org.jboss.weld.util.Beans.isPassivationCapableDependency(Beans.java:175)
      at org.jboss.weld.bootstrap.Validator.validateInjectionPointPassivationCapable(Validator.java:335)
      at org.jboss.weld.bootstrap.Validator.validateCdiBoundInterceptors(Validator.java:224)
      at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:170)
      at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:363)
      at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:349)
      at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:402)
      at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:121) [:6.0.0-SNAPSHOT]

      because it checks for passivation on a null-resolved bean

              pmuiratbleepbleep Pete Muir (Inactive)
              nickarls Nicklas Karlsson (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: