Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1618

Regression after ARIES-1342: Duplicate interface name in class file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • proxy-impl-1.0.5
    • proxy-impl-1.1.1
    • Proxy
    • None
    • Karaf 4.0.6, JDK 1.8.0_u77

    Description

      I have regression on Karaf 4.0.6 (Proxy Service 1.0.5) with such blueprint config:

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
         <reference id="transactionManager" interface="org.apache.aries.transaction.AriesTransactionManager"/>
      
      <!-- other bean defenitions -->
      
      </blueprint>
      

      Because of hierarchy ordering fix in ARIES-1342 resulting interfaces set contains duplicates - two javax.transaction.TransactionManager entries. As result Exception thrown on proxy class generation:

      Caused by: org.apache.aries.proxy.UnableToProxyException: java.lang.ClassFormatError: Duplicate interface name in class file Proxy3636dfb0_3a9f_46d5_8eb4_32506b8a33ae
      	at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:165)[20:org.apache.aries.proxy.impl:1.0.5]
      	at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)[20:org.apache.aries.proxy.impl:1.0.5]
      	at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)[20:org.apache.aries.proxy.impl:1.0.5]
      	at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)[20:org.apache.aries.proxy.impl:1.0.5]
      	at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)[20:org.apache.aries.proxy.impl:1.0.5]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)[12:org.apache.aries.blueprint.core:1.6.2]
      	at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:107)[12:org.apache.aries.blueprint.core:1.6.2]
      
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              vladimirfx Vladimir Konkov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: