aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Minko (JIRA)" <>
Subject [jira] [Created] (ARIES-932) Extention proxy-method="classes" caused UnableToProxyException
Date Wed, 03 Oct 2012 13:08:19 GMT
Roman Minko created ARIES-932:

             Summary: Extention proxy-method="classes" caused UnableToProxyException
                 Key: ARIES-932
             Project: Aries
          Issue Type: Bug
          Components: Blueprint, Proxy
         Environment: Karaf 2.3.0 with ASM 4.0 and Aries 1.0.0
            Reporter: Roman Minko

UnableToProxyException arises with Karaf 2.3.0/Aries 1.0.0 when install a blueprint based
bundle into container.

Caused by: org.apache.aries.proxy.UnableToProxyException: The class is not
an interface and therefore a proxy cannot be generated.
         at org.apache.aries.proxy.impl.JdkProxyManager.getInterfaces(
         at org.apache.aries.proxy.impl.JdkProxyManager.createNewProxy(
         at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(
         at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(
         at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(
         at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(
         ... 56 more

The blueprint configuration in the bundle:
 <blueprint xmlns="">
 ext:proxy-method="classes" id="SomeFeature" interface=""/>

 The stack shows that the JDK proxy (JdkProxyManager) used instead of AsmProxyManager,
 even though ASM 4.0 installed in container:
 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"

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message