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
