openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Problem with openejb-4.6.0-SNAPSHOT/openwebbeans-1.2.1-SNAPSHOT
Date Wed, 24 Jul 2013 14:23:46 GMT
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 <kalgon@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 <kalgon@hotmail.com<mailto:kalgon@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
> >
>

Mime
View raw message