aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1923) aries-proxy fails when presented with Java 11 classes with nested classes
Date Mon, 16 Sep 2019 13:24:00 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930532#comment-16930532
] 

ASF subversion and git services commented on ARIES-1923:
--------------------------------------------------------

Commit 696d5e2b77f24562938f44a79a6d94af663c247b in aries's branch refs/heads/trunk from Jean-Baptiste
Onofré
[ https://gitbox.apache.org/repos/asf?p=aries.git;h=696d5e2 ]

Merge pull request #99 from jbonofre/ARIES-1923

[ARIES-1923] Upgrade proxy-impl to concretely use ASM 7

> aries-proxy fails when presented with Java 11 classes with nested classes
> -------------------------------------------------------------------------
>
>                 Key: ARIES-1923
>                 URL: https://issues.apache.org/jira/browse/ARIES-1923
>             Project: Aries
>          Issue Type: Bug
>          Components: Proxy
>    Affects Versions: proxy-impl-1.1.4
>            Reporter: Robert Varga
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: proxy-impl-1.1.6
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This is observed with blueprint and weaving, when a class being exposed via blueprint
has nest members (JEP 181):
> {noformat}
> 2019-09-02T21:55:44,997 | INFO  | Blueprint Extender: 2 | ServiceRecipe             
      | 19 - org.apache.aries.blueprint.core - 1.10.1 | Unable to create a proxy object for
the service .component-6 defined in bundle org.opendaylight.
> mdsal.dom-broker/5.0.0.SNAPSHOT with id. Returning the original object instead.
> java.lang.UnsupportedOperationException: This feature requires ASM7
>         at org.objectweb.asm.ClassVisitor.visitNestMember(ClassVisitor.java:236) ~[?:?]
>         at org.objectweb.asm.ClassReader.accept(ClassReader.java:651) ~[?:?]
>         at org.objectweb.asm.ClassReader.accept(ClassReader.java:391) ~[?:?]
>         at org.apache.aries.proxy.impl.common.AbstractWovenProxyAdapter.readClass(AbstractWovenProxyAdapter.java:696)
~[?:?]
>         at org.apache.aries.proxy.impl.interfaces.InterfaceCombiningClassAdapter.generateBytes(InterfaceCombiningClassAdapter.java:117)
~[?:?]
>         at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(ProxyClassLoader.java:163)
~[?:?]
>         at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:97)
~[?:?]
>         at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
~[?:?]
>         at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
~[?:?]
>         at org.apache.aries.proxy.impl.AbstractProxyManager.createInterceptingProxy(AbstractProxyManager.java:55)
~[?:?]
>         at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:568)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)
[?:?]
>         at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)
[?:?]
>         at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)
[?:?]
>         at org.opendaylight.mdsal.binding.dom.adapter.osgi.AdaptingTracker.addingService(AdaptingTracker.java:61)
[168:org.opendaylight.mdsal.binding-dom-adapter:5.0.0.SNAPSHOT]
>         at org.opendaylight.mdsal.binding.dom.adapter.osgi.AdaptingTracker.addingService(AdaptingTracker.java:29)
[168:org.opendaylight.mdsal.binding-dom-adapter:5.0.0.SNAPSHOT]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
[?:?]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
[?:?]
>         at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
[?:?]
>         at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) [?:?]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
[?:?]
>         at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:920)
[?:?]
>         at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
[?:?]
>         at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
[?:?]
>         at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
[?:?]
>         at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:469)
[?:?]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:476)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:739)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:415)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>         at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45)
[19:org.apache.aries.blueprint.core:1.10.1]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
[?:?]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[?:?]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[?:?]
>         at java.lang.Thread.run(Thread.java:834) [?:?]
> {noformat}
> This does not happen if the same class is compiled with --release 10 or lower.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message