OK, created OWB-888

________________________________
> From: [email protected] 
> Date: Wed, 24 Jul 2013 16:23:46 +0200 
> Subject: Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT 
> To: [email protected] 
> 
> can you open a jira for it on openwebbeans please? 
> 
> Romain Manni-Bucau 
> Twitter: @rmannibucau<https://twitter.com/rmannibucau> 
> Blog: http://rmannibucau.wordpress.com/ 
> LinkedIn: http://fr.linkedin.com/in/rmannibucau 
> Github: https://github.com/rmannibucau 
> 
> 
> 
> 2013/7/24 Xavier Dury <[email protected]<mailto:[email protected]>> 
> here you are: 
> https://dl.dropboxusercontent.com/u/908875/openwebbeans/providers.zip 
> 
> the problem arises when you have a Provider for an EJB. 
> 
> Xavier 
> 
> ________________________________ 
>> From: [email protected]<mailto:[email protected]> 
>> Date: Wed, 24 Jul 2013 15:45:05 +0200 
>> Subject: Re: Problem with 
> openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT 
>> To: [email protected]<mailto:[email protected]> 
>> 
>> 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/ 
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau 
>> Github: https://github.com/rmannibucau 
>> 
>> 
>> 
>> 2013/7/24 Xavier Dury 
> <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[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