You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openwebbeans.apache.org by Xavier Dury <ka...@hotmail.com> on 2013/07/24 15:41:18 UTC

Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

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 		 	   		  

Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

Posted by Romain Manni-Bucau <rm...@gmail.com>.
thanks, fixed

*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 <ka...@hotmail.com>

> OK, created OWB-888
>
> ________________________________
> > From: rmannibucau@gmail.com
> > Date: Wed, 24 Jul 2013 16:23:46 +0200
> > Subject: Re: Problem with
> openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT
> > To: user@openwebbeans.apache.org
> >
> > 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 <ka...@hotmail.com>>
> > 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: rmannibucau@gmail.com<ma...@gmail.com>
> >> Date: Wed, 24 Jul 2013 15:45:05 +0200
> >> Subject: Re: Problem with
> > openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT
> >> To: user@openwebbeans.apache.org<ma...@openwebbeans.apache.org>
> >>
> >> 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
> > <ka...@hotmail.com><mailto:kalgon@hotmail.com
> <ma...@hotmail.com>>>
> >> 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
> >>
> >
>

RE: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

Posted by Xavier Dury <ka...@hotmail.com>.
OK, created OWB-888

________________________________
> From: rmannibucau@gmail.com 
> Date: Wed, 24 Jul 2013 16:23:46 +0200 
> Subject: Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT 
> To: user@openwebbeans.apache.org 
> 
> 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 <ka...@hotmail.com>> 
> 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: rmannibucau@gmail.com<ma...@gmail.com> 
>> Date: Wed, 24 Jul 2013 15:45:05 +0200 
>> Subject: Re: Problem with 
> openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT 
>> To: user@openwebbeans.apache.org<ma...@openwebbeans.apache.org> 
>> 
>> 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 
> <ka...@hotmail.com>>> 
>> 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 
>> 
> 		 	   		  

Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

Posted by Romain Manni-Bucau <rm...@gmail.com>.
can you open a jira for it on openwebbeans please?

*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 <ka...@hotmail.com>

> 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: rmannibucau@gmail.com
> > Date: Wed, 24 Jul 2013 15:45:05 +0200
> > Subject: Re: Problem with
> openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT
> > To: user@openwebbeans.apache.org
> >
> > 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 <ka...@hotmail.com>>
> > 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
> >
>

RE: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

Posted by Xavier Dury <ka...@hotmail.com>.
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: rmannibucau@gmail.com 
> Date: Wed, 24 Jul 2013 15:45:05 +0200 
> Subject: Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT 
> To: user@openwebbeans.apache.org 
> 
> 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 <ka...@hotmail.com>> 
> 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 
> 		 	   		  

Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT

Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <ka...@hotmail.com>

> 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