Hi

are you able to reproduce it in a sample you can share?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/24 Xavier Dury <[email protected]>

> Hi,
>
> Since I've upgraded to openejb-4.6.0-SNPASHOT/openwebbeans-1.2.1-SNAPSHOT,
> I've got a weird error when I try to use Provider.get():
>
> javax.ejb.EJBException: The bean encountered a non-application exception;
> nested exception is:
> ...
> Caused by: org.apache.webbeans.exception.inject.DefinitionException:
> Unsupported type null
>         at org.apache.webbeans.util.ClassUtil.getClazz(ClassUtil.java:923)
>         at
> org.apache.webbeans.container.BeanManagerImpl.getEjbOrJmsProxyReference(BeanManagerImpl.java:793)
>         at
> org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:729)
>         at
> org.apache.webbeans.inject.instance.InstanceImpl.get(InstanceImpl.java:139)
> ...
>
> It seems that InstanceImpl.get():139 does something like
>         instance = (T) beanManager.getReference(bean, null,
> creationalContext);
>
> null being the beanType which will be used in ClassUtil.getClazz() (which
> does not accept null parameters).
>
> My provider should give me a bean from a custom scope so this problem
> could possibly not arise for normal beans.
>
> Xavier

Reply via email to