Speaking too hastily! Thanks, Rich ...

On Mon, Sep 24, 2012 at 11:29 AM, Richard Ellis <[email protected]> wrote:
> I don't think this is the same issue as Aries-908. From the stack it looks
> to me like it is using the JDK proxy (JdkProxyManager), which suggests to me
> that ASM is not available. You need ASM for the Aries proxy to be able to do
> anything more than interfaces and if it was present we should see
> AsmProxyManager in the stack trace instead.
>
> Rich
>
>
> From:        Holly Cummins <[email protected]>
> To:        [email protected],
> Date:        24/09/2012 11:20
> Subject:        Re: UnableToProxyException with aries 1.0.0
> ________________________________
>
>
>
> I think you're hitting
> https://issues.apache.org/jira/browse/ARIES-908. A fix has just been
> committed for this issue. I wonder if it's an important enough issue
> that it's worth spinning a proxy 1.0.1 for?
>
> Holly
> ---
> Enterprise OSGi in Action: http://www.manning.com/cummins
>
> On Mon, Sep 24, 2012 at 10:02 AM, XiLai Dai <[email protected]> wrote:
>> Hello,
>>
>>
>>
>> I got an UnableToProxyException with Karaf2.3.0/aries 1.0.0 when install a
>> blueprint based bundle into container.
>>
>>
>>
>> Caused by: org.apache.aries.proxy.UnableToProxyException: The class
>> org.talend.esb.sam.agent.feature.EventFeature is not an interface and
>> therefore a proxy cannot be generated.
>>
>>          at
>>
>> org.apache.aries.proxy.impl.JdkProxyManager.getInterfaces(JdkProxyManager.java:43)[12:org.apache.aries.proxy.impl:1.0.0]
>>
>>          at
>>
>> org.apache.aries.proxy.impl.JdkProxyManager.createNewProxy(JdkProxyManager.java:36)[12:org.apache.aries.proxy.impl:1.0.0]
>>
>>          at
>>
>> org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)[12:org.apache.aries.proxy.impl:1.0.0]
>>
>>          at
>>
>> org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)[12:org.apache.aries.proxy.impl:1.0.0]
>>
>>          at
>>
>> org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:299)[9:org.apache.aries.blueprint.core:1.0.0]
>>
>>          at
>>
>> org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:102)[9:org.apache.aries.blueprint.core:1.0.0]
>>
>>          ... 29 more
>>
>>
>>
>> The blueprint xml in the bundle:
>>
>> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";>
>>
>> ……
>>
>> <reference
>> xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0";
>> ext:proxy-method="classes" id="eventFeature" interface="xxx.xxx.MyClass"/>
>>
>> ……
>>
>> </blueprint>
>>
>>
>>
>> ("xxx.xxx.MyClass" is a class, not a interface, so
>> ext:proxy-method="classes" property added into <reference>)
>>
>>
>>
>> Any ideas?  Thanks!
>>
>>
>>
>> BR
>>
>> Xilai
>
>
>
>
>
> ________________________________
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
>
>
>
>
>

Reply via email to