I think that this is related with Decorator class has not a default
constructor.

What is your Decorator bean you are talking about? Does it contain default
no param constructor?

Thanks;

--Gurkan

2010/1/15 Eric Covener (JIRA) <[email protected]>

> exception using abstract decorators
> -----------------------------------
>
>                 Key: OWB-231
>                 URL: https://issues.apache.org/jira/browse/OWB-231
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Interceptor and Decorators
>    Affects Versions: M3
>            Reporter: Eric Covener
>            Assignee: Gurkan Erdogdu
>             Fix For: M4
>
>
> After r897450, abstract decorator classes are passed to
> Constructor.newInstance() and cause an exception:
>
> Caused by: java.lang.InstantiationException
>        at
> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
>        at
> org.apache.webbeans.inject.InjectableConstructor.doInjection(InjectableConstructor.java:87)
>        at
> org.apache.webbeans.component.ManagedBean.createComponentInstance(ManagedBean.java:61)
>        at
> org.apache.webbeans.component.AbstractInjectionTargetBean.createDefaultInstance(AbstractInjectionTargetBean.java:128)
>        at
> org.apache.webbeans.component.AbstractInjectionTargetBean.createInstance(AbstractInjectionTargetBean.java:112)
>        at
> org.apache.webbeans.component.AbstractBean.create(AbstractBean.java:159)
>        at
> org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:66)
>        at
> org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:150)
>        at
> org.apache.webbeans.decorator.WebBeansDecorator.createInstance(WebBeansDecorator.java:244)
>        at
> org.apache.webbeans.component.AbstractBean.create(AbstractBean.java:159)
>        ... 33 more
>
>
> If you take Joe Bergmark's testcase from OWB-151, and make the bean
> @RequestScoped and the decorator abstract, you can generate the same
> backtrace.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

Reply via email to