[weld-issues] [JBoss JIRA] Closed: (WELD-538) Unsatisfied dependency in interceptor still checked for serialization, resulting in NPE

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Dec 7 10:55:01 EST 2010


     [ https://jira.jboss.org/browse/WELD-538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-538.
--------------------------

         Assignee: Pete Muir
    Fix Version/s: 1.1.0.CR1
                       (was: 1.2.0.Beta1)
       Resolution: Done


> Unsatisfied dependency in interceptor still checked for serialization, resulting in NPE
> ---------------------------------------------------------------------------------------
>
>                 Key: WELD-538
>                 URL: https://jira.jboss.org/browse/WELD-538
>             Project: Weld
>          Issue Type: Bug
>          Components: Bootstrap and Metamodel API, Interceptors and Decorators
>    Affects Versions: 1.0.1.Final
>            Reporter: Nicklas Karlsson
>            Assignee: Pete Muir
>             Fix For: 1.1.0.CR1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list