Hi,
ASM 3.3.1 removed and ASM 4.0 installed but got the same exception because the
JdkProxyManager still be used, AsmProxyManager has no chance be invoked :(
Caused by: org.apache.aries.proxy.UnableToProxyException: The class
xxx.xxx.Myclass is not an interface and therefore a proxy cannot be generated.
at
org.apache.aries.proxy.impl.JdkProxyManager.getInterfaces(JdkProxyManager.java:43)
at
org.apache.aries.proxy.impl.JdkProxyManager.createNewProxy(JdkProxyManager.java:36)
at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)
at
org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:299)
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:102)
... 56 more
karaf@admin> install -s mvn:org.ow2.asm/asm-all/4.0
karaf@admin> exports |grep asm
107 org.springframework.asm; version="3.0.7.RELEASE"
107 org.springframework.asm.commons; version="3.0.7.RELEASE"
107 org.springframework.asm.signature; version="3.0.7.RELEASE"
113 net.sf.cglib.asm; version="2.2.2"
113 net.sf.cglib.asm.signature; version="2.2.2"
212 org.objectweb.asm; version="4.0.0"
212 org.objectweb.asm.signature; version="4.0.0"
212 org.objectweb.asm.commons; version="4.0.0"
212 org.objectweb.asm.tree; version="4.0.0"
212 org.objectweb.asm.tree.analysis; version="4.0.0"
212 org.objectweb.asm.util; version="4.0.0"
212 org.objectweb.asm.xml; version="4.0.0"
Thanks
Xilai
From: [email protected] [mailto:[email protected]] On Behalf Of
Timothy Ward
Sent: Tuesday, September 25, 2012 5:45 PM
To: [email protected]
Subject: RE: UnableToProxyException with aries 1.0.0
I'm pretty sure that Proxy 1.0.0 needs ASM 4.0, 3.3.1 won't work.
Regards,
Tim
________________________________
From: [email protected]
To: [email protected]
Subject: RE: UnableToProxyException with aries 1.0.0
Date: Tue, 25 Sep 2012 02:00:02 +0000
Hi,
I've checked the ASM but it already has been installed into the container.
[ 7] [Active ] [ ] [ ] [ 20] Apache ServiceMix ::
Bundles :: asm (3.3.1.1)
karaf@admin> exports |grep org.objectweb.asm
7 org.objectweb.asm.util; version="3.3.1"
7 org.objectweb.asm; version="3.3.1"
7 org.objectweb.asm.commons; version="3.3.1"
7 org.objectweb.asm.xml; version="3.3.1"
7 org.objectweb.asm.attrs; version="3.3.1"
7 org.objectweb.asm.signature; version="3.3.1"
7 org.objectweb.asm.tree; version="3.3.1"
7 org.objectweb.asm.tree.analysis; version="3.3.1"
(JDK version I'm using is 1.6.0_34)
Thanks!
Xilai
From: Richard Ellis [mailto:[email protected]]
Sent: Monday, September 24, 2012 6:30 PM
To: [email protected]
Subject: Re: UnableToProxyException with aries 1.0.0
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