[
https://jira.jboss.org/browse/WELD-728?page=com.atlassian.jira.plugin.sys...
]
Pete Muir reassigned WELD-728:
------------------------------
Assignee: Stuart Douglas
Stuart, can you take a look at this?
Cannot create proxies for default packaged beans
------------------------------------------------
Key: WELD-728
URL:
https://jira.jboss.org/browse/WELD-728
Project: Weld
Issue Type: Bug
Components: Proxies
Affects Versions: 1.1.0.Beta1
Reporter: Sivakumar Thyagarajan
Assignee: Stuart Douglas
Fix For: 1.1.0.CR1
I have a developer test that has a ManagedBean [1] as part of the default package [ie
has no package declaration]. When an interceptor binding is applied to this bean (@Tester
applied to method foo()), proxy creation fails with an NPE.
Caused by: org.jboss.weld.exceptions.DeploymentException
at org.jboss.weld.bean.ManagedBean.applyInterceptors(ManagedBean.java:600)
at
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:256)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:338)
at org.jboss.weld.context.DependentContext.get(DependentContext.java:62)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:660)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:734)
at
org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:757)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:840)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:852)
at
org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:122)
at
org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:116)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:227)
at
org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:181)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:478)
at
com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
... 28 more
Caused by: java.lang.NullPointerException
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyName(ProxyFactory.java:167)
at org.jboss.weld.bean.proxy.ProxyFactory.<init>(ProxyFactory.java:104)
at org.jboss.weld.bean.ManagedBean.applyInterceptors(ManagedBean.java:594)
[1]
https://fisheye4.cenqua.com/browse/glassfish-svn/trunk/v2/appserv-tests/d...
or
https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v2/a...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira